Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h2>Update</h2> <p>It seems the <a href="http://www.askdavetaylor.com/how_to_install_apple_developer_tools_cc_gcc_mac_os_x.html" rel="nofollow">link</a> in the selected answer is a better solution, in that you don't have to add it to your path, it installs it in /usr/bin. I was originally thrown off by this as the answer mentions installation disks, which do not exist anymore (and are not needed here).</p> <hr> <h2>Original Post</h2> <p><code>make</code> went missing on my installation of OSX Lion, even with XCode installed.</p> <p>What I discovered was that, it was not in <code>/usr/bin</code>, but was in <code>/Developer/usr/bin</code>, which is not in $PATH environment variable by default. This is most likely a result of the XCode install.</p> <p>You have a few options:</p> <ul> <li>install it to one of the directories that is in your path</li> <li>make a symbolic link to point to the Developer bin directory (for example, from /usr/bin)</li> <li>modify your path to include the Developer directory (what I did) - see below</li> </ul> <hr> <h3>Add the developer bin to your path:</h3> <p>Somewhere in ~/.bashrc place the following code:</p> <pre><code>export PATH=$PATH:/Developer/usr/bin #Remove Duplicates: PATH=`perl -e '@A=split(/:/,$ENV{PATH});%H=map {$A[$#A-$_]=&gt;$#A-$_} (0..$#A);@A=join(":",sort{$H{$a} &lt;=&gt; $H{$b} }keys %H);print "@A"'` export PATH </code></pre> <ol> <li>Line 1: add /Developer/usr/bin to the end of the current path so it has low priority</li> <li>Line 3: because we're adjusting path, we want to remove duplicates (in case you source more than once). Duplicates aren't really problematic, but this should cause the same directory to not be searched more than once, which may make it faster.</li> <li>Line 4: Make it available to your environment</li> </ol> <p><em><strong>Note:</strong><br> If you're using a different shell (for instance csh), you'll have to adjust the script above and make the changes in that corresponding resource file (~/.cshrc).</em> </p> <p><em>To apply changes you'll have to <code>source ~/.bashrc</code> or reopen your terminal.</em></p> <hr>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload