简体   繁体   English

hello world 示例中的 Boost.python 错误

[英]Boost.python error in hello world example

I keep getting the error when I try to compile the hello world example with bjam.当我尝试使用 bjam 编译 hello world 示例时,我不断收到错误消息。 Everything in Jamroot file ran ok, except the last line (when I commented this line, no error happens): Jamroot 文件中的所有内容都运行正常,除了最后一行(当我评论这一行时,没有发生错误):

run-test hello : hello_ext hello.py ;

The error is:错误是:

capture-output bin/hello.test/gcc-4.5.2/debug/hello
export: 3: LD_LIBRARY_PATH: bad variable name

    LD_LIBRARY_PATH=/home/hoangtu/Programs/boost_1_46_1/bin.v2/libs/python/build/gcc-4.5.2/debug:/home/hoangtu/Programs/boost_1_46_1/libs/python/example/tutorial/bin/gcc-4.5.2/debug:/usr/bin:/usr/lib:/usr/lib32:/usr/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

    PYTHONPATH=bin/gcc-4.5.2/debug
export PYTHONPATH
 "/usr/bin/python2.7" "hello.py"   > "bin/hello.test/gcc-4.5.2/debug/hello.output" 2>&1
    status=$?
    echo >> "bin/hello.test/gcc-4.5.2/debug/hello.output"
    echo EXIT STATUS: $status >> "bin/hello.test/gcc-4.5.2/debug/hello.output"
    if test $status -eq 0 ; then
        cp "bin/hello.test/gcc-4.5.2/debug/hello.output" "bin/hello.test/gcc-4.5.2/debug/hello"
    fi
    verbose=0
    if test $status -ne 0 ; then
        verbose=1
    fi
    if test $verbose -eq 1 ; then
        echo ====== BEGIN OUTPUT ======
        cat "bin/hello.test/gcc-4.5.2/debug/hello.output"
        echo ====== END OUTPUT ======
    fi
    exit $status

...failed capture-output bin/hello.test/gcc-4.5.2/debug/hello...
...failed updating 1 target...
...skipped 1 target...

I had encountered similar problem during building adobe asl library.我在构建 adobe asl 库时遇到了类似的问题。 The problem was the version of installed from ubuntu repositories bjam (3.1.16).问题是从 ubuntu 存储库 bjam (3.1.16) 安装的版本。 After installing latest bjam from sourceforge (3.1.18), everything worked as it should.从 sourceforge (3.1.18) 安装最新的 bjam 后,一切正常。

PS. PS。 OS is Ubuntu 11.04操作系统是 Ubuntu 11.04

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM