2012-05-03 34 views
8

Me gustaría usar graph-tool en Windows 7, pero tengo problemas para instalarlo.no se puede instalar graph-tool en Windows 7

Todos los requisitos enumerados here se han instalado correctamente. Python 2.7 está instalado en C:\python27. Boost 1.49.0 se compiló con éxito con mingw, instalado en C:\boost y la variable de entorno BOOST_ROOT lo señala. Boost está compilado en modo de depuración y liberación, y estático y dinámico.


Invocando configure desde dentro Msys conduce a la siguiente error.

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" fija este error, sino que conducen al error siguiente

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. 

Esto es raro, ya que BOOST_ROOT está claramente definido (comprobado con printenv de comandos).


El siguiente comando que probé fue 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 

bien detecta impulso, pero no puede encontrar impulsar :: pitón. Debido a su tamaño, no puedo publicar el config.log en stackoverflow pero puedes encontrarlo here.

Estoy realmente confundido en este momento y agradecería cualquier ayuda.

Respuesta

0

puede ser algo como esto ayudaría:

./configure --prefix=/usr/ 

para las ventanas ruta es diferente, trate de hacerlo solo.

6

tengo cero experiencia con la compilación gráfico-herramienta (o cualquier otra cosa) para las ventanas, pero la siguiente parte de su config.log destaca:

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. 

Nota cómo el camino impulso que ha pasado no está siendo ¡usado! Intenta pasar CXXFLAGS = "- IC: \ boost \ include" para configurarlo también.

Cuestiones relacionadas