I re-installed the mongrel gem by run gem install --platform x86_64-linux mongrel-1.1.3.gem --local
and got the problem solved. Thanks anyway. On Jan 30, 2008 10:01 PM, Jian Fang <[EMAIL PROTECTED]> wrote: > Hi, > > I am working on deplying my Rail app to QA and then move to production. > Since on our QA servers, there is no internet access and also for production > servers, internet access is strictly prohibited. > As a result, there is no way to install mongrel by use "gem install > mongrel" command. > > The first option I tried is to put mongrel and all other gems under the > vendor directly in my app, but seems the command "ruby script/server" cannot > find mongrel. > > The second option I tried is to download the tar ball and run "ruby > setup.rb all". The process finished fine. Type "which mongrel_rails" and > show "/usr/local/bin/mongrel_rails". > However, when I run the command " mongrel_rails start", it showed the > following errors: > > /usr/local/bin/mongrel_rails: line 7: require: command not found > /usr/local/bin/mongrel_rails: line 8: require: command not found > /usr/local/bin/mongrel_rails: line 10: .unshift: command not found > /usr/local/bin/mongrel_rails: line 11: require: command not found > /usr/local/bin/mongrel_rails: line 12: require: command not found > /usr/local/bin/mongrel_rails: line 14: Mongrel::Gems.require: command not > found > /usr/local/bin/mongrel_rails: line 19: module: command not found > /usr/local/bin/mongrel_rails: line 20: GemPlugin::Plugin: No such file or > directory > /usr/local/bin/mongrel_rails: line 21: include: command not found > /usr/local/bin/mongrel_rails: line 23: def: command not found > /usr/local/bin/mongrel_rails: line 24: options: command not found > /usr/local/bin/mongrel_rails: line 25: [-e,: command not found > /usr/local/bin/mongrel_rails: line 25: development],: command not found > .... > > Then, I tried "ruby script/server". It showed the following errors: > > /opt/AddressRubyClient/vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in > `load': no such file to load -- mongrel_rails (MissingSourceFile) > from > /opt/AddressRubyClient/vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in > `load' > from > /opt/AddressRubyClient/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > from > /opt/AddressRubyClient/vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in > `load' > from > /opt/AddressRubyClient/vendor/rails/railties/lib/commands/servers/mongrel.rb:64 > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' > from > /opt/AddressRubyClient/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in > `require' > from > /opt/AddressRubyClient/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in > `new_constants_in' > from > /opt/AddressRubyClient/vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in > `require' > from > /opt/AddressRubyClient/vendor/rails/railties/lib/commands/server.rb:39 > from script/server:3:in `require' > from script/server:3 > > > The QA server is running Redhat EL4 X86_64 version of linux. And I > installed Ruby 1.8.6 and rails 2.0.2. > > I really appreciate if someone could help me with this issue. > > Thanks in advance, > > John >
_______________________________________________ Mongrel-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/mongrel-users
