Forum: Ruby FastRI always returns nil on OS X

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aee77dba395ece0a04c688b05b07cd63?d=identicon&s=25 Daniel Berger (Guest)
on 2007-03-31 06:14
(Received via mailing list)
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
Dd76a12d66f843de5c5f8782668e7127?d=identicon&s=25 Mauricio Fernandez (Guest)
on 2007-04-05 12:38
(Received via mailing list)
On Sat, Mar 31, 2007 at 01:13:59PM +0900, Daniel Berger wrote:
> 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.
Aee77dba395ece0a04c688b05b07cd63?d=identicon&s=25 Daniel Berger (Guest)
on 2007-04-05 15:19
(Received via mailing list)
Mauricio Fernandez wrote:
>>  4013  p1  S+     0:00.00 grep fast
> 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
97e3d8ba68b082414cc3438d15c9d6e2?d=identicon&s=25 Bob Evans (rbe5000)
on 2007-09-25 23:02
(Received via mailing list)
Hi,

I have it installed on OS X, with ruby 1.8.5, and it seems to work
for some things and not for others.
It seems as if my rdoc database has not been consistently generated.
Is that true for you as well?

Bob Evans
http://www.junitfactory.com/
Aee77dba395ece0a04c688b05b07cd63?d=identicon&s=25 Daniel Berger (Guest)
on 2007-09-25 23:04
(Received via mailing list)
On Apr 1, 7:54 pm, Bil Kleb <Bil.K...@NASA.gov> wrote:
> You're a day early; Berger on a Mac?
>
> :)

Heh, nope, I bought a quad Xeon Mac tower 2 weeks ago. No joke. :)

I posted this as a bug report on the FastRI project page, btw. I've
used it on Linux, Solaris and Windows with no issue. Not sure what's
happening on OS X.

Dan
A87f7a014c624587fab0d3d78c5b9c18?d=identicon&s=25 Bil Kleb (Guest)
on 2007-09-25 23:07
(Received via mailing list)
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?

:)
This topic is locked and can not be replied to.