Forum: Ruby Ruby 1.8.4 - irb -> require "irb/completion" fails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
59c35b8eb11d6532b8b34c750cd79d2f?d=identicon&s=25 Frederic CHALONS (Guest)
on 2006-04-12 16:22
(Received via mailing list)
Hi,

I am running ruby 1.8.4 under Solaris10/Sparc using the archive from
http://www.sunfreeware.com.
Using irb, I try to load the very convenient "irb/completion" library
but it
fails.

-bash-3.00$ ruby --version
ruby 1.8.4 (2005-12-24) [sparc-solaris2.10]
-bash-3.00$ irb --version
irb 0.9.5(05/04/13)
-bash-3.00$ irb
irb(main):001:0> require "irb/completion"
NameError: uninitialized constant Readline
        from /usr/local/lib/ruby/1.8/irb/completion.rb:184
        from (irb):1:in `irb_binding'
        from /usr/local/lib/ruby/1.8/irb/workspace.rb:52:in
`irb_binding'
        from /usr/local/lib/ruby/1.8/irb/workspace.rb:52
Maybe IRB bug!!
irb(main):002:0>exit
-bash-3.00$ uname -a
SunOS xxxxxx 5.10 Generic sun4u sparc SUNW,xxxxxxxx
-bash-3.00$

Actually, I had exactly the same problem on a Solaris 8/Sparc system
using a
ruby 1.8.4 I compiled myself.
Did anyone face this issue and could help me with its reason and perhaps
a
fix/workaround ;)

Thank you,
430ea1cba106cc65b7687d66e9df4f06?d=identicon&s=25 David Vallner (Guest)
on 2006-04-12 18:47
(Received via mailing list)
DÅ?a Streda 12. Apríl 2006 16:21 Frederic CHALONS napísal:
> irb 0.9.5(05/04/13)
> SunOS xxxxxx 5.10 Generic sun4u sparc SUNW,xxxxxxxx
> -bash-3.00$
>
> Actually, I had exactly the same problem on a Solaris 8/Sparc system using
> a ruby 1.8.4 I compiled myself.
> Did anyone face this issue and could help me with its reason and perhaps a
> fix/workaround ;)
>
> Thank you,
> --
> FC

irb autocompletion requires readline and the ruby extension module for
it. Do
you have readline installed?

If not, install it and rebuild ruby, the build process should compile
the
extension when it finds the library.

David Vallner
59c35b8eb11d6532b8b34c750cd79d2f?d=identicon&s=25 Frederic CHALONS (Guest)
on 2006-04-14 13:36
(Received via mailing list)
Hi,

I got the "readline" package from sunfreeware installed and
indeed completion works like a charm :)

Thank you David,
Frederic

2006/4/12, David Vallner <david@vallner.net>:
> > -bash-3.00$ ruby --version
> >         from /usr/local/lib/ruby/1.8/irb/workspace.rb:52
> a
> If not, install it and rebuild ruby, the build process should compile the
> extension when it finds the library.
>
> David Vallner
>
>
>
>


--
Frederic CHALONS
+33(0)1.42.60.98.04
This topic is locked and can not be replied to.