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...
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!


Now read this

Podcasts I am currently subscribed to

I really like podcasts. I listen to lots of them and at one point I was listening to between 60-80 hours of podcasts a week. After a chat with my meditation teach Li-Yea I decided that I was spending too much time listening to podcasts... Continue →