2012-05-03 7 views
8

Mi piacerebbe usare graph-tool su Windows 7, ma ho difficoltà ad installarlo.impossibile installare graph-tool in windows 7

Tutti i requisiti elencati here sono stati installati correttamente. Python 2.7 è installato in C:\python27. Boost 1.49.0 è stato compilato con successo con mingw, installato in C:\boost e la variabile di ambiente BOOST_ROOT sta puntando ad esso. Boost è compilato in modalità debug e release e sia statico che dinamico.


Richiamo configure dall'interno MSYS porta alla seguente errore.

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. 
    ============================================================================ 

Calling configure LDFLAGS="-LC:/python27/libs" risolto questo errore, ma portano alla seguente errore

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. 

Questo è strano, dal momento che BOOST_ROOT è chiaramente definito (controllato con printenv di comando).


Il comando successivo ho provato è stato 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 

Va bene rileva spinta, ma non riesce a trovare boost :: pitone. A causa delle sue dimensioni, non riesco a pubblicare lo config.log su StackOverflow ma lo puoi trovare here.

Sono davvero confuso al momento e apprezzerei qualsiasi aiuto.

risposta

0

può essere qualcosa come questo aiuterebbe:

./configure --prefix=/usr/ 

per le finestre percorso è diverso, provate voi stessi.

6

Io ho zero esperienza con la compilazione del grafico-strumento (o qualsiasi altra cosa) per le finestre, ma la parte seguente del vostro config.log spicca:

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. 

Si noti come il percorso spinta avete passato non è essere Usato! Prova a passare CXXFLAGS = "- IC: \ boost \ include" per configurare pure.