Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1


    Member Since
    Oct 03, 2011
    Posts
    8
    Question 'make' command on Mac OS 10.6
    I'd say I'm relatively new to Mac and definitely new to programming on a Mac. I'm trying to compile a program to run on my Mac. I looked online and through the forums as much as I could. All the posts I found said that to get the 'make' command you have to install the XCode tools. I have already downloaded the tools from Apple and installed them using the 'XcodeTools.mpkg'. I've rebooted the computer and still I get the error:
    make: command not found
    I've tried using sudo but I still get the same error.

    Is there a way to check and see if they were installed properly?

    This is probably a real simple solution but being new I'm missing it.

    Any ideas?

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    You'll know whether or not Xcode was installed if there is a folder at / called "Developer" (in other words, the folder /Developer should exist).
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,561
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    What he said....also if you do have a Developer folder, What is the output of "echo $PATH" in Terminal without the quotes.
    Delusions are often functional. A motherís opinions about her childrenís beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

  4. #4


    Member Since
    Oct 03, 2011
    Posts
    8
    @vansmith
    Yes there is a "Developer" folder.

    @cradom
    echo $PATH gives me:
    /Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

  5. #5

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    If you execute the following, do you get anything?
    Code:
    which make
    /usr/bin/make should be printed back.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  6. #6


    Member Since
    Oct 03, 2011
    Posts
    8
    @vansmith
    I don't get anything. Just another command prompt.

  7. #7

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Do you have /usr/bin/gnumake? If so, it would seem that the symlink wasn't created which can made by executing the following:
    Code:
    sudo ln -s /usr/bin/gnumake /usr/bin/make
    If you don't have gnumake, the appropriate tools haven't been properly installed. If that's the case, reinstall Xcode.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  8. #8


    Member Since
    Oct 03, 2011
    Posts
    8
    @vansmith
    No ... No gnumake. Trying to reinstall XCode ...

  9. #9


    Member Since
    Oct 03, 2011
    Posts
    8
    When trying to reinstall XCode I get a pop up that says "In order to continue installation, please close the following application:"
    "iTunes"

    The problem is the installer is the only thing running, unless there are some background processes running that I don't know how to see or kill.

  10. #10

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,561
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    Open Activity Monitor and see if Itunes Helper is running. If so, select it and click the Quit Process button.
    Delusions are often functional. A motherís opinions about her childrenís beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

  11. #11


    Member Since
    Oct 03, 2011
    Posts
    8
    Got it ... "iTunes Helper" was running.

  12. #12


    Member Since
    Oct 03, 2011
    Posts
    8
    @cradom
    That was it! Installation resuming.

  13. #13


    Member Since
    Oct 03, 2011
    Posts
    8
    Got it! I now have a 'make' command!

    Thanks @vansmith and @cradom!

  14. #14


    Member Since
    Mar 01, 2012
    Posts
    1
    For all those that re-installing XCode does not work for, as it didn't for me, you may need more information...

    In order to properly work with XCode you need to be registered as an apple developer.
    https://developer.apple.com/membercenter

    Then, even if you do not get the make command to work you may need to download and install Command Line Tools for Xcode, https://developer.apple.com/downloads

    After doing this I was able to get the make command to be recognized.

  15. #15

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    You don't have to be a registered developer to work with Xcode. You only need to be registered if you want to submit your app to the App Store.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How Can I Make A Terminal Command Permanent?
    By Todd Smith 265 in forum OS X - Operating System
    Replies: 10
    Last Post: 06-17-2012, 05:20 PM
  2. bash: make: command not found
    By yousemeti in forum OS X - Development and Darwin
    Replies: 9
    Last Post: 02-29-2012, 04:28 PM
  3. Make Terminal command
    By richbits in forum OS X - Development and Darwin
    Replies: 8
    Last Post: 01-12-2012, 03:35 AM
  4. Installign GIMP / the 'make' command
    By joxford in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 02-25-2004, 09:11 PM
  5. make command
    By oo_mac_oo in forum OS X - Development and Darwin
    Replies: 4
    Last Post: 09-06-2003, 11:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •