Monday, January 5, 2015

Ruby 2.2.0 installation using rbenv failing

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...
-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc
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 date_core.so
make[2]: Leaving directory `/tmp/ruby-build.20150105132503.8460/ruby-2.2.0/ext/date'
linking shared-object nkf.so
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
I have resolved this issue by installing following dependencies
sudo apt-get install autoconf bison libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
References:
https://github.com/sstephenson/ruby-build/wiki

2 comments:

  1. MGM Resorts Casinos, Casinos & Entertainment in Las Vegas - DRM
    MGM Resorts Casinos, Casinos & Entertainment in Las Vegas. Discover an 구미 출장안마 exciting 여주 출장마사지 world of 부천 출장샵 luxury at 안성 출장샵 MGM Resorts Casinos & Entertainment. 계룡 출장마사지

    ReplyDelete
  2. Betway Casino Sports Betting Odds - Online Gaming
    Betway Mobile Casino where can i find air jordan 18 retro - Online Gaming. Betway Mobile Casino. Betway Mobile Casino. Betway how can i buy air jordan 18 retro Mobile Casino. betway Mobile Casino. Betway 체크 토토 넷마블 Mobile air jordan 18 retro men red shipping Casino. Betway Mobile air jordan 18 retro men

    ReplyDelete