我正在尝试在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将成功安装。
实际结果:上面提到的错误信息。
1条答案
按热度按时间eni9jsuy1#
创建python3* 到python的软链接