[Trilinos-Users] Re: Pytrilinos configure phase (Xavier Vasseur)

Bill Spotz wfspotz at sandia.gov
Wed Dec 7 14:16:23 MST 2005


Xavier,

Your installation of python seems to be in a non-standard place, so  
you may need to tell configure where to find the header, e.g.

     configure ... CPPFLAGS=/home/vasseur/Linux/Python-2.4.2/include/ 
python2.4. ...

On Dec 7, 2005, at 12:00 PM, Xavier Vasseur wrote:

> Date: Wed, 07 Dec 2005 10:52:09 +0100
> From: "Xavier Vasseur" <Xavier.Vasseur at cerfacs.fr>
> Subject: [Trilinos-Users] Pytrilinos configure phase
> To: trilinos-users at software.sandia.gov
> Message-ID: <4396B0C9.8080304 at cerfacs.fr>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> 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/

** Bill Spotz                                              **
** Sandia National Laboratories  Voice: (505)845-0170      **
** P.O. Box 5800                 Fax:   (505)284-5451      **
** Albuquerque, NM 87185-0316    Email: wfspotz at sandia.gov **




More information about the Trilinos-Users mailing list