2012-05-03 9 views
8

Windows 7에 graph-tool을 사용하고 싶지만 설치하는 데 문제가 있습니다.Windows 7에 그래프 도구를 설치할 수 없습니다.

나열된 요구 사항은 모두 here입니다. 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"이 오류를 해결하지만, BOOST_ROOT이 명확하게 정의되어 있기 때문에, 다음과 같은 오류

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. 

이 이상해으로 이어질 호출 (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 

좋아했지만, 그것은 :: 향상 파이썬을 찾을 수 없습니다. 그 크기로 인해 나는 config.log을 stackoverflow에 게시 할 수 없지만 here을 찾을 수 있습니다.

나는 정말로 혼란스럽고 어떤 도움을 주셔서 감사합니다.

답변

0

은 다음과 같이 도움이 될 수 있음 : 경로가 다른 Windows 용

./configure --prefix=/usr/ 

, 그것을 자신을 시도합니다.

6

나는 창문 그래프 도구 (또는 다른 것)를 컴파일 제로 경험이 있지만 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"를 전달하여 구성하십시오.

관련 문제