我想在Windows 7上使用graph-tool,但我在安装时遇到了问题。
已成功安装列出here的所有要求。 Python 2.7安装在C:\python27
中。使用mingw成功编译了Boost 1.49.0,安装在C:\boost
中,BOOST_ROOT
环境变量指向它。 Boost在调试和发布模式下编译,静态和动态。
从MSyS中调用configure
会导致以下错误。
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
============================================================================
调用configure LDFLAGS="-LC:/python27/libs"
修复此错误,但会导致以下错误
checking for boostlib >= 1.38.0... configure: error: We could not detect the boo
st libraries (version 1.38 or higher). If you have a staged boost library (still
not installed) please specify $BOOST_ROOT in your environment and do not give a
PATH to --with-boost option. If you are sure you have boost installed, then ch
eck your version number looking in <boost/version.hpp>. See http://randspringer.
de/boost for more documentation.
这很奇怪,因为BOOST_ROOT
已明确定义(使用printenv
命令检查)。
我尝试的下一个命令是configure --with-boost="C:/boost" LDFLAGS="-LC:/python27/libs"
checking for boostlib >= 1.38.0... yes
checking whether the Boost::Python library is available... no
configure: error: No usable boost::python found
好吧它检测到提升,但它找不到boost :: python。由于它的大小,我无法在stackoverflow上发布config.log
,但您可以找到它here。
我现在真的很困惑,并希望得到任何帮助。
答案 0 :(得分:6)
我没有为Windows编译图形工具(或其他任何东西)的经验,但是config.log的以下部分很突出:
configure:17224: checking whether the Boost::Python library is available
configure:17254: g++ -c -Wall -ftemplate-depth-150 -Wno-deprecated -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden -Wno-unknown-pragmas -Ic:\python27\include conftest.cpp >&5
conftest.cpp:32:36: fatal error: boost/python/module.hpp: No such file or directory
compilation terminated.
请注意您传递的增强路径未被使用!尝试传递CXXFLAGS =“ - IC:\ boost \ include”以进行配置。
答案 1 :(得分:0)
这可能会有所帮助:
./configure --prefix=/usr/
对于Windows路径的是不同的,请亲自尝试。