I just installed WebVZ on a brand new Debian with latest Ruby, I
dumped the relevant bits of my console log below.
apt-get install ruby rubygems libsqlite3-ruby sqlite3 irb1.8
libopenssl-ruby1.8 libreadline-ruby1.8 rdoc1.8 nano
ruby setup.rb
gem install -v=2.1.0 rails
vi /usr/bin/gem
<code>
#!/usr/bin/env ruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/open-uri'
Gem.manage_gems
required_version = Gem::Version::Requirement.new(">= 1.8.0")
unless required_version.satisfied_by?(Gem::Version.new(RUBY_VERSION))
puts "Expected Ruby Version #{required_version}, was #{RUBY_VERSION}"
exit(1)
end
# We need to preserve the original ARGV to use for passing gem options
# to source gems. If there is a -- in the line, strip all options after
# it...its for the source building process.
args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]
Gem::GemRunner.new.run(args)
</code>
gem update --system
gem install open-uri
ln -s /usr/bin/irb1.8 /usr/bin/irb
mkdir /etc/sysconfig
ln -s /etc/vz/conf /etc/sysconfig/vz-scripts
cd /var/www/
wget http://downloads.sourceforge.net/webvz/webvz.2.0.tar.gz?use_mirror=mesh
gunzip webvz.2.0.tar.gz
tar xf webvz.2.0.tar
ln -s webvz.2.0 webvz
vi /etc/init.d/vz
<code>
cd /var/www/webvz && ruby script/server &
}
stop()
</code>
This last bit starts your WebVZ server together with OpenVZ.
Let me know if it works for you.
Regards
Gabor Laszlo
--
We are born wet, naked and hungry.
Then things get worse.