Welcome Guest | Login

gem unpacked into vendor dir not found

I followed the instructions in http://www.hostingrails.com/forums/wiki_thread/2 and unpacked the shipping gem into my vendor/ dir.  In my app I try to require 'shipping' it doesn't find it.  I did successfully kill dispatch.fcgi

I'm trying to "require" it from the top of a model file.

snippet from the production log:

MissingSourceFile (no such file to load -- shipping):
   /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
   /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
   /home/crimesc/crimescene/app/models/order_shipping_type.rb:3

2007-11-08 11:43 PM

Hi,

Did you try "require"ing the gem in environment.rb ?

2007-11-09 01:53 AM

Joemcglynn, did you find a solution? I'm having the same problem with ezcrypto gem.

2007-11-29 01:52 AM

I've installed the ezcrypto gem globally on the server. Does that help you?

2007-11-29 02:02 AM

Yes!!
Thanks.

2007-11-29 02:14 AM

Hi Guys,

I need to use ezcrypto as well, but I can see it in my local gems only after typing:

export GEM_HOME=$HOME/.gems
export GEM_PATH=/usr/local/lib/ruby/gems/1.8:$GEM_HOME

I've installed it following instructions http://www.hostingrails.com/forums/wiki_thread/2

I also tried "require"ing the gem in environment.rb

I am not sure what to do.

2008-03-26 03:37 AM

It is fixed now.

In environment.rb you had a mis-configuration. You had put the following entry.

require 'ezcrypto'

This is a wrong entry..

I have put the following entry and the issue got fixed.

gem 'ezcrypto'

Also do avoid pasting complete URL in forums..Do post tickets incase you need to reveal more account specific details.

2008-03-26 04:14 AM

Regards,
Rahul
Thanks a lot, Rahul!
It's funny because in the same time I modified another file and for a minute I thought I fixed the problem by changing something completely not related to ezcrypto.

Thanks again.

2008-03-26 04:25 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.