Rails install failure on VPS host - suggestions?

I’ve installed Ruby 1.8.6 and Rubygems 1.1.1 in my VPS hosting account
on eApps.com. I’ve tried to install Rails several times, without
success. I then went through the following sequence:

gem install rails --include-dependencies

INFO: gem install -y is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Updating metadata for 476 gems from http://gems.rubyforge.org/

complete
Bulk updating Gem source index for: http://gems.rubyforge.org/
Terminated

gem install rails --include-dependencies

INFO: gem install -y is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Bulk updating Gem source index for: http://gems.rubyforge.org/
Successfully installed rake-0.8.1
Successfully installed activesupport-2.1.0
Successfully installed activerecord-2.1.0
Successfully installed actionpack-2.1.0
Successfully installed actionmailer-2.1.0
Successfully installed activeresource-2.1.0
Successfully installed rails-2.1.0
7 gems installed
Installing ri documentation for rake-0.8.1…
Installing ri documentation for activesupport-2.1.0…

RDoc failure in lib/active_support/core_ext/class/removal.rb at or
around line 37 column 19

Before reporting this, could you check that the file
you’re documenting compiles cleanly–RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.

The internal error was:

Terminated

gem install rails

Bulk updating Gem source index for: http://gems.rubyforge.org/
Killed

gem install rails

Bulk updating Gem source index for: http://gems.rubyforge.org/
Killed

gem --debug install rails

Exception NameError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/ command_manager.rb:133 - uninitialized constant Gem::Commands::InstallCommand Exception Gem::LoadError’ at /usr/local/lib/ruby/site_ruby/1.8/
rubygems.rb:523 - Could not find RubyGem sources (> 0.0.1)

Exception EOFError' at /usr/local/lib/ruby/1.8/net/protocol.rb:133 - end of file reached Exception EOFError’ at /usr/local/lib/ruby/1.8/net/protocol.rb:120 -
end of file reached
Bulk updating Gem source index for: http://gems.rubyforge.org/
Killed

gem uninstall rails

Successfully uninstalled rails-2.1.0
Remove executables:
rails

in addition to the gem? [Yn] y
Removing rails

gem install rails

Bulk updating Gem source index for: http://gems.rubyforge.org/
Killed

Now every time I try the last command, it fails the same way. Any
suggestions?

Is it possible that there is a process running on the server that is
detecting high processor utilization due to the gem install and
killing the gem process automatically?

Maybe you can run tail -f /var/log/messages in a separate terminal
window and then run the gem install in another window for clues as to
what is causing the gem process to get killed.

I’m just guessing :slight_smile: I may be very wrong.

Thanks for the suggestion, but nothing showed up in the log.

On Jul 17, 5:06 pm, “[email protected][email protected] wrote:

On Jul 17, 3:59 pm, wFredk [email protected] wrote:

I’ve installed Ruby 1.8.6 and Rubygems 1.1.1 in my VPS hosting account
on eApps.com. I’ve tried to install Rails several times, without
success. I then went through the following sequence:

If the problem was the documentation then you’re probably ok actually.
The --no-rdoc option will stop gem generating the rdoc for the gems.
Have you tried running your app?

Fred

I’m now getting this same problem with any gem update command:

[email protected] /root: gem update --system
Updating RubyGems
Bulk updating Gem source index for: http://gems.rubyforge.org/
Killed

On 31 Aug 2008, at 14:56, Steve wrote:

I’m now getting this same problem with any gem update command:

[email protected] /root: gem update --system
Updating RubyGems
Bulk updating Gem source index for: http://gems.rubyforge.org/
Killed

What version of rubygems have you got? 1.2 is way better than previous
ones, especially on systems with not much RAM.

Fred

I installed the latest rubygems without using rubygems itself and that
fixed the out of memory problems. Here’s how to do that:

I downloaded rubygems 1.2.0 from www.rubyforge.org and untarred it.
I cd’d into the directory and ran ruby setup.rb
That installed rubygems 1.2.0 for me.

Now everything works fine.

Thanks for the help.

Steve

I’m at 1.1.1.

After a little more investigation, my /var/log/messages shows my gem is
getting killed by the oom_killer because it’s using up all my memory.

Can I install rubygems 1.2.0 without using rubygems itself? And will
that
replace rubygems 1.1.1 or install alongside it? What are the issues
concerning that?

Thanks for your help.

On Sun, Aug 31, 2008 at 8:11 AM, Frederick C. <
[email protected]> wrote:

Killed

wrote:> Is it possible that there is a process running on the

On Jul 17, 3:59 pm, wFredk [email protected] wrote:


Steven L.
303-910-1212
[email protected]

cheap hosting for students http://javaprovider.net no one can beat them

Steve,

If rubygems is getting killed because of compilations using too much
CPU (which can peg a CPU), I would get concerned that hosting Rails is
going to also prove frustrating obviously depending on the
configuration of their(your hosts’) quota processes. Definitely you
should look at mod_rails to slim down your memory usage before you go
too far down this road. As they might be even more restrictive on
memory than CPU. Lastly, get ready to run something in cron to keep an
eye on your Rails app and restart if your hosting provider kills off
processes sometimes.

H