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

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 :wink:

Thank you,

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 :wink:

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 V.

Hi,

I got the “readline” package from sunfreeware installed and
indeed completion works like a charm :slight_smile:

Thank you David,
Frederic

2006/4/12, David V. [email protected]:

-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 V.


Frederic CHALONS
+33(0)1.42.60.98.04