Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    'make' command on Mac OS 10.6

    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
    'make' command on Mac OS 10.6
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,398
    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
    'make' command on Mac OS 10.6
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,082
    Specs:
    13in macbook - 10.10.4
    What he said....also if you do have a Developer folder, What is the output of "echo $PATH" in Terminal without the quotes.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  4. #4
    'make' command on Mac OS 10.6

    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
    'make' command on Mac OS 10.6
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,398
    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
    'make' command on Mac OS 10.6

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

  7. #7
    'make' command on Mac OS 10.6
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,398
    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
    'make' command on Mac OS 10.6

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

  9. #9
    'make' command on Mac OS 10.6

    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
    'make' command on Mac OS 10.6
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,082
    Specs:
    13in macbook - 10.10.4
    Open Activity Monitor and see if Itunes Helper is running. If so, select it and click the Quit Process button.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  11. #11
    'make' command on Mac OS 10.6

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

  12. #12
    'make' command on Mac OS 10.6

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

  13. #13
    'make' command on Mac OS 10.6

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

    Thanks @vansmith and @cradom!

  14. #14
    'make' command on Mac OS 10.6

    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
    'make' command on Mac OS 10.6
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,398
    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
  •