我正在尝试为 64 位编译 Python 2.6,我尝试了各种编译命令,但不确定这些是否正确
./configure --with-universal-archs=32-bit --prefix="$HOME/python"
make
make install
什么是正确的语法...?
究竟是什么行不通?您收到任何错误消息吗?
尝试简单编译而不先安装:
$ cd path/to/python/source
$ ./configure
$ make all
... wait for some time ...
$ make test # this runs python's test suite, you can usually skip this
$ ./python # note the ./ runs the just installed python instead of system's python
$ # note: do not run make install yet, or you will override system's python, see below
另外,请确保您已安装 make(GNU Make 或其他)。
你从哪里得到的来源?如果您直接从存储库中获取它,则源可能已损坏,或者您可能需要重新运行 autotool。
在测试编译确实有效之后,您可以:
$ cd path/to/python/source/
$ ./configure --prefix=/where/you/want/to/install/it
$ make all
... wait for some time ...
$ make test # this runs python's test suite, you can usually skip this
$ make install