linux 安装Boost.Python时出现问题:未配置python安装和自动配置

wgxvkvu9  于 2023-10-16  发布在  Linux
关注(0)|答案(1)|浏览(169)

我正在尝试在Linux上安装Python.Boost。我将.tar.bz2解压缩到/usr/local,引导成功,但尝试执行./b2 --with-python导致以下错误消息:

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 ...found 1 target... ...updating 1 target... config-cache.write bin.v2/project-cache.jam /bin/sh: 2: cannot create bin.v2/project-cache.jam: Permission denied

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
...found 1 target...
...updating 1 target...
config-cache.write bin.v2/project-cache.jam
/bin/sh: 2: cannot create bin.v2/project-cache.jam: Permission denied

    cat "/tmp/jamace8d64e.000" > "bin.v2/project-cache.jam"

...failed config-cache.write bin.v2/project-cache.jam...
...failed config-cache.write bin.v2/project-cache.jam...

任何见解将不胜感激。
尝试:配置user-config.jam文件,通过./b2 --with-python=path/to/python3提供python3.
预期:Boost.Python将成功安装。
实际结果:上面提到的错误信息。

相关问题