我爲我的OS X Leopard(10.5.8)運行了MacPorts安裝程序(2.0.3),它完成了「成功」。不幸的是,端口命令不可用,所以我查看了MacPorts Guide,它指出安裝程序應該運行一個所謂的「postflight」腳本來設置必要的環境變量。我想手動運行該腳本飛行後(這是我從here下載),但執行失敗,出現以下的輸出:MacPorts安裝 - shell命令/ Postflight腳本
Detected the bash shell.
Your shell already has the right PATH environment variable for use with
MacPorts!
Your shell already has the right MANPATH environment variable for use with
MacPorts!
Your shell already has the right DISPLAY environment variable for use with
MacPorts!
Adding [default] tag to sources.conf if needed...
couldn't read file "/Contents/Resources/upgrade_sources_conf_default.tcl": no
such file or directory
Updating port image format...
couldn't read file "/Contents/Resources/images_to_archives.tcl": no such file or
directory
Synchronizing the MacPorts installation with the project's rsync server...
-bash: __PREFIX__/bin/port: No such file or directory
An attempt to synchronize your recent MacPorts installation with the project's
rsync server failed!
Please run 'sudo port -d selfupdate' manually to find out the cause of the
error.
You have succesfully installed the MacPorts system, launch a terminal and try it
out!
Read the port(1) manual page and http://guide.macports.org for help,
http://www.macports.org/contact.php if you need to get in touch with The
MacPorts Project.
任何想法?