我正在尝试为64位编译Python 2.6,我尝试了各种编译命令,但不确定这些是否正确
./configure --with-universal-archs=32-bit --prefix="$HOME/python"
make
make install
正确的语法是什么......?
答案 0 :(得分:1)
究竟什么不起作用?你收到任何错误信息吗?
尝试简单编译而不先安装:
$ 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