[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

irb/completion

Brian McCallister

10/1/2004 4:14:00 PM

Hmm, any reason I'd be unable to use 'irb/completion' out of the box in
1.8.2-preview2 ?

It likewise ignores the request to use it in my .irbrc

[mccallister@kite ~/src/eva]$ /usr/local/ruby-1.8.2-preview2/bin/irb
irb(main):001:0> require 'irb/completion'
=> false

[mccallister@kite ~/src/eva]$ ruby -v
ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]

[mccallister@kite ~/src/eva]$ uname -a
Darwin kite.forthill.int 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug 5
19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power
Macintosh powerpc

-Brian




3 Answers

Ara.T.Howard

10/1/2004 4:20:00 PM

0

James Gray

10/1/2004 4:26:00 PM

0

On Oct 1, 2004, at 11:13 AM, Brian McCallister wrote:

> Hmm, any reason I'd be unable to use 'irb/completion' out of the box
> in 1.8.2-preview2 ?
>
> It likewise ignores the request to use it in my .irbrc
>
> [mccallister@kite ~/src/eva]$ /usr/local/ruby-1.8.2-preview2/bin/irb
> irb(main):001:0> require 'irb/completion'
> => false
>
> [mccallister@kite ~/src/eva]$ ruby -v
> ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]

Yes, this was just covered here recently. Short story:

1. irb/completion requires GNU's readline lib.

2. Mac OS X does ship with the lib, but not the header files for Ruby
to find in it's build process.

3. So, you either need to bring readline support to your Ruby install,
described here:

http://richkilmer.blogs.com/ether/2003/10/building_r...

Or, build and install GNU readline and then Rebuild your Ruby install
so it will notice it.

I used the latter and it worked like a charm.

Good luck.

James Edward Gray II



Brian McCallister

10/1/2004 4:43:00 PM

0

Much appreciated! Was getting fooled on readline as I had earlier set
up an alias to run irb in rlwrap. Doh!

-Brian

On Oct 1, 2004, at 12:25 PM, James Edward Gray II wrote:

> On Oct 1, 2004, at 11:13 AM, Brian McCallister wrote:
>
>> Hmm, any reason I'd be unable to use 'irb/completion' out of the box
>> in 1.8.2-preview2 ?
>>
>> It likewise ignores the request to use it in my .irbrc
>>
>> [mccallister@kite ~/src/eva]$ /usr/local/ruby-1.8.2-preview2/bin/irb
>> irb(main):001:0> require 'irb/completion'
>> => false
>>
>> [mccallister@kite ~/src/eva]$ ruby -v
>> ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]
>
> Yes, this was just covered here recently. Short story:
>
> 1. irb/completion requires GNU's readline lib.
>
> 2. Mac OS X does ship with the lib, but not the header files for Ruby
> to find in it's build process.
>
> 3. So, you either need to bring readline support to your Ruby
> install, described here:
>
> http://richkilmer.blogs.com/ether/2003/10/building_r...
>
> Or, build and install GNU readline and then Rebuild your Ruby install
> so it will notice it.
>
> I used the latter and it worked like a charm.
>
> Good luck.
>
> James Edward Gray II
>
>
>