First.. paste in your file: require 'rubygems' before another require's: + Use require 'action_pack' insted of deprecated call 'actionpack'.
On Mar 22, 2:35 am, Ruby User <li...@ruby-forum.com> wrote: > I seem to have correct include path, but a lot of gems can't be loaded > via "required". What could be the problem? > > #!/usr/bin/ruby -w > require "cgi" # cant load this > require "actionpack" # can not load this > > # /var/www/ruby/test.rb > /var/www/ruby/test.rb:3:in `require': no such file to load -- > /var/lib/gems/1.9.2/gems/passenger-3.0.11/test/stub/vendor_rails/minimal/ac > tionpack > (LoadError) > from /var/www/ruby/test.rb:3:in `<main>' > > # gem env > RubyGems Environment: > - RUBYGEMS VERSION: 1.3.7 > - RUBY VERSION: 1.9.2 (2010-07-02 patchlevel -1) [i486-linux] > - INSTALLATION DIRECTORY: /var/lib/gems/1.9.2/gems/ > - RUBY EXECUTABLE: /usr/bin/ruby1.9.2 > - EXECUTABLE DIRECTORY: /var/lib/gems/1.9.2/gems/bin > - RUBYGEMS PLATFORMS: > - ruby > - x86-linux > - GEM PATHS: > - /var/lib/gems/1.9.2/gems/ > - /root/.gem/ruby/1.9.2 > - /var/lib/gems/1.9.2 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - REMOTE SOURCES: > -http://rubygems.org/ > > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.