1

I recently got a new MacBook Air and decided to do a fresh install without using the migration assistant.

I'm running into issues building software that requires "Make". I do have xcode installed, but for some reason it seems like "make" isnt installed. Here is an output.


petros$ sudo make
Password:
sudo: make: command not found

petros$ gcc -v
-bash: gcc: command not found

Any clues?

2
  • Did you install Xcode after doing your fresh installation? What is echo $PATH? Which version of Xcode are you using?
    – Daniel Beck
    Commented Jun 15, 2011 at 19:04
  • I did install Xcode after the fresh installation. I am using XCode - 4.0.2, here is my $PATH.... petros$ echo $PATH /usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    – Peter
    Commented Jun 15, 2011 at 19:06

2 Answers 2

2

Add /Developer/usr/bin to your path and try again.

6
  • Sorry for the even noobier question, but how do I do that?
    – Peter
    Commented Jun 15, 2011 at 20:01
  • 1
    @Peter Follow the instructions in the linked answer, under the OS X section.
    – Daniel Beck
    Commented Jun 15, 2011 at 20:16
  • I've read through the post, but I still don't get exactly what I should be doing. Can you show me an example?
    – Peter
    Commented Jun 16, 2011 at 1:18
  • @Peter sudo bash -c "echo /Developer/usr/bin > /etc/paths.d/developer_tools". Close the shell and reopen, then try again.
    – Daniel Beck
    Commented Jun 16, 2011 at 4:14
  • Didnt work... I guess Im gonna have to reinstall
    – Peter
    Commented Jun 17, 2011 at 2:28
1

Are you sure you installed Xcode and the other development tools as part of this fresh install? For example, are you sure you're not running Xcode from a different hard drive partition or something?

You should probably run the Mac OS X installer again and make sure to customize the install and select all the Xcode & developer tools.

2
  • I downloaded Xcode on its own from the dev site, used unix tools, and Im running it on the my root drive. Id rather not resort to reinstalling if possible... but thanks for the tip. Ill use that as a last resort.
    – Peter
    Commented Jun 15, 2011 at 19:07
  • @Peter Then just re-install Xcode. It won't delete any files you've added, but if you've modified any of the files that come with the Xcode developer tools, those modified files will probably get overwritten by clean copies.
    – Spiff
    Commented Jun 15, 2011 at 19:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .