我正在尝试在运行 Raspbian Jessie 的 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
基本上,wtf。我曾尝试在其中四处寻找Makefile
,setup.py
但实际上并没有时间完全了解整个构建过程。这里会发生什么?我应该放弃使用checkinstall
吗?欢迎任何建议。