Boost logo

Boost-Build :

Subject: [Boost-build] Getting bjam to build with python in windows
From: Mats Carlsson (m.mcaber_at_[hidden])
Date: 2009-09-28 08:54:26


I'm trying to run bjam using this command:
bjam --with-system --with-thread --with-date_time --with-regex
--with-serialization stage

I get a message that tells me that bjam can not find python:
WARNING: No python installation configured and autoconfiguration
         failed. See
         for configuration instructions or pass --without-python to
         suppress this message and silently skip all Boost.Python targets

When running:
bjam --debug-configuration

I get:
notice: [python-cfg] Configuring python...
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'DIR /-C /A:S
"C:\Python31\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)"
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:\Python31\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>"

It seems to find python (C:\Python31\python.exe), but I guess it
should use pythonw.exe instead of python.exe. I do not how to get bjam
to look in the right place. I have been looking in some of the
config.jam files, but I do not know how, or if I should change them.

If some one could give some help it would be greatly appreciated.

/Mats Carlsson

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at