安裝了兩天的 wxPython 總算成功了,大致上整理了一下安裝的流程做個紀錄與說明,有需要的朋友可以參考看看。不過,在安裝的過程中建議不要進行其它的作業,不然會讓整體的安裝時間拖的很長。
系統平台:RedHat Linux 7.3 with AMD XP 1.6G
wxPython:http://www.wxpython.org
安裝方式:
請先確認系統已經安裝了Python 2.4以上的版本
從wxPython網站上下載最新的版本 Source Code
解壓縮與編譯程式:
[root@hcserver tmp] # tar zxvf wxPython-src-2.6.2.1.tar.gz
[root@hcserver tmp] # cd wxPython-src
[root@hcserver wxPython-src] # ./configure –prefix=/opt/wx
[root@hcserver wxPython-src] # make
[root@hcserver wxPython-src] # make -C contrib/src/animate
[root@hcserver wxPython-src] # make -C contrib/src/gizmos
[root@hcserver wxPython-src] #make -C contrib/src/stc
[root@hcserver wxPython-src] # make install
[root@hcserver wxPython-src] # make -C contrib/src/animate install
[root@hcserver wxPython-src] # make -C contrib/src/gizmos install
[root@hcserver wxPython-src] # make -C contrib/src/stc install
[root@hcserver wxPython-src] # cd wxPython
[root@hcserver wxPython] # python setup.py WX_CONFIG=”/opt/wx/bin/wx-config –no-rpaht” build_exe build install完工