C Compiler Cannot Create Executables Os X 10.8
comment:14 in reply to: ↑ 13 Changed 5 years ago by [email protected] Replying to [email protected]: The usual setup is for /opt/local and subfolders to be owned by root. I showed you that the C compiler is installed correctly on my machine. Use the macports-users mailing list for further help. awk checking whether make sets $(MAKE)... over here
brew install gcc That would get a gnu gcc-5 installed in the /usr/local/bin path and if that's used over Apple's /usr/bin/gcc you might not have the build error in the first How to harness Jupiter's gravitational energy? build 5658) (LLVM build 2336.1.00)configure:1772: $? = 0configure:1774: gcc -V &5llvm-gcc-4.2: argument to `-V' is missingconfigure:1777: $? = 1configure:1800: checking for C compiler default output file nameconfigure:1803: gcc conftest.c >&5ld: It links to the wrong compilers.
The new Xcode installer seems to come with no configurable options at all about what to include or not - perhaps the C libraries are no longer installed by default and The solution I used was the same as Mostafa, I had to export 2 variables: export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc CPP='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -E' This was one Mac OSX Mavericks share|improve this answer answered Dec 20 Simply create the symlink by doing this: # Create a symlink to default Xcode toolchain for OS X lion sudo ln -s \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain \ /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain # Create a symlink to yes checking for C compiler default output file name...
Select the newest version, close the dialog window, then call brew again. build 5658) (LLVM build 2336.11.00) So I created a symlink: cd /usr/bin sudo ln -s gcc gcc-4.2 And it worked! (the config.log file is located in the directory that make is Tried this 3 more times, same result. http://apple.stackexchange.com/questions/216573/cant-compile-source-code-on-mac yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking build system type...
Granting write permissions to the group did not help. Balazs Thank you for this information - this helped me! Does トイレ refer to the British "toilet" or the American "toilet"? Next, you could dig into the actual specific error log or you could try getting a gcc compiler instead of using Apple's llvm.
There's nothing to fix because it works fine for most people. imp source Instead I had: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain The C compiler ("cc") is located inside of that xctoolchain directory. Also if I recall correctly, the command gcc wouldn't even run without the command line tools installed. –Saran Nov 20 '15 at 21:55 | show 1 more comment 3 Answers 3 Singular cohomology and birational equivalence How to use namedpipe as temporary file?
share|improve this answer answered Nov 25 '13 at 23:42 Michael Helmke 9113 For this to work you need to download the apache apr library. this content Installed a seemingly unrelated gem? –Leonard Jul 24 '14 at 18:07 LOL Not sure. I used "xcode-select --install" and it worked perfectly. –Blairg23 Jul 9 '14 at 19:23 This seems to fix the issue on Yosemite; even though XCode 6 now comes with Terms Privacy Security Status Help You can't perform that action at this time.
Have you checked the permission of the temporary directory gcc outputs its file to? yes checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc checking whether the C compiler works... You need Xcode's Command Line Tool. http://cmptp.com/c-compiler/c-compiler-cannot-create-executables-on-mac.html comment:11 Changed 5 years ago by Veence (Vincent) Read “its”, not “it's”.
As a result, I think you should configure apache like this: httpd-2.4.18$ ./configure --enable-so ======== INSTALLING PHP In order to get mysql to work with php, I had to reinstall php How to harness Jupiter's gravitational energy? macos xcode open-source gcc share|improve this question edited Nov 20 '15 at 23:41 bmike♦ 117k38203445 asked Nov 20 '15 at 21:17 Knows Not Much 2891412 For current OS X
All rights reserved.
How would searching the PATH directories result in the error message listing a non-existent path? comment:16 Changed 5 years ago by Veence (Vincent) Well, normally, if I’m not mistaken, Macports DO resign root privilege when not needed. Why does Friedberg say that the role of the determinant is less central than in former times? Also, for those that use port over brew, sudo port install apple-gcc42 works as well (except on Yosemite or later, but there's an open issue on that).
what was I going to say again? It was created by configure, which was generated by GNU Autoconf 2.63. Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. check over here So first install the command line tools then see the answer below by @sterescott and that should take care of your problems.
One Very Odd Email Wait... The apache 2.4 docs for configure do not mention --enable-so. The real goal of configure is not to find a directory but to find the pesky cc file. That's as far as I'm going down that rabbit hole.
Why put a warning sticker over the warning on this product? I'm trying to install memcached on Lion OSX as shown here. share|improve this answer edited Mar 24 at 2:07 answered May 25 '15 at 17:48 coderSeb 114 add a comment| Your Answer draft saved draft discarded Sign up or log in Does every interesting photograph have a story to tell?
You signed in with another tab or window. Already have an account? comment:22 Changed 5 years ago by [email protected] Uninstalled and purged Xcode and Macports, restarted, reinstalled, restarted. I really don't know where your problem is.
Have you checked that? Have done a complete uninstall of MacPorts (according to the wiki uninstall page) and still no luck installing any ports. comment:18 Changed 5 years ago by [email protected] I can't believe it - it was working with a fresh install of Lion, but I just tried a port upgrade outdated, and I'm Oh a big note, the gcc install from the rvm command can take around 10-15 minutes without throwing out any text, it's not frozen :) Good luck share|improve this answer answered
Apple supplies this and the Apache config was using the Apple supplied one. Note that downloading Xcode from the App Store only places the Xcode installer into the Applications folder; you still need to run that installer in order to actually install Xcode. Anyway, this is just an alternate solution.