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

Lastpass vs 1Password

Lastpass and 1Password are two of the most successful and probably the best password managers. They both have some very unique features to offer, which means either of them is a good choice for password manager. Firstly, I think it’s... Continue →