How to remove path of my command line?

What is the path for gcc in Mac OS X Lion?

  • It was in my path for Snow Leopard and now isn't.  I want to compile at the command line and gcc no longer is in my path. Xcode 4.1 build 4B110 is installed  and which gcc returns Command not found.

  • Answer:

    You need to install X...

Was this solution helpful to you?

Other answers

Launch your Xcode 4.1 Go to preferences > Downloads Click on the "install" button near the "Command line tools"

Guy Tavor

Edited for new Xcode 4.3: Now that apple has stopped installing the command line tools, you have to do it yourself. You can either install them in Xcode preferences under downloads, or you can download just the command line tools from http://developer.apple.com. It's worth noting that I think Apple has been symlinking the llvm-gcc compiler to /usr/bin/gcc lately which can mess with some programs.

Bradley Ringel

Before upgrading Xcode, you can find gcc (and g++) in /Developer/usr/bin Now I just have to figure out where the standard library headers are stored...

Josh Siegle

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.