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

How to clean up your menu bar items

Bartender cleans up your mac’s menu bar by allowing you to hide and show menu bar items easily and quickly. Most macs I have seen have an enormous amount of menubar items for different applications running at any one time. This adds a... Continue →