Sha256: 1e7ee28ac305a6e097ff40fdb58704f677bc3d851df23a8bb8a30bf84b7e7715
Contents?: true
Size: 820 Bytes
Versions: 46
Compression:
Stored size: 820 Bytes
Contents
# Install Ruby from source in /opt so that users of Vagrant # can install their own Rubies using packages or however. apt-get -y install libyaml-0-2 RUBY_VERSION=1.9.3-p392 wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-$RUBY_VERSION.tar.gz tar xvzf ruby-$RUBY_VERSION.tar.gz cd ruby-$RUBY_VERSION ./configure --prefix=/opt/ruby make make install cd .. rm -rf ruby-$RUBY_VERSION # Install RubyGems 1.8.25 RUBYGEMS_VERSION=1.8.25 wget http://production.cf.rubygems.org/rubygems/rubygems-$RUBYGEMS_VERSION.tgz tar xzf rubygems-$RUBYGEMS_VERSION.tgz cd rubygems-$RUBYGEMS_VERSION /opt/ruby/bin/ruby setup.rb cd .. rm -rf rubygems-$RUBYGEMS_VERSION # Add /opt/ruby/bin to the global path as the last resort so # Ruby, RubyGems, and Chef/Puppet are visible echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
Version data entries
46 entries across 16 versions & 1 rubygems