error building phpsh from terminal
Open terminal and type which make to see that you have minimal compiler tools installed.

If not, download Xcode from the App store and have it install the command line tools.