我想在 Windows 7 上使用图形工具,但我无法安装它。
此处列出的所有要求均已成功安装。Python 2.7 安装在C:\python27
. Boost 1.49.0 用mingw 编译成功,安装进去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,但它找不到 boost::python。由于它的大小,我无法config.log
在 stackoverflow 上发布,但你可以在这里找到它。
我现在真的很困惑,不胜感激。