LoginSignup
0
1

More than 5 years have passed since last update.

OSXでRDKitをソースからビルドするときに出るboost関係のエラーをなんとかする

Last updated at Posted at 2017-04-16

Q:RDKitのビルド時、 make 中に下記のようなエラーがでてビルドが進まない

$ make
[  0%] Built target inchi_support
[  1%] Built target RDGeneral
[  2%] Built target RDGeneral_static
[  3%] Built target testDict
[  4%] Built target testRDValue
[  4%] Linking CXX shared library ../../lib/libRDBoost.dylib
[  4%] Built target RDBoost
[  4%] Built target RDBoost_static
[  4%] Linking CXX shared module ../../../rdkit/rdBase.so
Undefined symbols for architecture x86_64:
  "boost::python::detail::init_module(PyModuleDef&, void (*)())", referenced from:
      _PyInit_rdBase in RDBase.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [rdkit/rdBase.so] Error 1
make[1]: *** [Code/RDBoost/Wrap/CMakeFiles/rdBase.dir/all] Error 2
make: *** [all] Error 2

A: boostのライブラリの問題なので --with-python3 --without-python を付けてインストールし直す

brew uninstall boost-python
brew install boost-python --with-python3 --without-python
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1