2010-04-14 43 views
1

我试图编译的Python 2.6 64位,我尝试过各种编译命令,但不能确定是否这些都是正确的Redhat |如何编译的Python 2.6 64位

./configure --with-universal-archs=32-bit --prefix="$HOME/python" 
make 
make install 

什么是正确的语法...?

回答

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 

还,请确保您有做安装(GNU制作或以其他方式)。

你从哪里获得源代码?如果您直接从存储库中获取它,则可能是源代码已损坏,或者您可能需要重新运行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 

测试的编译实际工作,那么你就可以后