php_syntax_checker icon indicating copy to clipboard operation
php_syntax_checker copied to clipboard

/bin/sh: php command not found error

Open sheriffderek opened this issue 3 years ago • 2 comments

Recently, I had some students install this package and many of them are getting this error on save.

/bin/sh: php command not found

Since this package hasn't been updated (because it likely doesn't have any reason to be) in three years, I can only guess that it has something to do with a change in Sublime / or more likely - a change with the most recent MacOS Mojave and/or MAMP.

So, it's not able to find PHP. That's likely because the new OS doesn't ship with PHP. So, it looks like if people run into this, they'll need to install PHP. https://formulae.brew.sh/formula/php

But - here's this little story for when many people inevitably end up here. : )

sheriffderek avatar Dec 16 '21 19:12 sheriffderek

Same happens to me: macOS Monterey 12.1

aserra avatar Jan 10 '22 15:01 aserra

New to Monterey (from Mojave). Installing PHP via Brew fixed it up. Didn't know it wasn't on there.

Thanks @sheriffderek

ozws avatar Sep 08 '22 04:09 ozws