0

我正在使用 Ubuntu 16.04 并尝试从官方文档安装 RDKit 。我安装了先决条件,下载了 zip 文件并将其解压缩到我的文件夹中。制作了一个构建目录,输入它,我输入了cmake ..,这就是输出

    -- Found Catch2 source in /home/krishna/Coding/GitHub Projects/rdkit-Release_2018_09_1/External/catch/catch
CATCH: /home/krishna/Coding/GitHub Projects/rdkit-Release_2018_09_1/External/catch/catch/single_include
CMake Warning at /home/krishna/anaconda3/share/cmake-3.12/Modules/FindBoost.cmake:1727 (message):
  No header defined for python-py37; skipping header check
Call Stack (most recent call first):
  CMakeLists.txt:236 (find_package)


PYTHON Py_ENABLE_SHARED: 0
PYTHON USING LINK LINE: -pthread -shared -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/home/krishna/anaconda3/lib -L/home/krishna/anaconda3/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/home/krishna/anaconda3/lib -L/home/krishna/anaconda3/lib
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   serialization
== Using strict rotor definition
-- Found MAEParser source in /home/krishna/Coding/GitHub Projects/rdkit-Release_2018_09_1/External/CoordGen/maeparser
-- Found coordgenlibs source in /home/krishna/Coding/GitHub Projects/rdkit-Release_2018_09_1/External/CoordGen/coordgenlibs
== Updating Filters.cpp from pains file
== Done updating pains files
-- Found RapidJSON source in /home/krishna/Coding/GitHub Projects/rdkit-Release_2018_09_1/External
-- Configuring done
-- Generating done
-- Build files have been written to: /home/krishna/Coding/GitHub Projects/rdkit-Release_2018_09_1/build

后来当我进入时,make我收到以下信息

[  0%] Built target catch
[  0%] Built target inchi_support
[  0%] Building CXX object External/CoordGen/CMakeFiles/maeparser.dir/maeparser/MaeBlock.cpp.o
In file included from /home/krishna/Coding/GitHub Projects/rdkit-Release_2018_09_1/External/CoordGen/maeparser/MaeBlock.cpp:1:0:
/home/krishna/Coding/GitHub Projects/rdkit-Release_2018_09_1/External/CoordGen/maeparser/MaeBlock.hpp:3:10: fatal error: boost/dynamic_bitset.hpp: No such file or directory
 #include <boost/dynamic_bitset.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
External/CoordGen/CMakeFiles/maeparser.dir/build.make:75: recipe for target 'External/CoordGen/CMakeFiles/maeparser.dir/maeparser/MaeBlock.cpp.o' failed
make[2]: *** [External/CoordGen/CMakeFiles/maeparser.dir/maeparser/MaeBlock.cpp.o] Error 1
CMakeFiles/Makefile2:275: recipe for target 'External/CoordGen/CMakeFiles/maeparser.dir/all' failed
make[1]: *** [External/CoordGen/CMakeFiles/maeparser.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

我已经安装了最新的 boost 库,bashrc 文件也已更新为

export RDBASE=/rdkit-Release_2018_09_1/Release_2018_09_1
export LD_LIBRARY_PATH=$RDBASE/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$RDBASE:$PYTHONPATH
export PATH=$PATH:/Coding/boost_1_69_0

请帮忙!应该改变什么才能成功构建模块?

4

1 回答 1

0

我无法评论(声誉......),但我看到你正在使用 Anaconda。为什么不通过 conda 安装?只需输入conda install rdkit要安装 rdkit 的环境。

于 2019-04-16T11:37:25.263 回答