RVM + 1.9.3pre == broken readline

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.

···

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

$ 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

$ ruby -v -e "p require 'readline'"
ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-darwin10.8.0]
true

And it seems to be working in irb. Can you tell us more about your host?

···

On Thu, Sep 15, 2011 at 3:03 PM, Chad Perrin <code@apotheon.net> wrote:

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.

Chad Perrin wrote in post #1022208:

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:

Maybe install pure ruby readline?

···

--
Posted via http://www.ruby-forum.com/\.

> 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

Linux hemlock 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64
GNU/Linux

$ 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

$ ruby -v -e "p require 'readline'"
ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-darwin10.8.0]
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 (wayneeseguin@gmail.com)
    [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:in `require'
            from -e:1:in `<main>'

Elided output is here (plus the require 'readline' output):

    http://pastebin.com/F1VCWEaZ

···

On Fri, Sep 16, 2011 at 10:55:03AM +0900, brabuhr@gmail.com wrote:

On Thu, Sep 15, 2011 at 3:03 PM, Chad Perrin <code@apotheon.net> wrote:

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

Please elaborate.

···

On Fri, Sep 23, 2011 at 02:12:57AM +0900, Roger Pack wrote:

Chad Perrin wrote in post #1022208:
> 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:

Maybe install pure ruby readline?

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

> 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

Linux hemlock 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64
GNU/Linux

$ 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:in `require'
from -e:1:in `<main>'

Thanks; trying again on another host:

[same rvm process]

$ uname -a
Linux linux116.ctc.com 2.6.32-131.6.1.el6.x86_64 #1 SMP Tue Jul 12
17:14:50 CDT 2011 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/redhat-release
Scientific Linux release 6.1 (Carbon)

$ ruby -v -e "p require 'readline'"
ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-linux]
true

I still don't know what's going on then, sorry.

···

On Fri, Sep 16, 2011 at 1:42 PM, Chad Perrin <code@apotheon.net> wrote:

On Fri, Sep 16, 2011 at 10:55:03AM +0900, brabuhr@gmail.com wrote:

On Thu, Sep 15, 2011 at 3:03 PM, Chad Perrin <code@apotheon.net> wrote:

Elided output is here (plus the require 'readline' output):

http://pastebin.com/F1VCWEaZ

···

On Thu, Sep 22, 2011 at 2:21 PM, Chad Perrin <code@apotheon.net> wrote:

On Fri, Sep 23, 2011 at 02:12:57AM +0900, Roger Pack wrote:

Chad Perrin wrote in post #1022208:
> 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:

Maybe install pure ruby readline?

Please elaborate.

Thanks. I had no idea that existed. "gem install rb-readline" solved
the problem.

I'm still a bit mystified by the fact the standard readline wouldn't
work, though.

···

On Fri, Sep 23, 2011 at 05:00:58AM +0900, brabuhr@gmail.com wrote:

On Thu, Sep 22, 2011 at 2:21 PM, Chad Perrin <code@apotheon.net> wrote:
> On Fri, Sep 23, 2011 at 02:12:57AM +0900, Roger Pack wrote:
>>
>> Maybe install pure ruby readline?
>
> Please elaborate.

GitHub - ConnorAtherton/rb-readline: Pure-Ruby Readline Implementation

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]