Last Updated: February 25, 2016
·
767
· orendon

readline error during ruby 2.1.1 rbenv install

Doing a fresh install for ruby 2.x raise an readline.c: In function ‘Init_readline’error

The errors raises if using readline 6.3.x, pretty common on Ubuntu 14.04 or Mavericks more details here

As a workaround you can downgrade to readline 6.2.x or install ruby using readline patch

curl -fsSL https://gist.github.com/mislav/a18b9d7f0dc5b9efc162.txt | rbenv install --patch 2.1.1