Rails gems not found

software development

#1

I’m new to Rails and I’m playing around with building a Facebook app using the RFacebook plugin…
http://rfacebook.rubyforge.org/

I’ve gone through the directions for setting up gems in my home directory…
http://wiki.dreamhost.com/RubyGems

And I’ve successfully run “gem install rfacebook”, which was confirmed by running “gem list” and seeing both hpricot and rfacebook listed.

The problem is that when I require “facebook_rails_controller_extensions”, it fails (error listed below).

Any idea why it can’t find the plugin? I’ve been struggling with this for over a week and I’m tempted to find a more Rails-friendly host.

no such file to load -- facebook_rails_controller_extensions /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require' ../config/../app/controllers/application.rb:1 /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203:in `load_file' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:202:in `load_file' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:94:in `require_or_load' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:60:in `depend_on' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:442:in `require_dependency' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:110:in `prepare_application' /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:39:in `dispatch' dispatch.cgi:10


#2

"

Also, if you are using the Ruby on Rails platform, your “require” statements should list the full path of your personally installed rubygem. IE: require ‘/home/your_account/.gems/gems/activemerchant-0.6.0/lib/active_merchant’

"


#3

Duh, I should’ve known that. But now I can’t get gem to work at all. I’m getting the same problem as someone in the wiki…
http://wiki.dreamhost.com/Ruby_on_Rails#Using_Gems_Installed_in_Your_Home_Directory

It just gets killled…

$ gem install rfacebook
Bulk updating Gem source index for: http://gems.rubyforge.org
Killed

Any ideas?


#4

I’ve had the same problem installing rmagick… Try downloading the .gem file manually using wget and then install it using the “local” -l option, for some reason that way it didn’t get killed for me:

gem install -l path/to/rfacebook.gem