2

Upgrading to Mavericks, I appear to have broken my Ruby on Rails development environment, which requires ruby 1.9.3 because of various gem dependencies. Within that app directory, I'm trying to reinstall ruby 1.9.3-p547:

rvm reinstall ruby-1.9.3-p547

I then get an error:

checking whether the C compiler works... no
configure: error: in `/Users/dsfaulkenberry/.rvm/src/ruby-1.9.3-p547':
configure: error: C compiler cannot create executables

Looking at the config.log file (~/.rvm/src/ruby-1.9.3-p547/config.log), I see:

dyld: Library not loaded: /usr/local/opt/cloog-ppl015/lib/libcloog.0.dylib
  Referenced from: /usr/local/Cellar/gcc46/4.6.4/gcc/libexec/gcc/x86_64-apple-darwin12.4.0/4.6.4/cc1
  Reason: image not found

I can see that other people have encountered issues vis-à-vis upgrading to Mavericks and having c compiler issues, but I can't find any referencing this specific library or what I should do (reinstall gcc? is that even a thing I can do?)

Many solutions mention accepting an XCode license agreement, which I have done, and the problem persists.

A Stack Overflow user suggested uninstalling gcc through homebrew which I have done to no avail, and another user has suggested reinstalling homebrew itself, which I will try.

1

Command Line tools (gcc goodies) do not come installed with Mavericks (insert bad word here). You need to download the latest and great xcode, go into the xcode prefs and install the command line tools (I believe it's under General). You should be right as rain.

Or! I noticed this trick: Installing Command Line Tools

  • The weird thing is, my problem went away on it's own. I don't know why or how. System reboot? Installed a seemingly unrelated gem? – Leonard Jul 24 '14 at 18:07
  • LOL Not sure. Glad it's solved! Go ahead and close the Q/A then =) – Jason McD Jul 24 '14 at 20:08

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.