Featured post
ruby - Problems with the rails console, RVM and readline -
i've installed rvm way of making sure local development version of ruby same server's particular app work on (ruby 1.8.7). i've done this, , installed ruby 1.8.7 ok. however, when try start rails console error:
readline unable required, if need completion or history install readline reinstall ruby. may follow 'rvm notes' dependencies and/or read docs page http://rvm.beginrescueend.com/packages/readline/ . sure 'rvm remove x ; rvm install x' re-compile ruby readline support after obtaining readline libraries. couldn't load wirble: no such file load -- wirble
i've read notes on page error refers (http://rvm.beginrescueend.com/packages/readline/), , followed instructions, involve installing readline, uninstalling ruby 1.8.7, installing ruby 1.8.7 again readline support. (actually page uses ruby 1.9.2 example i'm assuming should work 1.8.7 well. perhaps that's not case).
but, still same error. has else been through , figured out?
grateful advice - max
edit - i'm using ubuntu 9.10 btw in case that's relevant.
edit - here's output rvm info
asked below:
$ rvm info system: system: uname: "linux max-laptop 2.6.31-22-generic #68-ubuntu smp tue oct 26 16:38:35 utc 2010 i686 gnu/linux" bash: "/bin/bash => gnu bash, version 4.0.33(1)-release (i486-pc-linux-gnu)" zsh: " => not installed" rvm: version: "rvm 1.1.6 wayne e. seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]" homes: gem: "not set" ruby: "not set" binaries: ruby: "/usr/bin/ruby" irb: "/usr/bin/irb" gem: "/usr/bin/gem" rake: "/usr/bin/rake" environment: path: "/home/max/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin:/home/max/software/svnmerge:/home/max/.gem/ruby/1.8/bin:/home/max/work/e_learning_resource/trunk/public/assets/dvd_files/bin:/opt/firefox:/home/max/.rvm/bin:/home/max/.rvm/bin" gem_home: "" gem_path: "" my_ruby_home: "" irbrc: "" rubyopt: "" gemset: ""
i had similar problem 1.9.2 on ubuntu 10.04, symptoms identical. in order work:
rvm pkg install readline
or prior rvm version 1.6.32, need following command
rvm package install readline
then:
apt-get install ncurses-dev
and taking instructions @ http://rvm.beginrescueend.com/packages/readline/
cd $home/.rvm/src/ruby-1.9.2-p0/ext/readline ruby extconf.rb -- --with-readline-dir="$home/.rvm/usr" make install
i had done system rvm install on server, needed this:
cd $home/.rvm/src/ruby-1.9.2-p0/ext/readline ruby extconf.rb -- --with-readline-dir="/usr/local/rvm/usr" make install
after able have full access console.
- Get link
- X
- Other Apps
Comments
Post a Comment