2017-07-30 267 views
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 

基本上,跆拳道。我曾嘗試在Makefilesetup.py之間徘徊,但實際上並沒有時間來完全構建整個構建過程。這裏會發生什麼?我應該放棄使用checkinstall嗎?任何建議是受歡迎的。

回答

0

事實證明,這是一個checkinstall錯誤,一些描述。我咬緊牙關,跑到sudo make altinstall,一切都順利。我已經研究了一下checkinstall,它似乎有一些......難題。我不會過分地將它標記爲「越野車」,並且它在大多數情況下運行良好,但有時它會出錯,似乎沒有太多可以做到的事情。