|
Boost-Build : |
Subject: [Boost-build] Building with Python - cannot find python configuration
From: rkdelisle_at_[hidden]
Date: 2009-11-19 15:07:32
I am attempting to build Boost as follows:
I'm working on a Windows XP machine using GCC supplied by MinGW. I've
downloaded Boost_1_40_0 and successfully built bjam.exe.
For a test, I've switched to
C:\Boost\boost_1_40_0\libs\python\example\quickstart as instructed here:
http://www.boost.org/doc/libs/1_41_0/libs/python/doc/building.html
When I execute
bjam.exe toolset=gcc --verbose-test test or bjam.exe toolset=gcc
--debug-configuration --verbose-test test
I get this warning:
WARNING: No python installation configured and autoconfiguration
failed. See http://www.boost.org/libs/python/doc/building.html
for configuration instructions or pass --without-python to
suppress this message and silently skip all Boost.Python targets
--debug-configuration output contains the following:
notice: [python-cfg] Configuring python...
notice: [python-cfg] Registry indicates Python 2.5 installed
at "C:\Python25\"
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Python25\python.exe"
2>&1'
notice: [python-cfg] running command '"python" -c "from sys import *;
print 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' %
(version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "C:\Python25\python"...
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Python25\python.exe"
2>&1'
notice: [python-cfg] running command '"C:\Python25\python" -c "from sys
import *;
print 'version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' %
(version_info[0],version_info[1],platform,prefix,exec_prefix,executable)"
2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] No working Python interpreter found.
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Python25\python.exe"
2>&1'
notice: [python-cfg] falling back to "python"
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "python"
notice: [python-cfg] include path: "Include"
notice: [python-cfg] library path: "\libs"
notice: [python-cfg] DLL search path: "<empty>"
However, I have Python installed at C:\Python25 and there is indeed
python.exe at C:\Python25\python.exe
Also, C:\Python25 is in my PATH.
Any help is greatly appreciated.
-Kirk
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk