I''ve installed pen and mongrel with mongrel_cluster (as gems) on Debian sarge. I can run everything from the command line fine including starting from the /etc/init.d/mongrel_cluster script On boot though mongrel_cluster fails with this msg: /usr/local/lib/site_ruby/1.8/rubygems.rb:204:in `report_activate_error'': Could not find RubyGem mongrel_cluster (> 0) (Gem::LoadError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:141:in `activate'' from /usr/local/lib/site_ruby/1.8/rubygems.rb:37:in `require_gem_with_options'' from /usr/local/lib/site_ruby/1.8/rubygems.rb:31:in `require_gem'' from /usr/bin/mongrel_cluster_ctl:17 This may be more of a ruby gems question, but any thoughts/help would be appreciated. Thanks, --James
James Punteney wrote:> I''ve installed pen and mongrel with mongrel_cluster (as gems) on > Debian sarge. I can run everything from the command line fine > including starting from the /etc/init.d/mongrel_cluster script > > On boot though mongrel_cluster fails with this msg: > /usr/local/lib/site_ruby/1.8/rubygems.rb:204:in > `report_activate_error'': Could not find RubyGem mongrel_cluster (> 0) > (Gem::LoadError) > from /usr/local/lib/site_ruby/1.8/rubygems.rb:141:in `activate'' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:37:in > `require_gem_with_options'' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:31:in `require_gem'' > from /usr/bin/mongrel_cluster_ctl:17Are you using the debian package of ruby or did you build it yourself in /usr/local? Can you manually go around and look to see where the gem is installed? /usr/lib/ruby/gems /usr/local/lib/ruby/gems /usr/local/lib/site_ruby/gems do you have some weird combined installation of the deb and build from source? Austin
On Tue, 2006-06-20 at 13:45 -0400, James Punteney wrote:> I''ve installed pen and mongrel with mongrel_cluster (as gems) on > Debian sarge. I can run everything from the command line fine > including starting from the /etc/init.d/mongrel_cluster script > > On boot though mongrel_cluster fails with this msg: > /usr/local/lib/site_ruby/1.8/rubygems.rb:204:in > `report_activate_error'': Could not find RubyGem mongrel_cluster (> 0) > (Gem::LoadError) > from /usr/local/lib/site_ruby/1.8/rubygems.rb:141:in `activate'' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:37:in > `require_gem_with_options'' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:31:in `require_gem'' > from /usr/bin/mongrel_cluster_ctl:17 > > > This may be more of a ruby gems question, but any thoughts/help would > be appreciated.Depending how you set things up, you may need to install mongrel_cluster again: gem install mongrel_cluster If that don''t work then try removing it and installing it again. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/
It turns out it is an issue with the path. Exporting the path: export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 just below the CONF_DIR fixed the problem, and now mongrel starts on boot. Thanks for the help, --James On 6/20/06, Austin Godber <godber at uberhip.com> wrote:> James Punteney wrote: > > I''ve installed pen and mongrel with mongrel_cluster (as gems) on > > Debian sarge. I can run everything from the command line fine > > including starting from the /etc/init.d/mongrel_cluster script > > > > On boot though mongrel_cluster fails with this msg: > > /usr/local/lib/site_ruby/1.8/rubygems.rb:204:in > > `report_activate_error'': Could not find RubyGem mongrel_cluster (> 0) > > (Gem::LoadError) > > from /usr/local/lib/site_ruby/1.8/rubygems.rb:141:in `activate'' > > from /usr/local/lib/site_ruby/1.8/rubygems.rb:37:in > > `require_gem_with_options'' > > from /usr/local/lib/site_ruby/1.8/rubygems.rb:31:in `require_gem'' > > from /usr/bin/mongrel_cluster_ctl:17 > > Are you using the debian package of ruby or did you build it yourself in > /usr/local? > > Can you manually go around and look to see where the gem is installed? > > /usr/lib/ruby/gems > /usr/local/lib/ruby/gems > /usr/local/lib/site_ruby/gems > > do you have some weird combined installation of the deb and build from > source? > > Austin > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >