LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installation of scigraphica fails due to missing path to arrayobject.h (http://www.linuxquestions.org/questions/linux-software-2/installation-of-scigraphica-fails-due-to-missing-path-to-arrayobject-h-373613/)

mattispappis 10-16-2005 10:45 AM

Installation of scigraphica fails due to missing path to arrayobject.h
 
Hi
I have been trying to install scigraphica 2.0 for a long time now---
I have only found the source code. The problem i have is with compiling.... I would really appreciate some help on my problem...

I'have tracked down my problem to the ./configure script of libscigraphica...
when I run ./configure I get

"checking for numeric python... ./configure: line 10341: test: too many arguments./configure: line 10344: test: too many arguments
./configure: line 10376: /usr/include/python2.4/numarray/: is a directory
Try `uname --help' for more information.

so when i compile I get
"../../scigraphica/sg_python.h:35:25: error: arrayobject.h: No such file or directory"

the thing is that arrayobject.h belongs to numerical python and is installed on my computer... at
/usr/include/python2.4/Numeric/arrayobject.h and
/usr/include/python2.4/numarray/arrayobject.h

the configure script lines that is mentioned above
is
line 10335-10354
" echo -n "checking for numeric python... "
if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
PY_LIBS="python$PY_VERSION"
PY_LIB_LOC="$PY_EXEC_PREFIX/lib/python$PY_VERSION/"
array_loc=`find $python_numeric_path -name arrayobject.h | sed s/arrayobject\.h//`
if test x$array_loc = x; then
array_loc=`find $PY_PREFIX/ -name arrayobject.h | sed s/arrayobject\.h//`
fi
if test -n $array_loc -a -d $array_loc; then
echo "$array_loc"
PY_CFLAGS="$PY_CFLAGS -I$array_loc -DWITH_NUMERIC_PYTHON"
numpy=true
fi

PY_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PY_VERSION/config/Makefile"
PY_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $PY_MAKEFILE`
PY_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PY_MAKEFILE`
PY_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PY_MAKEFILE`
PY_EXTRA_LIBS="$PY_LOCALMODLIBS $PY_BASEMODLIBS $PY_OTHER_LIBS"

and lin 10375 --

if eval "test x$array_loc = x"; then
echo "Numerical python not found!"
exit

asian_cajun 11-15-2005 03:32 AM

Try configuring libscigraphica (and likewise scigraphica) with

./configure --with-python-numeric-path=/usr/include/python2.4/numarray/

mattispappis 11-15-2005 01:10 PM

Thank you for your reply.
I am learning new things everyday. now I get everything to compile. but ... it segfaults at startup instead.. maybe I should stick with QTIplot and wait until a new version gets out...
thanks again.
Yours


All times are GMT -5. The time now is 03:19 PM.