我为我的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.
任何想法?