From: "hu m." Date: 2012-11-25T18:17:29+09:00 Subject: Re: LoadError: no such file to load Peter Hug wrote in post #583719: > This happens on a i486 Ubuntu 7.04 machine. If I do: > > gem list --local > > I get a list of installed gems. However, if I then try to load any of > these gems like for example the (json gem) as follows: > > require 'json' > > I get a LoadError: no such file to load. I have worked out where for > example the json gem resides and then I navigated to that directory and > used irb to test if require 'json' would work from there and it seemed > fine (returned true). > > It appears to me that ruby doesn't know the path to gems, how can I fix > this? > > Pete require 'rubygems' require 'json' works for me! -- Posted via http://www.ruby-forum.com/.