Issue Installing Ruby 2.1.5 with rbenv

Yesterday I had an issue installing Ruby 2.1.5 with rbenv.

The error I had was:

➜  rbenv install 2.1.5
Downloading ruby-2.1.5.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/4305cc6ceb094df55210d83548dcbeb5117d74eea25196a9b14fa268d354b100
Installing ruby-2.1.5...

BUILD FAILED (OS X 10.10.1 using ruby-build 20141128)

Inspect or clean up the working tree at /var/folders/8r/x4z035050698qlhzyttbmhh00000gn/T/ruby-build.20141207083055.62100
Results logged to /var/folders/8r/x4z035050698qlhzyttbmhh00000gn/T/ruby-build.20141207083055.62100.log

Last 10 log lines:
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for cd using physical directory... cd -P
checking whether CFLAGS is valid... no
configure: error: something wrong with CFLAGS=" -O3 -Wno-error=shorten-64-to-32  "
make: *** No targets specified and no makefile found.  Stop.

Luckily after some googling I found a problem that looked somewhat similar. The original post is here.

I followed the instructions and ran:

CC=/usr/bin/gcc rbenv install 2.1.5

And sure enough the install worked!

 
9
Kudos
 
9
Kudos

Now read this

The best way to watch movies (illegally!) - Popcorn Time Review

In a time when illegal downloading of movies is becoming more and more common it is only expected that applications will appear to fill the needs of those users who want to watch pirated movies. But until now there has not been any... Continue →