Home > C Compiler > C Compiler Cannot Create Executables Mac Os X Lion

C Compiler Cannot Create Executables Mac Os X Lion


Try: export CC=clang share|improve this answer answered Nov 23 '15 at 21:30 bbaassssiiee 1584 add a comment| up vote 0 down vote In general, having Xcode installed isn't enough to get share|improve this answer answered Nov 20 '15 at 23:37 bmike♦ 117k38203445 I tried both your suggestions and this is what i got Last login: Sat Nov 21 22:58:10 on P.S. comment:27 in reply to: ↑ 26 Changed 4 years ago by [email protected] After installing Command Line Tool, I also had to do 'sudo xcode-select -switch /Applications/Xcode.app/' as described in ​this SO article. his comment is here

Add comments to a python script and make it a bilingual python/C++ “program” Why is this C++ code faster than my hand-written assembly for testing the Collatz conjecture? x86_64-apple-darwin10.4.0 configure: creating ./config.status config.status: creating Makefile config.status: creating gnulib-local/Makefile === configuring in gettext-runtime (/private/tmp/homebrew-gettext- configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local/Cellar/gettext/' '--disable-dependency-tracking' '--disable-debug' '--without-included-gettext' '--without-included-glib' '--without-included-libcroco' '--without-included-libxml' '--without-emacs' '--without-git' '--without-cvs' 'CC=/usr/bin/cc' current community blog chat Super User Meta Super User your communities Sign up or log in to customize your list. First, if you read the installation notes for RVM you'll see the following: For Lion, Rubies should be built using gcc rather than llvm-gcc. http://stackoverflow.com/questions/10357804/configure-error-c-compiler-cannot-create-executables

Osx Configure: Error: C Compiler Cannot Create Executables

You signed out in another tab or window. Oldest first Newest first Threaded Comments only Change History (26) comment:1 Changed 5 years ago by [email protected] Cc [email protected] added Cc Me! I don't know why or how. Here's what I get: $ sudo port install -v coreutils Password: ---> Computing dependencies for coreutils ---> Dependencies to be installed: autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5

But for now: What's your rbenv install --version What's your llvm-gcc --version What's your xcode-select -print-path Does this help: xcode-select -switch /Applications/Xcode.app/Contents/Developer 👍 1 tellijo commented Sep 1, 2013 rbenv This site is not affiliated with or endorsed by Apple Inc. Can one bake a cake with a cooked egg instead of a raw one? Configure: Error: C Compiler Cannot Create Executables Centos Wait...

comment:3 Changed 5 years ago by ryandesign (Ryan Schmidt) Cc [email protected] removed Description modified (diff) comment:4 follow-up: ↓ 7 Changed 5 years ago by ryandesign (Ryan Schmidt) "C compiler cannot create executables" Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Assigning a unique representation to equivalent circular queues What should I do when the boss "pulls rank" to get their problems solved over our customers' problems? All my googling has turned up nothing.

I showed you that the C compiler is installed correctly on my machine. Install A 32 Bit Compiler Toolchain more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed return false unless compiler == :clang if MacOS::Xcode.version && MacOS::Xcode.version < "8.0" return false end if MacOS::CLT.version && MacOS::CLT.version < "8.0" return false end true end end Adding a return false Not the answer you're looking for?

Configure: Error: C Compiler Cannot Create Executables Linux

My manager said I spend too much time on Stack Exchange. https://trac.macports.org/ticket/30628 I've done "brew update" to ensure I have the latest. Osx Configure: Error: C Compiler Cannot Create Executables awk checking whether make sets $(MAKE)... Checking Whether The C Compiler Works... No Mac 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.

I guess it's time to try homebrew. this content config/install-sh -c -d checking for gawk... share|improve this answer edited Nov 13 '15 at 12:57 answered Oct 23 '15 at 8:19 Florin Odagiu 767 add a comment| up vote 0 down vote In my case, I tried Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. Configure Error C Compiler Cannot Create Executables Ubuntu

config/install-sh -c -d checking for gawk... I changed the ownerships to root:wheel and tried again. It was created by XZ Utils configure 5.2.2, which was generated by GNU Autoconf 2.69. weblink more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science

not sure what has changed since last time except maybe a reboot. See `config.log' For More Details 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. mkoby commented Aug 29, 2011 Yea, I , read a few articles on that.

share|improve this answer edited Jul 25 at 1:26 answered Jul 29 '12 at 20:03 stereoscott 9,34042130 4 This worked for me, thanks!

The nth numerator Why did the best potions master have greasy hair? Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic If a reviewer makes significant contributions to improving a paper, may he/she suggest becoming a coauthor? Configure: Error: C Compiler Cannot Create Executables Python Is it possible to bleed brakes without using floor jack?

Sounds almost like the port command is losing root access event though it is executed with sudo authentication. We do not provide support for this pre-release version. This site is not affiliated with or endorsed by Apple Inc. check over here yes checking for style of include used by make...

One thought I did have though is that if Xcode is providing make and gcc, then I would expect perhaps those binaries would exist under /Developer. Some boilerplate things to try: xcode-select --install That should issue an error like "xcode-select: error: command line tools are already installed, use "Software Update" to install updates" when you have all I created the symlink and BAM!