Rails console is not working

I got this error in my terminal when i type rails c:

[email protected]:~/abcde$ rails c
/home/anurag/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/completion.rb:9:in
`require’: /home/anurag/.rvm/usr/lib/libreadline.so.6: undefined symbol:
UP

/home/anurag/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/i686-linux/readline.so
(LoadError)
from
/home/anurag/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/irb/completion.rb:9:in
<top (required)>' from /home/anurag/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/lib/rails/commands/console.rb:3:inrequire’
from
/home/anurag/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/lib/rails/commands/console.rb:3:in
<top (required)>' from /home/anurag/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/lib/rails/commands.rb:38:inrequire’
from
/home/anurag/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.1/lib/rails/commands.rb:38:in
<top (required)>' from script/rails:6:inrequire’
from script/rails:6:in `’

I also use rvm pkg install readline but it did not help me

I see you use linux, most distributions provide a valid build and
headers for readline, please use quick fix instruction from top of
this page: https://rvm.beginrescueend.com/packages/readline/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs