Last Updated: February 25, 2016
· 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 | rbenv install --patch 2.1.1