From: David Vallner Date: 2006-04-13T01:47:02+09:00 Subject: Re: Ruby 1.8.4 - irb -> require "irb/completion" fails --nextPart1331734.fYtuJzKdeE Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline D=C5=88a Streda 12. Apr=C3=ADl 2006 16:21 Frederic CHALONS nap=C3=ADsal: > 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=20 you have readline installed? If not, install it and rebuild ruby, the build process should compile the=20 extension when it finds the library. David Vallner --nextPart1331734.fYtuJzKdeE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEPS74+aUhotvmpDgRAkDxAJ0envZml5N4YITCvSt3lgOfrErC7wCfdYPD wQJbURoz8pk+2eytSrmMKlM= =+VkP -----END PGP SIGNATURE----- --nextPart1331734.fYtuJzKdeE--