Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling PHP on Mac

Tags:

php

macos

I'm trying to compile PHP on Mac but getting all these errors at the final step.

clang: error: no such file or directory: 'ext/date/php_date.o'
clang: error: no such file or directory: 'ext/date/lib/astro.o'
clang: error: no such file or directory: 'ext/date/lib/dow.o'
...

I'm seeing *.lo files in those directories where it's expecting *.o.

like image 821
Berry Blue Avatar asked Nov 10 '22 14:11

Berry Blue


1 Answers

The First Thing you should do is install HomeBrew from http://brew.sh/. Then install php54 from Home Brew. This will instantly set it up for you.

like image 200
SimplePi Avatar answered Nov 14 '22 22:11

SimplePi