[triangle-zpug] Installing python/Numeric/ScientificPython

Joseph Mack NA3T jmack at wm7d.net
Wed Mar 28 16:19:51 CEST 2007


On Tue, 27 Mar 2007, Mark R. Biggers wrote:

> # in a "shell-script", or copy+paste to a shell:
>
> PREFIX=/opt   ## or /home/zzz/usr, or....
>
> OPTS="-Wall -O2 -march=i686 -D_GNU_SOURCE -fPIC"
>
> OPTS_C="--with-threads --with-pymalloc --prefix=$PREFIX --enable-shared --enable-unicode=ucs4"
>
> BLDLIBRARY="-Xlinker -rpath -Xlinker $PREFIX/lib -L. -lpython2.4"
>
> cd Python-2.4.4
> env OPT="$OPTS" ./configure $OPTS_C
>
> make OPT="$OPTS" BLDLIBRARY="$BLDLIBRARY"

Other than -D_GNU_SOURCE, this doesn't look much different 
to the way I did it. I still get the same error

zzz at amber:~/src/py_proj> ./ncf_info.py area/01.ncf
Traceback (most recent call last):
   File "./ncf_info.py", line 2, in ?
     from Numeric import *
   File 
"/home/zzz/usr//lib/python2.4/site-packages/Numeric/Numeric.py", line 91, in ?
     import multiarray
ImportError: 
/home/zzz/usr/lib/python2.4/site-packages/Numeric/multiarray.so: undefined symbol: _Py_RefTotal

The only way I've found of defining _Py_RefTotal is adding 
a define to my Makefile, but then I get lots of debugging 
info in my output. Is there anyway to define _Py_RefTotal
without getting debugging output?

Thanks Joe


>
> I hope this helps.
> ----mark
>
> Joseph Mack NA3T writes:
> > Dear List,
> >  	I'm not a python programmer but am familiar with
> > installing programs on Linux. I'm installing some python
> > packages for a user.
> >
> >  	The app calls Numeric/ScientificPython and with the
> > out-of-the-box python install gets the error
> >
> > zzz at amber:~/src/py_proj> ./ncf_info.py area/01.ncf
> > Traceback (most recent call last):
> >    File "./ncf_info.py", line 2, in ?
> >      from Numeric import *
> >    File
> > "/home/zzz/usr//lib/python2.4/site-packages/Numeric/Numeric.py", line 91, in ?
> >      import multiarray
> > ImportError:
> > /home/zzz/usr/lib/python2.4/site-packages/Numeric/multiarray.so: undefined symbol: _Py_RefTotal
> >
>
> _______________________________________________
> triangle-zpug mailing list
> triangle-zpug at starship.python.net
> http://starship.python.net/mailman/listinfo/triangle-zpug
>

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!




More information about the TriZPUG mailing list