Boost C++ Libraries: Ticket #5023: Can not build Boost.Python https://svn.boost.org/trac10/ticket/5023 <p> I have installed Python 2.6 when i runing "bjam" i have messages: </p> <pre class="wiki">warning: No python installation configured and autoconfiguration note: failed. See http://www.boost.org/libs/python/doc/building.html note: for configuration instructions or pass --without-python to note: suppress this message and silently skip all Boost.Python targets </pre><p> After I add add line "using python : 2.6 ; " to "project-config.jam" I have this warning message again. </p> <p> Then I add absolute path to python in "project-config.jam". This is not working too. </p> <p> I run bjam with "--debug-configuration" option and have messages: </p> <pre class="wiki">notice: [python-cfg] running command '"C:\Python26\python.exe" -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&gt;&amp;1' notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] No working Python interpreter found. </pre><p> But when I run </p> <pre class="wiki">"C:\Python26\python.exe" -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))" </pre><p> manualy, I have correct results. </p> <p> Ok. Next I modify "tools\build\v2\tools\python.jam" </p> <pre class="wiki">local rule shell-cmd ( cmd ) { debug-message running command '$(cmd)" 2&gt;&amp;1"' ; x = [ SHELL $(cmd)" 2&gt;&amp;1" : exit-status ] ; debug-message CMD "$(cmd)" ; &lt;&lt;&lt;&lt;&lt;&lt;&lt; add this string debug-message RESULT "$(x)" ; &lt;&lt;&lt;&lt;&lt;&lt;&lt; add this string if $(x[2]) = 0 { return $(x[1]) ; } else { return ; } } </pre><p> and run "bjam --debug-configuration" again </p> <p> Result: </p> <pre class="wiki">notice: [python-cfg] running command '"C:\Python26\python.exe" -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&gt;&amp;1' notice: [python-cfg] CMD "C:\Python26\python.exe" -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] RESULT "C:\Python26\python.exe" -c "from" &lt;&lt;&lt;&lt; (here is error text at Russian. He said what this is not correct path and shell can not execute this command) notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] No working Python interpreter found. </pre><p> I don't know why he is trim command. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5023 Trac 1.4.3 hacenator@… Wed, 29 Dec 2010 14:30:32 GMT <link>https://svn.boost.org/trac10/ticket/5023#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5023#comment:1</guid> <description> <p> Original message: </p> <pre class="wiki">notice: [python-cfg] CMD "C:\Python26\python.exe" -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] RESULT "C:\Python26\python.exe" -c "from" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. 1 notice: [python-cfg] ...does not invoke a working interpreter notice: [python-cfg] No working Python interpreter found. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Thu, 30 Dec 2010 15:09:59 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/5023#comment:2 https://svn.boost.org/trac10/ticket/5023#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">build</span> </li> </ul> Ticket