Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find the requested Boost libraries. #1995

Closed
wwwangzhch opened this issue Aug 4, 2018 · 6 comments
Closed

Unable to find the requested Boost libraries. #1995

wwwangzhch opened this issue Aug 4, 2018 · 6 comments
Labels

Comments

@wwwangzhch
Copy link

wwwangzhch commented Aug 4, 2018

Description:

  • RDKit Version:rdkit-Release_2018_03_3
  • Platform:macOS High Sierra

Hello,
I tried to use the method Building from source to install RDkit, there something wrong when I entered cmake ..,the terminal shows that

Unable to find the requested Boost libraries.
Boost version: 1.67.0
Boost include path: /usr/local/include
Could not find the following Boost libraries:
boost_python
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.

But I have added /usr/local/Cellar/boost/lib and /usr/local/Cellar/boost-python/lib to the ~/.bash_profile.
My ~/.bash_profile is written like this:

export RDBASE=/Users/wangzhicheng/Software/RDkit/rdkit-Release_2018_03_3
export PYTHONPATH=$RDBASE
export DYLD_LIBRARY_PATH=$RDBASE/lib:/usr/local/Cellar/boost/1.67.0_1/lib:/usr/local/Cellar/boost-python/1.67.0/lib:/usr/local/lib:/usr/local/Cellar/boost-python3/1.67.0_1/lib
export PATH="/Users/wangzhicheng/anaconda3/bin:$PATH"

How can I solve this error?

@greglandrum
Copy link
Member

Did you install the boost python libraries too? I think there's something special you need to do here when you install boost using homebrew.

@wwwangzhch
Copy link
Author

Do you mean boost-python or boost-python3?I have already installed these libraries by typing brew install boost-python or brew install boost-python3 but it didn't work.

@greglandrum
Copy link
Member

Whichever one corresponds to the version of python you are using.

I think this is a homebrew problem and I don't use homebrew, so I can't really help here. If you have set BOOST_ROOT to the value where your boost libraries are installed and cmake is finding at least some of the libraries, then I'm not sure what else to do.

A question I always need to ask: Do you really need to build your own version of the RDKit? Is there a reason you can't use the anaconda builds? Unless you are planning on doing C++ development for the RDKit, it's almost always enough to use the conda version.

@wwwangzhch
Copy link
Author

I need RDkit because this project, and the author stress that we must build the RDkit from source.If we use anaconda there will be some problem in the following steps.

Anyway, thx for your reply!

@wwwangzhch
Copy link
Author

wwwangzhch commented Aug 8, 2018

I think I've found the solution to this problem.

The reason for the problem is cmake want to find libboost_python3.dylib in your library folder but in fact this file is called libboost_python3x.dylib(x is depended on your python version), so you just need to type following commands in your terminal:

cd /usr/local/lib
sudo ln -s libboost_python3x.dylib libboost_python3.dylib

and you can solve this error!

@mcs07
Copy link
Contributor

mcs07 commented Aug 8, 2018

Should be fixed by #1864 in a future RDKit release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants