This is wierd:

I had the above app working fine for a day and just got back to it today 
and get an error.

Here is the code from f.rb:
---------------------------------
require 'rubygems'
require 'ferret'
include Ferret
index = Index::Index.new(:path => '/opt/search-index')
---------------------------------

Exception thrown:
---------------------------------
./ferret.rb:3: uninitialized constant Ferret (NameError)
        from 
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in 
`require'
        from f.rb:2
---------------------------------

Any ideas?

Mufaddal Khumri wrote:
> Thank you for the quick response. that was precisely the mistake.
> 
> Florent Solt wrote:
>> Mufaddal Khumri wrote:
>>> I am trying to test drive ferret on a ubuntu dapper installation.
>>> 
>>> I have a ferret-test.rb file like:
>>> ----begin---------
>>> require 'ferret'
>>> include Ferret
>>> index = Index::Index.new(:path => '/opt/search-index')
>>> ----end-----------
>>> 
>> 
>> Add this : require 'rubygems'


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to