Hi Michal,

On Mon, Jul 22, 2013 at 4:58 AM, Michał Nowotka <[email protected]> wrote:

> Hi,
>
> I'm trying to compile rdkit on RHEL. I started with running cmake using
> following command:
>
> cmake -DPYTHON_INCLUDE_PATH=/nfs/web-hx/chembl/utils/python-2.7.5/include/
> -DPYTHON_LIBRARY=/nfs/web-hx/chembl/utils/python-2.7.5/lib/
> -DPYTHON_NUMPY_INCLUDE_PATH=/net/isilonP/public/rw/homes/cbl_adm/.virtualenvs/chembl_webservices/lib/python2.7/site-packages/numpy/
>
> So, as you see my python installation is not in default place. This
> command passed without problems.
>
> Now I have problems with make, it seems it has problems with finding
> python headers:
>
> /usr/include/boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h:
> No such file or directory
> /usr/include/boost/python/detail/wrap_python.hpp:75:24: error:
> patchlevel.h: No such file or directory
> /usr/include/boost/python/detail/wrap_python.hpp:78:2: error: #error
> Python 2.2 or higher is required for this version of Boost.Python.
> /usr/include/boost/python/detail/wrap_python.hpp:142:21: error: Python.h:
> No such file or directory
>
> I guess I'm missing some parameter but I don't know which. Can you help me?
>

This is the command I execute on an RHEL 5 machine where I regularly build
the RDKit:
cmake -D PYTHON_INCLUDE_DIR=/usr/prog/python/2.6.6_gnu/include/python2.6 -D
PYTHON_LIBRARY=/usr/prog/python/2.6.6_gnu/lib/python2.6/config/libpython2.6.a
 ..

I run this from a shell where the bin directory containing python is early
in my PATH, so that just typing "python" at the prompt invokes the correct
version.

I believe that the PYTHON_NUMPY_INCLUDE_PATH bit should not be necessary if
you follow the above steps.

Note: it looks like you are doing this where at least part of your python
environment is using virtualenv (the numpy bit for sure); this is something
I have not tried.

-greg
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to