Where is the GCC?

Posted:
in macOS edited January 2014
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

Comments

  • Reply 1 of 6
    hirohiro Posts: 2,663member
    You need to install the Developer Tools. They come with all Macs, but aren't factory installed on all the consumer models. They are included on the Software Restore DVD that should have come with the mini. It wouldn't be a bad idea to ensure the BSD package is fully installed as well. That is done through the System Software Install/Update portion of the DVD.
  • Reply 2 of 6
    m01etym01ety Posts: 278member
    Quote:

    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?
  • Reply 3 of 6
    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)
  • Reply 4 of 6
    m01etym01ety Posts: 278member
    Quote:

    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.
  • Reply 5 of 6
    The file is

    /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.
  • Reply 6 of 6
    Well I found the lines for the httpd.conf refering to PHP. Thanks for the tip. (Even though I just found the xtools and install gcc) I'm sure I'll use them sometime.





    Thanks again!
Sign In or Register to comment.