我正在尝试在运行Raspbian的Raspberry Pi上从源代码构建和安装python 3.6.2。以下是构建过程的过程:
$ ./configure --enable-optimizations --enable-ipv6 # everything seems fine
$ make -s -j$(nproc) # everything seems fine except for a few tests being skipped
$ make test # again, a few tests are skipped
$ sudo checkinstall -D make altinstall # FAILURE错误是:
*snip*
running install_lib
copying build/lib.linux-armv7l-3.6/_codecs_cn.cpython-36m-arm-linux-gnueabihf.so -> /usr/local/lib/python3.6/lib-dynload
error: [Errno 2] No such file or directory
Makefile:1451: recipe for target 'sharedinstall' failed
make: *** [sharedinstall] Error 1
**** Installation failed. Aborting package creation.
Cleaning up...OK
Bye.但是,文件确实存在,目标也是如此:
$ ls build/lib.linux-armv7l-3.6/_codecs_cn.cpython-36m-arm-linux-gnueabihf.so
build/lib.linux-armv7l-3.6/_codecs_cn.cpython-36m-arm-linux-gnueabihf.so
$ ls /usr/local/lib/python3.6
config-3.6m-arm-linux-gnueabihf lib-dynload基本上是这样的。我已经尝试过在Makefile和setup.py中穿插,但是并没有真正的时间来充分探索整个构建过程。这里会发生什么事?我应该放弃使用checkinstall吗?欢迎任何建议。
发布于 2017-07-31 01:58:02
事实证明,这是一个checkinstall错误,有某种描述。我咬紧牙关,跑了sudo make altinstall,一切顺利。我已经深入研究了checkinstall,它似乎有一个few...difficult错误。我不会给它贴上“but”的标签,而且它大部分时间都很好用,但有时它出了问题,而且似乎没有什么可以做的。
https://stackoverflow.com/questions/45397216
复制相似问题