【发布时间】:2018-08-07 08:33:12
【问题描述】:
平台:macOS High Sierra
你好,
我尝试使用Building from source的方法安装RDkit,输入cmake ..时出现问题,终端显示
CMake 警告位于 /usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/FindBoost.cmake:1723(消息): 没有为 python-py36 定义标头;跳过标题检查 调用堆栈(最近的调用优先): CMakeLists.txt:202 (find_package)
/usr/local/Cellar/cmake/3.12.0/share/cmake/Modules/FindBoost.cmake:2044 处的 CMake 错误(消息): 找不到请求的 Boost 库。
Boost 版本:1.67.0
Boost 包含路径:/usr/local/include
找不到以下 Boost 库:
boost_python
未找到任何 Boost 库。您可能需要将 BOOST_LIBRARYDIR 设置为 包含 Boost 库或 BOOST_ROOT 的目录到 提升。
但我已将 /usr/local/Cellar/boost/lib 和 /usr/local/Cellar/boost-python/lib 添加到 ~/.bash_profile。 我的 ~/.bash_profile 是这样写的:
导出RDBASE=/Users/wangzhicheng/Software/RDkit/rdkit-Release_2018_03_3
导出 PYTHONPATH=$RDBASE
导出 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"
顺便说一句,我已经安装了自制的boost,boost-python3。
那么问题出在哪里?
【问题讨论】: