From: Axel Etzold Date: 2007-11-08T16:50:51+09:00 Subject: Re: LoadError: no such file to load -------- Original-Nachricht -------- > Datum: Thu, 8 Nov 2007 16:33:25 +0900 > Von: Peter Hug > An: ruby-talk@ruby-lang.org > Betreff: LoadError: no such file to load > 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 > -- > Posted via http://www.ruby-forum.com/. Dear Pete, try require "rubygems" require "json" . This should work. Best regards, Axel -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser