I have not been able to get readline working with the 1.9.3 preview
using
RVM. The results of my most latest attempt follow:
Readline was unable to be required, if you need completion or
history
install readline then reinstall the ruby.
You may follow ‘rvm notes’ for dependencies and/or read the docs
page https://rvm.beginrescueend.com/packages/readline/ . Be sure you ‘rvm
remove X ; rvm install X’ to re-compile your ruby with readline
support after obtaining the readline libraries.
I did, by the way, try following the instructions at the referenced URI
(replacing “1.9.2” with “ruby-1.9.3-preview1”). No dice. Any
suggestions on how to resolve this problem would be appreciated.
I have not been able to get readline working with the 1.9.3 preview using
RVM.
I did, by the way, try following the instructions at the referenced URI
(replacing “1.9.2” with “ruby-1.9.3-preview1”). No dice. Any
suggestions on how to resolve this problem would be appreciated.
$ uname -a
Darwin Mac-mini.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7
16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
$ rvm get latest
$ rvm reload
$ rvm pkg install readline
(skipping remove since I haven’t installed 1.9.3 at all yet)
$ rvm install 1.9.3-preview1 --with-readline-dir=$rvm_path/usr
$ rvm use 1.9.3-preview1
16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
Linux hemlock 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64
GNU/Linux
true
And it seems to be working in irb. Can you tell us more about your host?
Just for completeness’ sake, (and because I hope it works this time, for
some reason – or maybe because I’m a glutton for punishment) I’ll do it
all again:
$ rvm get latest
Original installed RVM version:
rvm 1.8.3 by Wayne E. Seguin ([email protected])
[https://rvm.beginrescueend.com/]
You already have the latest version!
$ rvm reload
RVM reloaded!
$ rvm pkg remove readline
(elided output)
$ rvm pkg install readline
(elided output)
$ rvm remove ruby-1.9.3-preview1
(elided output)
$ rvm install 1.9.3-preview1 --with-readline-dir=$rvm_path/usr
(elided output)
$ rvm use 1.9.3-preview1
Using /home/user/.rvm/gems/ruby-1.9.3-preview1
$ ruby -v -e "p require 'readline'"
ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-linux]
/home/user/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require': cannot load such file -- readline (LoadError) from /home/user/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’
from -e:1:in `’
Elided output is here (plus the require ‘readline’ output):