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,
···
--
FC
Dňa Streda 12. Apríl 2006 16:21 Frederic CHALONS napísal:
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,
--
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
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>:
Dňa Streda 12. Apríl 2006 16:21 Frederic CHALONS napísal:
> 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,
> --
> 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
--
Frederic CHALONS
+33(0)1.42.60.98.04
--------------------------
HORIZON SOFTWARE
3, rue Meyerbeer 75009 PARIS
+33(0)1.42.60.94.90
--------------------------