From: Nabs Kahn Date: 2010-03-01T23:16:39+09:00 Subject: Re: No such file to load Error Brian, thanks for the response. I don't get any error upon running "ruby -ropen-uri -e0" in terminal... so I assume that means something is wrong with path variables? Also, I should have mentioned that I have been running this in TextMate. After this I tried to run the same program via Terminal and it works fine... so it is a TextMate issue... any ideas where I should start to solve it in TextMate? Thanks, Nabs Kahn Brian Candler wrote: > Nabs Kahn wrote: >> When trying to run the following code I am getting an error which says >> "no such file to load — open‐uri" > ... >> require 'open‐uri' > > Try just > > ruby -ropen-uri -e0 > > If that gives you the same error, then it looks like your ruby > installation is broken or incomplete, since it's a standard part of the > core library. > > $ ls -l /usr/lib/ruby/1.8/open-uri.rb > -rw-r--r-- 1 root root 20982 2007-10-08 12:16 > /usr/lib/ruby/1.8/open-uri.rb > > (This is under Ubuntu Linux rather than Mac, and the ruby version is > 1.8.7p174, but open-uri.rb has been in ruby for years) > > Are you sure you haven't got something odd like an em-dash instead of a > proper hyphen? -- Posted via http://www.ruby-forum.com/.