Hi Riccardo,

Finally with all the hints you gave I got it working.

I used these settings and files:

cmake ../openbabel-2.3.2 
-DEIGEN2_INCLUDE_DIR=/home/peter/lib/eigen-eigen-b23437e61a07 
-DPYTHON_BINDINGS=ON 
-DPYTHON_EXECUTABLE=/usr/bin/python26 
-DPYTHON_LIBRARY=/usr/lib64/python2.6/config/libpython2.6.so 
-DPYTHON_INCLUDE_PATH=/usr/include/python2.6 
-DCMAKE_INSTALL_PREFIX=/home/peter/tools/openbabel
-DCMAKE_BUILD_TYPE=DEBUG


So thanks Noel and Riccardo for all your help and time.

Best wishes,

Peter


-----Original Message-----
From: Riccardo Vianello [mailto:riccardo.viane...@gmail.com] 
Sent: Wednesday, March 13, 2013 5:32 PM
To: Peter Maas
Subject: Re: [Open Babel] install on Centos 64 bits

Hi Peter,

I'm contacting you directly, hoping this will help saving some time.
If we come up to anything you can always post a summary on the list.

I think you should try a little bit more with the python 2.6 package from
EPEL:

On Wed, Mar 13, 2013 at 4:39 PM, Peter Maas <peter.m...@specs.net> wrote:
> 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

I think you also need the corresponding -devel package:

python26-devel-2.6.8-2.el5.x86_64.rpm

This should provide the python headers and the python library (under
/usr/lib64):

 $ rpm -qpl python26-devel-2.6.8-2.el5.x86_64.rpm |grep libpython
/usr/lib64/libpython2.6.so /usr/lib64/python2.6/config/libpython2.6.so

(sorry for not thinking about this second package in my first message).

> # 
> PYTHON_LIBRARY:FILEPATH=/usr/local/lib/python2.6/config/libpython2.6.a

and this library is not from the rpm, I suspect it's a residual from an
earlier installation,

HTH, please let me know if the problem persists.

Best,
Riccardo


------------------------------------------------------------------------------
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

Reply via email to