Ich versuche, Python 3.6.2 aus der Quelle auf meinem Raspberry Pi mit Raspbian Jessie zu bauen und zu installieren. Hier ist, wie der Build-Prozess ist vorbei:CPython Install Failure
$ ./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
Der Fehler ist:
*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.
Aber die Datei existiert, und so auch das Ziel:
$ 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
Grundsätzlich wtf. Ich habe versucht, in der Makefile
und setup.py
herumzustochern, aber habe nicht wirklich die Zeit, um den gesamten Build-Prozess vollständig zu grok. Was könnte hier vor sich gehen? Sollte ich einfach aufgeben, checkinstall
zu verwenden? Jeder Rat ist willkommen.