0

When installing OS X on Yosemite with curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6, I get the following:

****
[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)

Is this truly a Bash syntax error? It looks like a normal Bash statement to me. What am I missing?

Update

I tried installing by hand with:

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

and my results were ....

  • What's the output of curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6, which is the method posted on the site you linked? – eyoung100 Dec 9 '14 at 21:38
  • Sorry @eyoung100 -- that is exactly the output – Amelio Vazquez-Reina Dec 9 '14 at 21:42
  • In that case, try installing by hand. I'll edit your post with the steps, or see Install by Hand. Please fill in the update section, and we will go from there. – eyoung100 Dec 9 '14 at 21:47
  • @eyoung100 where did you get the information in the edit from? – muru Dec 9 '14 at 21:57
  • 1
    By the way, OS X comes with PHP installed. – DisplayName Dec 9 '14 at 23:52
2

That is not a bash error, but a python error, since the corresponding line in that script is:

echo "Start packager (may take some time)";
sudo /usr/local/packager/packager.py install $TYPE-frontenddev

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.