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

Discussion in 'Ruby' started by Rich Morin, Aug 14, 2006.

  1. Rich Morin

    Rich Morin Guest

    I recently installed Ruby 1.8.4 on Mac OS X 10.4.7, following
    the instructions in

    http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger

    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",
    "/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.7.0",
    "/usr/local/lib/ruby/site_ruby",
    "/usr/local/lib/ruby/1.8",
    "/usr/local/lib/ruby/1.8/powerpc-darwin8.7.0",
    "."]

    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/
    vendor/tmail/stringio.rb

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

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

    -r
    --
    http://www.cfcl.com/rdm Rich Morin
    http://www.cfcl.com/rdm/resume
    http://www.cfcl.com/rdm/weblog +1 650-873-7841

    Technical editing and writing, programming, and web development
     
    Rich Morin, Aug 14, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ruby Ruby
    Replies:
    0
    Views:
    316
    Ruby Ruby
    Apr 22, 2004
  2. Brian Takita
    Replies:
    7
    Views:
    507
    Brian Takita
    May 24, 2005
  3. Zoong Pham
    Replies:
    1
    Views:
    489
    Chad Fowler
    Aug 11, 2005
  4. Replies:
    1
    Views:
    700
    Eric Hodel
    Oct 25, 2005
  5. anne001
    Replies:
    4
    Views:
    270
    Jaypee
    Nov 16, 2005
  6. Replies:
    0
    Views:
    154
  7. Jeffrey 'jf' Lim
    Replies:
    5
    Views:
    796
    Jeffrey 'jf' Lim
    Apr 9, 2007
  8. Skip Montanaro
    Replies:
    0
    Views:
    267
    Skip Montanaro
    May 30, 2013
Loading...