說需要 10.5.4 版或更新的 Mac OS X,那我的作業系統難道是 9.5.4 版?
![]() |
I classify files available for download on the internet as the following:
$ gpg --verify foo.tar.gz.sigto verify that the file foo.tar.gz matches with the signature file foo.tar.gz.sig. You can verify multiple files at once by
$ gpg --verify-files *.sigto verify the integrity of files. Read the manual ("man gpg") for more details.
gpg: Signature made Wed Dec 13 05:02:10 2006 CST using DSA key ID 64EA74ABfrom "gpg --verify", it means that the public key of the signer is not in your GPG keyring. Just load the public key of the signer to your keyring and off you go. The following is how I do it, your mileage may vary.
gpg: Can't check signature: public key not found
$ gpg --import foo.txt
$ gpg --recv-keys 0x64EA74ABNow you have the public key of the signer in your keyring, you can verify the files signed by him/her using "gpg --verify".
Python 3.0 在 2008/12/3 發佈,雖然 MacPorts 已經收錄,但 MacPython/Leopard 還在 2.5,要等到 Apple 收進 Mac OS X 裡恐怕還要等好一陣子,所以想嘗鮮又不熟 MacPorts 的人(是說我自己),就要自己裝了。
在 Mac OS X 上安裝 Python 3.0 沒什麼難的,只要依 ijliao 所說:「真男人用 tarball 手動安裝程式」就一切搞定。不過 Python 3.0 在語法、物件、函式庫上都有新東西,想要熟悉它,用互動環境邊打邊學是一定要的,那就絕對要裝讓你可以用上下左右鍵叫回程式敍述東改西改的 readline 函式庫,不然你會 copy & paste 到瘋掉。
$ cd ~/3party # 或任何你喜歡的目錄這就完成了,會把兩個函式庫 libreadline 和 libhistory 裝到 /usr/local/lib 目錄去,每個函式庫都有四個不同副檔名的檔: .a、.dylib、.5.dylib、.5.2.dylib,其中 .dylib 和 .5.dylib 是指到 .5.2.dylib 的 symlink。
$ tar zxvf ~/Desktop/readline-5.2.tar.gz
$ cd readline-5.2
$ cat ~/Desktop/readline52-0?? | patch -p 0
$ ./configure
$ make
$ sudo make install
$ tar zxvf ~/Desktop/Python-3.0.tgz最後這幾步是因為用 frameworkinstall 才會把 Python 3.0 裝進系統的 Python.framework 目錄,但會把預設 python 改成 3.0,為了不干擾系統其他 python scripts 的運作,要再把預設改回成 2.4。
$ cd Python-3.0
$ ./configure --enable-framework
$ make
$ sudo make frameworkinstall
$ cd /Library/Frameworks/Python.framework/Versions/
$ sudo rm Current
$ sudo ln -s 2.4 Current