【发布时间】:2016-01-15 03:16:45
【问题描述】:
我正在尝试安装此软件http://www.openstructure.org/docs/1.4/install/,但出现此错误:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PYTHON_LIBRARIES (ADVANCED)
linked by target "_ost_conop" in directory /opt/ost/modules/conop/pymod
linked by target "_ost_gfx" in directory /opt/ost/modules/gfx/pymod
linked by target "_ost_img" in directory /opt/ost/modules/img/base/pymod
linked by target "_ost_img_alg" in directory /opt/ost/modules/img/alg/pymod
linked by target "ost_gui" in directory /opt/ost/modules/gui/src
linked by target "_ost_gui" in directory /opt/ost/modules/gui/pymod
linked by target "_ost_io" in directory /opt/ost/modules/io/pymod
linked by target "_ost_info" in directory /opt/ost/modules/info/pymod
linked by target "_ost_seq" in directory /opt/ost/modules/seq/base/pymod
linked by target "_ost_seq_alg" in directory /opt/ost/modules/seq/alg/pymod
linked by target "_ost_mol" in directory /opt/ost/modules/mol/base/pymod
linked by target "_ost_mol_alg" in directory /opt/ost/modules/mol/alg/pymod
linked by target "_ost_geom" in directory /opt/ost/modules/geom/pymod
linked by target "_ost_base" in directory /opt/ost/modules/base/pymod
-- Configuring incomplete, errors occurred!
See also "/opt/ost/CMakeFiles/CMakeOutput.log".
See also "/opt/ost/CMakeFiles/CMakeError.log".
我猜我必须将PYTHON_LIBRARIES 的路径传递给cmake,但我不知道是什么。我安装了正确的 python 和所有其他依赖项。
【问题讨论】:
-
您与我们共享的链接有一个明确的示例,其中 PYTHON_LIBRARIES 设置为 homebrew 安装 Python 的路径。你有没有遵循这个?您是否从 homebrew 安装了所有依赖项?
-
在那个页面上没有这样的例子,那就是 PYTHON_ROOT。另外我不是在 Mac 上,而是在 Ubuntu 14.04 上。
-
为什么投反对票?这是一个问题,也是该问题的答案。