Error No Acceptable C Compiler Found In $path Os X
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Xcode - configure: error: no acceptable C compiler found in $PATH up vote 62 down vote favorite 13 rebuilding a mac from scratch. Installed xcode and rvm then trying to install rubies but they are all giving me: Error running ' ./configure --prefix=/Users/durrantm/.rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/durrantm/.rvm/usr ', please read /Users/durrantm/.rvm/log/ruby-1.9.3-p125/configure.log There has been an error while running configure. Halting the installation. Michaels-MacBook-Air:~ durrantm$ The log has: checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/Users/durrantm/.rvm/src/ruby-1.9.2-p290': configure: error: no acceptable C compiler found in $PATH Do I need the gcc C compliler? How do I install it ? ruby xcode gcc compiler-errors rvm share|improve this question edited Mar 30 '13 at 16:06 asked Feb 17 '12 at 5:54 Michael Durrant 46.5k46188298 1 github.com/kennethreitz/osx-gcc-installer –0xAX Feb 17 '12 at 6:07 1 Yes. It seems you need some kind of c compiler, and you have none. –dbrank0 Feb 17 '12 at 6:53 XCode includes GCC; perhaps your $PATH is hosed? –tripleee Feb 17 '12 at 7:24 add a comment| 4 Answers 4 active oldest votes up vote 175 down vote accepted The critical step is actually installing the Xcode command line tools after the download completes and Xcode is installed After downloading and installing Xcode from the app store, you need to actually install the command line tools it provides. To do this open Xcode, go to preferences then downloads. There is an "Install" link to add the command line tools. Once this has been completed, make sure to re-open your terminal window. share|improve this an
enter a title. You can not post a blank message. Please type your message and try again. Charly Avital Level 2 (256 points) Q: "no acceptable C compiler found in $PATH" After upgrading to OS 10.8, and to Xcode 4.4, when I try to compile a source code, the ./configure command in Terminal ends with:"no acceptable C compiler found in $PATH".I have to *assume* that Xcode includes C compilers, but I can't figure out why there's no "acceptable C compiler in $PATH. Maybe that's a bug or a new function of which I am not aware.How do I get a C compiler (gcc?) in the $PATH?Thanks in advance. MacBook, OS X Mountain Lion, MacBook5,1 Aluminum Late 2008 Posted on Aug 1, 2012 6:51 AM I http://stackoverflow.com/questions/9323612/xcode-configure-error-no-acceptable-c-compiler-found-in-path have this question too by Charly Avital,Solvedanswer Charly Avital Level 2 (256 points) A: I am replying to myself :-) because I couldn't edit my own post.I copied gcc from /Developper to /usr/bin, where it wasn't present (I assume it was not installed by Xcode).When I try (again) ./configure, I get in Terminal:checking for gcc... gccchecking whether the C compiler works... noconfigure: error: in `/Users/admin/gnupg-2.0.19':configure: error: C compiler cannot create executablesSee `config.log' for more detailsSo gcc is found, https://discussions.apple.com/thread/4165616?tstart=0 but it cannot create executables. Does all this mean that copying gcc to /usr/bin is not enough, and that I have to include gdd in $PATH?All help will be greatly appreciated. Posted on Aug 1, 2012 7:11 AM See the answer in context Close Q: "no acceptable C compiler found in $PATH" All replies Helpful answers by Charly Avital,Solvedanswer Charly Avital Aug 1, 2012 7:11 AM in response to Charly Avital Level 2 (256 points) Aug 1, 2012 7:11 AM in response to Charly Avital I am replying to myself :-) because I couldn't edit my own post.I copied gcc from /Developper to /usr/bin, where it wasn't present (I assume it was not installed by Xcode).When I try (again) ./configure, I get in Terminal:checking for gcc... gccchecking whether the C compiler works... noconfigure: error: in `/Users/admin/gnupg-2.0.19':configure: error: C compiler cannot create executablesSee `config.log' for more detailsSo gcc is found, but it cannot create executables. Does all this mean that copying gcc to /usr/bin is not enough, and that I have to include gdd in $PATH?All help will be greatly appreciated. Helpful (0) Reply options Link to this post by etresoft, etresoft Aug 1, 2012 7:26 AM in response to Charly Avital Level 7 (29,325 points) Mac OS X Aug 1, 2012 7:26 AM in response to Charly Avital Delete that copy of gcc you copied. While you're there, uninstall that old copy of
App EngineApache AntApache MavenjQueryJava MongoDBQuartz SchedulerLog4jContact Us How to install gcc compiler on Mac OS XBy mkyong | April 26, 2012 | Updated : August 29, 2012 | https://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/ Viewed : 186,198 times +1,084 pv/wOften times, you need c or gcc compiler to compile open source projects in Mac OS X. The problem is Mac OS X doesn't install the gcc compiler by default.If you try to install or compile some projects that required c/gcc compiler, following errors message will be error no logged : configure: error: C compiler cannot create executables configure: error: no acceptable C compiler found in $PATH In terminal, type "gcc", you will get message "command not found". $ gcc -bash: gcc: command not found SolutionTo install gcc compiler on Mac OS X, you need to download and install "Command Line error no acceptable Tools for Xcode", which is available in Apple's developer page. See following steps : 1. Register Apple Developer AccountAccess Apple's developer page, to process on the download, you need to register an Apple account, it's free, but need to spend few minutes to fill in the survey. 2. Command Line Tools for XcodeIn Apple developer page, "Developer Tools" category, find "Command Line Tools for Xcode", choose your version and click on the xx.dmg file (file size is 100mb ++) to start the download. 3. InstallationAfter .dmg file is downloaded, a small dialog will be prompted and show you this file - "Command Line Tools.mpkg", just double click on it, follow the wizard guide to complete the installation. 4. VerificationAfter installation is completed, run "gcc -v" in terminal again. If everything fine, following output will be displayed. mkyong$ gcc -v Using built-in specs. Target: i686-apple-darwin11 Configured with: {ignore long text…} Thread model: posix gcc vers