"how to get readline support in irb using rvm on ubuntu 11.10" Code Answer

1

ok, so this might seem pretty obvious, well it always is when you know the answer:

i gave up using rvm, and switched to rbenv - which i'm very pleased i did!

sudo apt-get install libreadline-gplv2-dev
configure_opts="--with-readline-dir=/usr/include/readline --with-openssl-dir=/usr/local" rbenv-install 1.9.2-p290

this installed without error - and i'm still not convinced i need the gplv2 package as i've got libreadline6-dev installed. however that still didn't resolve my problem. it did remove rvm from the equation, and show me that despite my best efforts the irb shell was refusing to use readline.

the answer came from reading through this great guide:

rubytools.pdf

inside my ~/.irbrc file i found:

irb.conf[:use_readline] = false

a quick update to:

irb.conf[:use_readline] = true

and i'm cooking on gas!!

thanks for all the great answers and suggestion, i do appreciate your time.

By okw on May 12 2022

Answers related to “how to get readline support in irb using rvm on ubuntu 11.10”

Only authorized users can answer the Search term. Please sign in first, or register a free account.