[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

FastRI always returns nil on OS X

Daniel Berger

3/31/2007 4:14:00 AM

Hi all,

OS X (10.4.9)
Ruby 1.8.6 (built from source)
FastRI 0.3.0

I installed FastRI seemingly without issue, fired up fastri-server, but
I always get back nil.

daniel-bergers-computer:~ djberge$ ps -ax | grep fast
2775 p1 S 0:05.53 ruby /usr/local/bin/fastri-server
4013 p1 S+ 0:00.00 grep fast
daniel-bergers-computer:~ djberge$ fri Array#length
nil
daniel-bergers-computer:~ djberge$ fri -v
fri 0.3.0 (2007-01-29)

Other information of possible interest:

irb(main):001:0> require 'socket'
=> true
irb(main):002:0> Socket.gethostname
=> "daniel-bergers-computer.local"

daniel-bergers-computer:~ djberge$ nslookup localhost
Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
Name: localhost
Address: 127.0.0.1

Am I missing something obvious here?

Thanks,

Dan

3 Answers

Bil Kleb

4/2/2007 1:54:00 AM

0

Daniel Berger wrote on 31 Mar '07:
> Hi all,

Hi.

> OS X (10.4.9)
>
> Am I missing something obvious here?

You're a day early; Berger on a Mac?

:)

--
Bil Kleb
http://fun3d.lar...

Mauricio Fernández

4/5/2007 10:37:00 AM

0

On Sat, Mar 31, 2007 at 01:13:59PM +0900, Daniel Berger wrote:
> OS X (10.4.9)
> Ruby 1.8.6 (built from source)
> FastRI 0.3.0
>
> I installed FastRI seemingly without issue, fired up fastri-server, but
> I always get back nil.
>
> daniel-bergers-computer:~ djberge$ ps -ax | grep fast
> 2775 p1 S 0:05.53 ruby /usr/local/bin/fastri-server
> 4013 p1 S+ 0:00.00 grep fast
> daniel-bergers-computer:~ djberge$ fri Array#length
> nil
> daniel-bergers-computer:~ djberge$ fri -v
> fri 0.3.0 (2007-01-29)

I couldn't reproduce it on OSX 10.4.9 + Ruby 1.8.6 + FastRI 0.3.0 (that is,
theoretically the very same setup).

However, I noticed that the stdlib rdoc documentation wasn't being generated
on 'make install', so I had to 'make install-doc' manually after building
1.8.6. If you're getting
$ fastri-server -b
Indexed:
* 0 methods
* 0 classes/modules
'make install-doc' should help.

You can try qri (identical to fri but using the local index, thus without
needing the DRb service, and a bit slower) to discard network/DRb issues, but
that doesn't seem to be the culprit.

--
Mauricio Fernandez - http://eige... - singular Ruby
** Latest postings **
The Neo-Rails controversy and a language generator
http://eige.../hiki/language-generator
Rails on 1.9: first benchmarks, YARV exposed to non-synthetic tests
http://eige.../hiki/non-synthetic-benchmarks-for-yarv

Daniel Berger

4/5/2007 1:19:00 PM

0

Mauricio Fernandez wrote:
> On Sat, Mar 31, 2007 at 01:13:59PM +0900, Daniel Berger wrote:
>> OS X (10.4.9)
>> Ruby 1.8.6 (built from source)
>> FastRI 0.3.0
>>
>> I installed FastRI seemingly without issue, fired up fastri-server, but
>> I always get back nil.
>>
>> daniel-bergers-computer:~ djberge$ ps -ax | grep fast
>> 2775 p1 S 0:05.53 ruby /usr/local/bin/fastri-server
>> 4013 p1 S+ 0:00.00 grep fast
>> daniel-bergers-computer:~ djberge$ fri Array#length
>> nil
>> daniel-bergers-computer:~ djberge$ fri -v
>> fri 0.3.0 (2007-01-29)
>
> I couldn't reproduce it on OSX 10.4.9 + Ruby 1.8.6 + FastRI 0.3.0 (that is,
> theoretically the very same setup).
>
> However, I noticed that the stdlib rdoc documentation wasn't being generated
> on 'make install', so I had to 'make install-doc' manually after building
> 1.8.6. If you're getting
> $ fastri-server -b
> Indexed:
> * 0 methods
> * 0 classes/modules
> 'make install-doc' should help.
>
> You can try qri (identical to fri but using the local index, thus without
> needing the DRb service, and a bit slower) to discard network/DRb issues, but
> that doesn't seem to be the culprit.
>

Running make install-doc + fastri-server -b did the trick.

Many thanks,

Dan