2010-04-14 104 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 

測試的編譯實際工作,那麼你就可以後