Where is the GCC?
I just got my Mac Mini and I'm trying to do my web development on it like I do with my Windows machines. I downloaded and install myself without a problem. However I went to download PHP and it requires me to compile the source code. Once I do the ./configure statement it tells me I can't find gcc.
For some reason I had the impression that OSX came with the whole Gnu suite installed? Am I missing something, or am I post to download the compiler from somewhere?
Thanks in advance,
-Stuart
For some reason I had the impression that OSX came with the whole Gnu suite installed? Am I missing something, or am I post to download the compiler from somewhere?
Thanks in advance,
-Stuart
Comments
Originally posted by surbahns
I just got my Mac Mini and I'm trying to do my web development on it like I do with my Windows machines. I downloaded and install myself without a problem. However I went to download PHP and it requires me to compile the source code. Once I do the ./configure statement it tells me I can't find gcc.
For some reason I had the impression that OSX came with the whole Gnu suite installed? Am I missing something, or am I post to download the compiler from somewhere?
Thanks in advance,
-Stuart
Isn't PHP default on OS X?
Originally posted by Jwink3101
There is a simple way to get a the built-in PHP to work but i do not remember it. Google "PHP OS X" and see what you get. It baisically involves using terminal and emacs to uncomment two lines in some config file then restarting apache (Web sharing)
Yes, it's very simple, IIRC. Search for config.httpd on the system, open with TextEdit, find the PHP section, remove the comments, save, and then stop and start Web Sharing from sysprefs.
/etc/httpd/httpd.conf
but it's invisible from the default finder setup. Use the Go->Go to Folder... menu command to access it from the finder, or just use the terminal.
Thanks again!