什么时候安装 OS X在 Yosemite 上curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
,我得到以下信息:
****
[WARNING]
Detected OS X Yosemite 10.10. As this is quite new, there may be issues still. Your mileage may vary.
****
Get packager.tgz
Unpack packager.tgz
Please type in your password, as we want to install this into /usr/local
Start packager (may take some time)
File "/usr/local/packager/packager.py", line 38
print "ERROR: Option %s is not valid for command %s\n" % (opt[0], command)
这真的是 Bash 语法错误吗?对我来说,这看起来像是一个普通的 Bash 语句。我缺少什么?
更新
我尝试手动安装:
curl -s -o /tmp/packager.tgz http://php-osx.liip.ch/packager/packager.tgz
sudo tar -C /usr/local -xzf /tmp/packager.tgz
sudo /usr/local/packager/packager.py install 5.6-frontenddev
我的结果是......
答案1
这不是 bash 错误,而是 python 错误,因为该脚本中的相应行是:
echo "Start packager (may take some time)";
sudo /usr/local/packager/packager.py install $TYPE-frontenddev