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...
Quora Visit the source
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:
- How can I auto run ccleaner on Mac OS X?Best solution by forum.piriform.com
- How can I mount a network drive in Mac OS X in Java?Best solution by Stack Overflow
- Is it possible to compile Swift for OS X 10.5?Best solution by stackoverflow.com
- How to create a virtual file on mac OS X?Best solution by Super User
- What is the most functional Mac OS X all-in-one printer?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.