Ruby 1.8.1 on OS X Panther and RubyCocoa

New to the list and to ruby (and to coding for that matter), but may as well jump in here.

I installed 1.8.1 from source, and found I had to remove the existing ruby binary to get the system to correctly use the newer installation for some reason. I also can’t get ri to work with 1.8.1, I assume because it can’t find the files.

Any suggestions?

Bruce

···

On Mar 4, 2004, at 4:30 PM, Gavin Kistner wrote:

Personally, I downloaded the source, built it, let it install in the
standard location (/usr/local/) and added that to my path.

I think I also hunted down old copies and deleted them from their
standard-install locations.

To get it to work, I had to change my path, putting /usr/local/bin at
the front. This makes it so that ruby will look in the correct places
for its dependencies.

bash/zsh:
PATH=/usr/local/bin:$PATH

(t)csh:
path=(/usr/local/bin $path)

this should work. it did for me anyway (using zsh)

–Mark

···

On Mar 4, 2004, at 2:43 PM, Bruce D’Arcus wrote:

New to the list and to ruby (and to coding for that matter), but may
as well jump in here.

I installed 1.8.1 from source, and found I had to remove the existing
ruby binary to get the system to correctly use the newer installation
for some reason. I also can’t get ri to work with 1.8.1, I assume
because it can’t find the files.

Any suggestions?

Thanks; that worked for ruby itself. However, I still get this:

ri File

Nothing known about File

Bruce

···

On Mar 4, 2004, at 6:02 PM, Mark Hubbart wrote:

I installed 1.8.1 from source, and found I had to remove the existing
ruby binary to get the system to correctly use the newer installation
for some reason. I also can’t get ri to work with 1.8.1, I assume
because it can’t find the files.

Any suggestions?

To get it to work, I had to change my path, putting /usr/local/bin at
the front. This makes it so that ruby will look in the correct places
for its dependencies.

bash/zsh:
PATH=/usr/local/bin:$PATH

Hmm… okay.

Was the documentation generated when you installed? I know it does it
automatically in 1.9, but…
They should be stored in /usr/local/share/ri/1.8/system/ , so see if
there’s a bunch of folders there named File, CGI, etc… that’s my
first guess

If they’re there, see if you can pull up the docs by entering “ri -d
/usr/local/share/ri/1.8/system/ File”.

–Mark

···

On Mar 4, 2004, at 5:49 PM, Bruce D’Arcus wrote:

Thanks; that worked for ruby itself. However, I still get this:

ri File

Nothing known about File

Thanks; that worked for ruby itself. However, I still get this:

ri File

Nothing known about File

Hmm… okay.

Was the documentation generated when you installed?

I don’t know. I downloaded the ri package separately, not knowing that
it seems to be bundled with 1.8. Following the directions I just found
at this link doesn’t solve the problem though:

I know it does it automatically in 1.9, but…
They should be stored in /usr/local/share/ri/1.8/system/ , so see if
there’s a bunch of folders there named File, CGI, etc… that’s my
first guess

The files are in /usr/local/lib/ruby/site_ruby/ri.

If they’re there, see if you can pull up the docs by entering “ri -d
/usr/local/share/ri/1.8/system/ File”.

The -d option isn’t recognized.

Am confused…

Bruce

···

On Mar 5, 2004, at 12:04 AM, Mark Hubbart wrote:

:confused: My mistake. I am using 1.9 and assumed that the version of RI you
have would be basically the same. It really isn’t. I’m renaming this
thread in hopes someone with more knowledge than me will pick it up. (I
think non-mac people may be ignoring this thread due to the subject :slight_smile:

–Mark

···

On Mar 5, 2004, at 5:24 AM, Bruce D’Arcus wrote:

On Mar 5, 2004, at 12:04 AM, Mark Hubbart wrote:

Thanks; that worked for ruby itself. However, I still get this:

ri File

Nothing known about File

Hmm… okay.

Was the documentation generated when you installed?

I don’t know. I downloaded the ri package separately, not knowing that
it seems to be bundled with 1.8. Following the directions I just
found at this link doesn’t solve the problem though:

http://www.rubygarden.org/ruby?NextGenerationRi

I know it does it automatically in 1.9, but…
They should be stored in /usr/local/share/ri/1.8/system/ , so see if
there’s a bunch of folders there named File, CGI, etc… that’s my
first guess

The files are in /usr/local/lib/ruby/site_ruby/ri.

If they’re there, see if you can pull up the docs by entering “ri -d
/usr/local/share/ri/1.8/system/ File”.

The -d option isn’t recognized.

Am confused…