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