Skip to content

Loading…

Issue installing ruby on Mavericks #481

Closed
kapso opened this Issue · 4 comments

2 participants

@kapso

I am trying to install ruby v2 on Mavericks and I am getting an error.

Here are the rbenv/ruby-build versions. I have already installed Command Line Tools for Mavericks - http://cl.ly/image/3J3Q0t2c3e1E

Anything I am missing?

$ rbenv -v
rbenv 0.4.0
$ ruby-build -v
ruby-build 20131030

Error details:

$ rbenv install 2.0.0-p247
Downloading openssl-1.0.1e.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/66bf6f10f060d561929de96f9dfe5b8c
Installing openssl-1.0.1e...
Installed openssl-1.0.1e to /Users/kapilisrani/.rbenv/versions/2.0.0-p247

Downloading ruby-2.0.0-p247.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/c351450a0bed670e0f5ca07da3458a5b
Installing ruby-2.0.0-p247...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/6n/rgmn9d493sj2t28k0wl859800000gn/T/ruby-build.20131105115200.18489
Results logged to /var/folders/6n/rgmn9d493sj2t28k0wl859800000gn/T/ruby-build.20131105115200.18489.log

Last 10 log lines:
configure: WARNING: unrecognized options: --with-openssl-dir
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking for gcc-4.2... gcc-4.2
checking for gcc... (cached) gcc-4.2
checking whether the C compiler works... no
configure: error: in `/var/folders/6n/rgmn9d493sj2t28k0wl859800000gn/T/ruby-build.20131105115200.18489/ruby-2.0.0-p247':
configure: error: C compiler cannot create executables
See `config.log' for more details

BUILD FAILED

Inspect or clean up the working tree at /var/folders/6n/rgmn9d493sj2t28k0wl859800000gn/T/ruby-build.20131105115200.18489
Results logged to /var/folders/6n/rgmn9d493sj2t28k0wl859800000gn/T/ruby-build.20131105115200.18489.log

Last 10 log lines:
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking for gcc-4.2... gcc-4.2
checking for gcc... (cached) gcc-4.2
checking whether the C compiler works... no
configure: error: in `/var/folders/6n/rgmn9d493sj2t28k0wl859800000gn/T/ruby-build.20131105115200.18489/ruby-2.0.0-p247':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
@mislav

This should be reported on ruby-build's issue tracker, not here.

But I've seen our users get this error a lot. Usually it mysteriously goes away, and nobody could share with us the specifics of what they did to fix it. Can you restart your computer and try again?

Please search for similar issues ("C compiler cannot create executables") on ruby-build. Add your comments there, or open a new issue. Closing this one. Thanks!

@mislav mislav closed this
@kapso kapso referenced this issue in rbenv/ruby-build
Closed

Error installing ruby 2 on Mavericks #446

@kapso

Yea I have tried restarting my computer few times, no luck.

@kapso

It works now, this is what I did to fix it sudo ln -sf /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.