blob: e44d60d2b0302bf46f2555ff41c8bd28801cb835 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# Install Ruby from packages
apt-get -y install ruby ruby-dev libopenssl-ruby1.8 irb ri rdoc
# Install Rubygems from source
rg_ver=1.8.22
curl -o /tmp/rubygems-${rg_ver}.zip \
"http://production.cf.rubygems.org/rubygems/rubygems-${rg_ver}.zip"
(cd /tmp && unzip rubygems-${rg_ver}.zip && \
cd rubygems-${rg_ver} && ruby setup.rb --no-format-executable)
rm -rf /tmp/rubygems-${rg_ver} /tmp/rubygems-${rg_ver}.zip
|