rbenv build failed on Ubuntu 14.04
UPDATE: Use Ruby 2.1.2, it fixes this issue.
14.04 is probably shipping with readline 6.3, which uses rl_hook_func_t
instead of Function
.
This bug has already been reported and fixed in Ruby (https://bugs.ruby-lang.org/issues/9578), but not released yet.
Until Ruby 2.1.2 comes out (which I assume will contain this fix), you can use a patch to properly support the new rl_hook_func_t
method. Use this to install Ruby 2.1.1:
curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.1
(Source: http://gorails.com/setup/ubuntu/14.04)
rbenv ruby install fail ubuntu
install these dependencies first and then retry worked for me on 14.04 for ruby 2.2.0 with rbenv
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
Related Topics
Ruby: Select a Hash from Inside an Array
How to Define_Method in Rails Models
Rails 5.2 Active Storage Add Custom Attributes
How to Access a Ruby Module Method
Get Today's Date in Jekyll with Liquid Markup
Don't Create View Folder on Rails Generate Controller
Cannot Install Aptana Plugin on Eclipse 4.2
Rails Development Server Is Slow and Takes a Long Time to Load a Simple Page
How to Filter an Array of Hashes to Get Only the Keys in Another Array
Ubuntu 12 - How to Install Ruby and Rails Correctly
Ruby on Rails, Could Not Find a Valid Gem 'Rails'
Rails Console Running Incredibly Slowly When Editing Text
Capistrano & Bash: Ignore Command Exit Status
Vcrproxy: Record Phantomjs Ajax Calls with Vcr Inside Capybara
Error Installing Any Ruby Version with Rvm on Osx
Rails How to Switch Between Dev and Production Mode