Ruby 2.2.0 installation using rbenv failing


Posted on 2015-01-06 04:47:58

On my ubuntu 14.04 development machine, ruby 2.2.0 installation using rbenv was failing with following error

 ➜ ~ rbenv install 2.2.0 Downloading ruby-2.2.0.tar.gz... ->

 Installing ruby-2.2.0... BUILD FAILED (Ubuntu 14.04 using ruby-build 20141225-7-g4aeeac2)

 Inspect or clean up the working tree at /tmp/ruby-build.20150105132503.8460 Results logged to /tmp/ruby-build.20150105132503.8460.log Last 10 log lines: make[1]: *** [ext/fiddle/all] Error 2 make[1]: *** Waiting for unfinished jobs.... installing default nkf libraries installing default date_core libraries linking shared-object

 make[2]: Leaving directory `/tmp/ruby-build.20150105132503.8460/ruby-2.2.0/ext/date' linking shared-object 

make[2]: Leaving directory `/tmp/ruby-build.20150105132503.8460/ruby-2.2.0/ext/nkf' 

make[1]: Leaving directory `/tmp/ruby-build.20150105132503.8460/ruby-2.2.0' make: *** [build-ext] Error 2