[Trilinos-Users] Pytrilinos configure phase

Xavier Vasseur Xavier.Vasseur at cerfacs.fr
Wed Dec 7 02:52:09 MST 2005


Hello,

I am trying to build Trilinos 6.0 with Pytrilinos on a Linux PC (serial 
mode).

[vasseur at chimay LINUX_PYTHON]$ uname -a
Linux chimay 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 
GNU/Linux

[vasseur at chimay LINUX_PYTHON]$ gcc --v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --host=i386-redhat-linux --with-system-zlib 
--enable-__cxa_atexit
Thread model: posix
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

with python 2.4.2.

I use the following script for the configure phase:

#!/bin/sh
BUILD_DIR=`pwd`

../configure CXXFLAGS="-O3 -finline-functions -funroll-loops -Wall" \
--with-libs="-lexpat" \
--disable-default-packages \
--enable-shared \
--disable-static \
--enable-python \
--with-python="/home/vasseur/Linux/Python-2.4.2/python" \
--with-swig="/home/vasseur/Linux/swig-1.3.27/swig" \
--with-gnumake \
--with-install="/usr/bin/install -c -p" \
--with-incdirs=/home/vasseur/Linux/Python-2.4.2/include/python2.4 \
--prefix=$BUILD_DIR

and obtain the following error:
....
checking for --with-python... /home/vasseur/Linux/Python-2.4.2/python
checking for python... /home/vasseur/Linux/Python-2.4.2/python
checking whether /home/vasseur/Linux/Python-2.4.2/python version >= 2.2 
... yes
configure: PYTHON_CSPEC= 
-I/home/vasseur/Linux/Python-2.4.2/include/python2.4
configure: PYTHON_LSPEC= 
-L/home/vasseur/Linux/Python-2.4.2/lib/python2.4/config -lm -lpthread 
-ldl  -lutil -lpython2.4 -Xlinker -export-dynamic
checking Python.h usability... no
checking Python.h presence... no
checking for Python.h... no
configure: error: You must have Python.h in order to build the Python 
support!!
configure: error: /bin/sh '../../../packages/PyTrilinos/configure' 
failed for packages/PyTrilinos

The file Python.h is however in 
/home/vasseur/Linux/Python-2.4.2/include/python2.4.

Any idea ?

Thanks !

Best regards,
Xavier.

-- 
Xavier Vasseur
CERFACS
42 avenue Gaspard Coriolis
F-31057 Toulouse cedex 1
France
Tel: 33 (0)5 61 19 30 23
http://www.cerfacs.fr/algor/





More information about the Trilinos-Users mailing list