Hello Noel,

thanks a lot. I will try that!

I also tried OB 2.3.1 before, but that gave me another error:

[100%] Building CXX object 
scripts/CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o
<path>/openbabel-2.3.2/scripts/python/openbabel-python.cpp: In function 
'PyObject* SWIG_From_unsigned_SS_int(unsigned int)':
<path>/openbabel-2.3.2/scripts/python/openbabel-python.cpp:5037: error: 
'PyInt_FromSize_t' was not declared in this scope
make[2]: *** 
[scripts/CMakeFiles/bindings_python.dir/python/openbabel-python.cpp.o] Error 1
make[1]: *** [scripts/CMakeFiles/bindings_python.dir/all] Error 2
make: *** [all] Error 2

That's why I chose the older version hoping to omit the problem ;)

Cheers,
Charlotta


On Dec 21, 2012, at 12:46 PM, Noel O'Boyle wrote:

> You have confused CMake by using the same value for
> CMAKE_INSTALL_PREFIX as your build directory. Instead try
> -DCMAKE_INSTALL_PREFIX=<path>/openbabel-2.3.1/install. Ditto for the
> PYTHON_PREFIX. Actually, if I were you I would go with the default,
> -DPYTHON_PREFIX=
> 
> By the way, you should probably use OB 2.3.2 instead of OB 2.3.1.
> 
> - Noel
> 
> 
> On 21 December 2012 09:41, Charlotta Schärfe
> <schae...@informatik.uni-tuebingen.de> wrote:
>> Hi everyone,
>> 
>> I'm not quite sure if this is the correct place to ask my question, but I
>> couldn't find any help on google - so here I am!
>> 
>> On most of my systems openbabel works perfectly fine (compiled by myself and
>> taken from yum/apt-get).
>> However, I am now trying to install the python bindings for OpenBabel 2.3.1
>> on a CentOS5 system. Unfortunately the bindings I could get from yum are
>> only for an older version so I wanted to compile everything by myself.
>> Until I reach make install everything looks good, but then I get an error I
>> never encountered before.
>> 
>> So here is what works:
>> mkdir build
>> cd build
>> cmake .. -DPYTHON_BINDINGS=ON -DPYTHON_PREFIX=<path>/openbabel-2.3.1/build
>> -DCMAKE_INSTALL_PREFIX=<path>/openbabel-2.3.1/build -DRUN_SWIG=ON
>> -DSWIG_EXECUTABLE=/<path>/swig-2.0.9/build/swig
>> --- then edit the CMakeCache to have proper path to eigen2,
>> -DEIGEN2_INCLUDE_DIR doesn't really work, somehow)
>> make -j4
>> 
>> where <path> is the path to my homedirectory.
>> 
>> I then get my folders with the following libraries (among others) in the
>> <path>/openbabel-2.3.1/build/lib/ dir:
>> libinchi.so -> libinchi.so.0
>> libinchi.so.0 -> libinchi.so.0.3.1
>> libinchi.so.0.3.1
>> libopenbabel.so -> libopenbabel.so.4
>> libopenbabel.so.4 -> libopenbabel.so.4.0.1
>> libopenbabel.so.4.0.1
>> 
>> If I then do 'make install', I get the following errors:
>> CMake Error at src/cmake_install.cmake:48 (FILE):
>>  file INSTALL cannot find
>>  "<path>/openbabel-2.3.1/build/lib/libopenbabel.so.4.0.1".
>> Call Stack (most recent call first):
>>  cmake_install.cmake:75 (INCLUDE)
>> 
>> and
>> 
>> CMake Error at src/formats/inchi103/cmake_install.cmake:48 (FILE):
>>  file INSTALL cannot find
>>  "<path>/openbabel-2.3.1/build/lib/libinchi.so.0.3.1".
>> Call Stack (most recent call first):
>>  src/formats/cmake_install.cmake:2017 (INCLUDE)
>>  src/cmake_install.cmake:173 (INCLUDE)
>>  cmake_install.cmake:75 (INCLUDE)
>> 
>> And if I check the library dir again, the both files are indeed not there
>> ALTHOUGH they were there before I started the install process. How can this
>> happen?
>> 
>> I am not very familiar with CMake so can anyone help me fix this problem or
>> tell me how I can install the python-bindings in a different way on CentOS5?
>> 
>> Thanks a lot for you help.
>> Cheers,
>> Charlotta
>> 
>> 
>> ---
>> Charlotta Schärfe
>> Eberhard Karls University Tübingen
>> Applied Bioinformatics Group
>> Phone: +49 (0)7071 29-70462
>> schae...@informatik.uni-tuebingen.de
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> Remotely access PCs and mobile devices and provide instant support
>> Improve your efficiency, and focus on delivering more value-add services
>> Discover what IT Professionals Know. Rescue delivers
>> http://p.sf.net/sfu/logmein_12329d2d
>> _______________________________________________
>> OpenBabel-discuss mailing list
>> OpenBabel-discuss@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>> 


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to