Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > no such file to load -- stringio (LoadError) ???

Thread Tools

no such file to load -- stringio (LoadError) ???

Rich Morin
Posts: n/a
I recently installed Ruby 1.8.4 on Mac OS X 10.4.7, following
the instructions in

Although irb starts up and runs OK, I am unable to get ri to work
(either within irb or as an external command).

It says:

>> ri Proc

/Users/rdm/.irbrc:2: warning:
Insecure world writable dir /Volumes,
mode 04177/usr/local/lib/ruby/1.8/yaml.rb:9:in `require':
no such file to load -- stringio (LoadError)
from /usr/local/lib/ruby/1.8/yaml.rb:9
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:1
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:1
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:5
from /usr/local/bin/ri:43
=> false

Ignoring the /Volumes nastygram (Hey, it's a mount point!), it
appears that a require is failing. Hmmm...

>> $:

=> ["/usr/local/lib/ruby/site_ruby/1.8",

Looks pretty good; let's see if the file is there and readable:

% cd /usr/local/lib/ruby

% du -a . | grep stringio.rb
8 ./1.8/yaml/stringio.rb
16 ./gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/

% wc ./1.8/yaml/stringio.rb
83 175 1969 ./1.8/yaml/stringio.rb

At this point, I'm tapped out. Suggestions, anyone?

-- Rich Morin Removed) +1 650-873-7841

Technical editing and writing, programming, and web development

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
StringIO <-> File repos after eof discrepancy Robert Feldt Ruby 2 01-21-2005 03:25 PM
Passing in CGI parameters to an .rhtml file with StringIO#instance_eval Francis Hwang Ruby 2 10-07-2004 07:50 PM
Problem using StringIO file object Joshua Burvill Python 2 05-20-2004 08:01 AM
RE: Problem using StringIO file object Joshua Burvill Python 0 05-20-2004 03:54 AM