Guest User

Untitled

a guest
Apr 29th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. Readline error when trying to start rails console
  2. rvm install 1.9.3
  3. # Install of ruby-1.9.3-p0 - #complete
  4. cd ~/.rvm/src/ruby-1.9.3-p0/ext/readline/
  5. ~/.rvm/src/ruby-1.9.3-p0/ext/readline $ ../../ruby extconf.rb --with-editline-dir="/usr" --with-readline-dir="/usr"
  6. # any other way of doing this resulted in simply readline not being loaded when trying to start the console
  7. # I have libreadline6 and libreadline6-dev installed (and all the packages requested in `rvm requirements`
  8. make install
  9. # compiling readline.c
  10. # linking shared-object readline.so
  11. # /usr/bin/install -c -m 0755 readline.so /home/mbillard/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/x86_64-linux
  12. # installing default readline libraries
  13.  
  14. /home/mbillard/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/completion.rb:9:in `require': /home/mbillard/.rvm/usr/lib/libreadline.so.6: undefined symbol: UP - /home/mbillard/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/x86_64-linux/readline.so (LoadError)
  15. from /home/mbillard/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)>'
  16. from /home/mbillard/.rvm/gems/ruby-1.9.3-p0@taskman/gems/railties-3.2.1/lib/rails/commands/console.rb:3:in `require'
  17. from /home/mbillard/.rvm/gems/ruby-1.9.3-p0@taskman/gems/railties-3.2.1/lib/rails/commands/console.rb:3:in `<top (required)>'
  18. from /home/mbillard/.rvm/gems/ruby-1.9.3-p0@taskman/gems/railties-3.2.1/lib/rails/commands.rb:38:in `require'
  19. from /home/mbillard/.rvm/gems/ruby-1.9.3-p0@taskman/gems/railties-3.2.1/lib/rails/commands.rb:38:in `<top (required)>'
  20. from script/rails:6:in `require'
  21. from script/rails:6:in `<main>'
  22.  
  23. checking for tgetnum() in -lncurses... yes
  24. checking for readline/readline.h... yes
  25. checking for readline/history.h... yes
  26. checking for readline() in -lreadline... no
  27. checking for readline() in -ledit... no
  28. checking for editline/readline.h... no
  29.  
  30. rvm requirements
  31.  
  32. rm -rf $rvm_path/usr
  33. rvm reinstall 1.9.3
  34.  
  35. apt-get install libreadline-dev
  36.  
  37. rvm reinstall 1.9.3
Advertisement
Add Comment
Please, Sign In to add comment