[C++-sig] using debug python with boost build

John Reid j.reid at mail.cryst.bbk.ac.uk
Tue Sep 18 10:39:35 CEST 2012


Hi,

I'm setting up my environment on a fresh machine with boost 1.51 and I
can't get my python debug builds to work. I've got this in my
user-config.jam

using python ;
using python : : /home/john/local/Python-2.7.3-dbg/bin/python : : :
<python-debugging>on ;



I've built a python debug and installed it into
/home/john/local/Python-2.7.3-dbg/. I've also tried with the Ubuntu
python debug package.
I've set <python-debugging>on in the project I'm building but I get
these error messages:



capture-output
/home/john/Dev/Bio/bin/Biopsy/build_svg_test.test/gcc-4.6/debug/python-debugging-on/build_svg_test
====== BEGIN OUTPUT ======
/home/john/local/Python-2.7.3-dbg/bin/python: can't open file 'python':
[Errno 2] No such file or directory

EXIT STATUS: 2
====== END OUTPUT ======


LD_LIBRARY_PATH="/home/john/Dev/Bio/bin/Bio/gcc-4.6/debug/python-debugging-on:/home/john/Dev/Bio/bin/Biopsy/gcc-4.6/debug/python-debugging-on:/home/john/src/bin:/home/john/src/boost/boost_1_51_0/bin.v2/libs/chrono/build/gcc-4.6/debug/python-debugging-on/threading-multi:/home/john/src/boost/boost_1_51_0/bin.v2/libs/date_time/build/gcc-4.6/debug/python-debugging-on:/home/john/src/boost/boost_1_51_0/bin.v2/libs/filesystem/build/gcc-4.6/debug/python-debugging-on:/home/john/src/boost/boost_1_51_0/bin.v2/libs/program_options/build/gcc-4.6/debug/python-debugging-on:/home/john/src/boost/boost_1_51_0/bin.v2/libs/python/build/gcc-4.6/debug/python-debugging-on:/home/john/src/boost/boost_1_51_0/bin.v2/libs/regex/build/gcc-4.6/debug/python-debugging-on:/home/john/src/boost/boost_1_51_0/bin.v2/libs/serialization/build/gcc-4.6/debug/python-debugging-on:/home/john/src/boost/boost_1_51_0/bin.v2/libs/system/build/gcc-4.6/debug/python-debugging-on:/home/john/src/boost/boost_1_51_0/bin.v2/libs/system/bui
ld/gcc-4.6/debug/python-debugging-on/threading-multi:/home/john/src/boost/boost_1_51_0/bin.v2/libs/thread/build/gcc-4.6/debug/python-debugging-on/threading-multi:/home/john/src/lib:/home/john/src/lib32:/home/john/src/lib64:/tmp/xercesc/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH


PYTHONPATH="/home/john/Dev/Bio/bin/Biopsy/gcc-4.6/debug/python-debugging-on"
export PYTHONPATH
 "/home/john/local/Python-2.7.3-dbg/bin/python" "python"
"python_test/test_build_svg.py"   >
"/home/john/Dev/Bio/bin/Biopsy/build_svg_test.test/gcc-4.6/debug/python-debugging-on/build_svg_test.output"
2>&1
    status=$?
    echo >>
"/home/john/Dev/Bio/bin/Biopsy/build_svg_test.test/gcc-4.6/debug/python-debugging-on/build_svg_test.output"
    echo EXIT STATUS: $status >>
"/home/john/Dev/Bio/bin/Biopsy/build_svg_test.test/gcc-4.6/debug/python-debugging-on/build_svg_test.output"
    if test $status -eq 0 ; then
        cp
"/home/john/Dev/Bio/bin/Biopsy/build_svg_test.test/gcc-4.6/debug/python-debugging-on/build_svg_test.output"
"/home/john/Dev/Bio/bin/Biopsy/build_svg_test.test/gcc-4.6/debug/python-debugging-on/build_svg_test"
    fi
    verbose=0
    if test $status -ne 0 ; then
        verbose=1
    fi
    if test $verbose -eq 1 ; then
        echo ====== BEGIN OUTPUT ======
        cat
"/home/john/Dev/Bio/bin/Biopsy/build_svg_test.test/gcc-4.6/debug/python-debugging-on/build_svg_test.output"
        echo ====== END OUTPUT ======
    fi
    exit $status


Any ideas where I'm going wrong?

Thanks,
John.



More information about the Cplusplus-sig mailing list