I just checked and there are 2 entries: python-devel-2.4.3-56.el5.i386 python-devel-2.4.3-56.el5.x86_64
-----Original Message----- From: Noel O'Boyle [mailto:baoille...@gmail.com] Sent: Wednesday, March 13, 2013 5:21 PM To: Peter Maas Cc: openbabel-discuss@lists.sourceforge.net Subject: Re: [Open Babel] install on Centos 64 bits I'll try this in a VM, but it'll take a little while. Just talking about the Python 2.4 attempt, did you also install the 64-bit python-devel rpm? The warning message specifically says that it's linking against a 32-bit python, e.g.: /usr/bin/ld: warning: i386 architecture of input file `/usr/lib/python2.4/config/libpython2.4.a(abstract.o)' is incompatible with i386:x86-64 output - Noel On 13 March 2013 15:39, Peter Maas <peter.m...@specs.net> wrote: > Hi Noel, > > > > Just an update on my failing struggles. > > So I've restored the initial setting of my CentOS machine, meaning I > removed all version of Python (tricky). > > and reinstalled the system python which is python2.4 (and not > -enable-shared). > > > > wget > http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-56.el5 > .x86_64.rpm > > rpm -ivh python-2.4.3-56.el5.x86_64.rpm > > > > compile openbabel against this resulted in a lot of errors as attached. > > > > > > > > For the program I want to test I need python 2.6 or higher anyway so > next I tried to download a rpm as Riccardo suggested. > > > > > > ################################################# > > > > wget > http://dl.fedoraproject.org/pub/epel/5/x86_64/python26-2.6.8-2.el5.x86 > _64.rpm > > rpm -ivh python26-2.6.8-2.el5.x86_64.rpm > > > > cd ~/downloads/openbabel/build > > make clean > > cmake ../openbabel-2.3.2 > -DEIGEN2_INCLUDE_DIR=/home/peter/lib/eigen-eigen-b23437e61a07 > -DPYTHON_BINDINGS=ON > -DCMAKE_INSTALL_PREFIX=/home/peter/tools/openbabel > -DCMAKE_BUILD_TYPE=DEBUG > > > > ### Check the python settings in CMakeCache.txt > > # //Path to a program. > > # PYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python2.6 > > # > > # //Path to a file. > > # PYTHON_INCLUDE_PATH:PATH=/usr/local/include/python2.6 > > # > > # //Path to a library. > > # > PYTHON_LIBRARY:FILEPATH=/usr/local/lib/python2.6/config/libpython2.6.a > > > > ERROR: > > Linking CXX shared module ../lib/_openbabel.so > > /usr/local/lib/python2.6/config/libpython2.6.a(posixmodule.o): In > function > `posix_forkpty': > > /home/peter/downloads/Python-2.6.6/./Modules/posixmodule.c:3811: > undefined reference to `forkpty' > > /usr/local/lib/python2.6/config/libpython2.6.a(posixmodule.o): In > function > `posix_openpty': > > /home/peter/downloads/Python-2.6.6/./Modules/posixmodule.c:3751: > undefined reference to `openpty' > > collect2: ld returned 1 exit status > > make[2]: *** [lib/_openbabel.so] Error 1 > > make[1]: *** [scripts/CMakeFiles/bindings_python.dir/all] Error 2 > > make: *** [all] Error 2 > > > > > > I also checked the phython version from the rpm and it was NOT > compiled using -enabled-shared. > > (http://stackoverflow.com/questions/9193773/is-there-a-way-to-tell-if- > python-was-configured-and-compiled-with-with-thread) > > > > ############################################## > > > > So now I started to compile python in an alternative location: > > wget http://www.python.org/ftp/python/3.2.3/Python-3.2.3.tgz > > tar -xvf Python-3.2.3.tgz > > cd Python-3.2.3 > > ./configure --prefix=/opt/python3 --enable-shared LDFLAGS="-Wl,-rpath > /opt/python3/lib" > > make -j > > su root > > make install > > /opt/python3/bin/python3 -V > > > > cmake ../openbabel-2.3.2 > -DEIGEN2_INCLUDE_DIR=/home/peter/lib/eigen-eigen-b23437e61a07 > -DPYTHON_BINDINGS=ON -DPYTHON_EXECUTABLE=/opt/python3/bin/python3 > -DPYTHON_LIBRARY=/opt/python3/lib/python3.2/config-3.2m/libpython3.2m. > a -DPYTHON_INCLUDE_PATH=/opt/python3/include/python3.2m > -DCMAKE_INSTALL_PREFIX=/home/peter/tools/openbabel > -DCMAKE_BUILD_TYPE=DEBUG > > > > ERROR > > > > Linking CXX shared module ../lib/_openbabel.so > > /opt/python3/lib/python3.2/config-3.2m/libpython3.2m.a(posixmodule.o): > In function `posix_forkpty': > > /home/peter/downloads/Python-3.2.3/./Modules/posixmodule.c:4262: > undefined reference to `forkpty' > > /opt/python3/lib/python3.2/config-3.2m/libpython3.2m.a(posixmodule.o): > In function `posix_openpty': > > /home/peter/downloads/Python-3.2.3/./Modules/posixmodule.c:4202: > undefined reference to `openpty' > > collect2: ld returned 1 exit status > > make[2]: *** [lib/_openbabel.so] Error 1 > > make[1]: *** [scripts/CMakeFiles/bindings_python.dir/all] Error 2 > > make: *** [all] Error 2 > > > > ################################ > > > > > > So unless somebody has a bright idea, I'm giving up. > > > > Peter > > > > > ---------------------------------------------------------------------- > -------- Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics Download AppDynamics Lite > for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss