1
我想從運行Raspbian Jessie的Raspberry Pi上從源代碼構建和安裝python 3.6.2。下面是構建過程是如何走:CPython安裝失敗
$ ./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
嗎?任何建議是受歡迎的。