summaryrefslogtreecommitdiff
path: root/ruby.sh
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-02-09 11:30:08 +0100
committerChristoph Helma <helma@in-silico.ch>2011-02-09 11:30:08 +0100
commit493dc4f0268a853c8b5488803b14efb5540163b5 (patch)
treea77d8d21b10cee1b03d038abbc2dc33a6fd4e2d0 /ruby.sh
parent0871dbf4fc3f8e1083490197b7be7be2b5163d14 (diff)
initial import
Diffstat (limited to 'ruby.sh')
-rw-r--r--ruby.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ruby.sh b/ruby.sh
new file mode 100644
index 0000000..2518939
--- /dev/null
+++ b/ruby.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+echo "Installing Ruby Enterprise"
+cd /tmp
+wget -O - "http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz" | tar zxv
+ruby-enterprise-1.8.7-2010.02/installer --dont-install-useful-gems --no-dev-docs --auto=/opt/ruby-enterprise-1.8.7-2010.02
+sed -i '/^PATH=.*ruby-enterprise/d' /etc/profile
+echo 'PATH=$PATH:/opt/ruby-enterprise-1.8.7-2010.02/bin' | tee -a /etc/profile
+. /etc/profile
+gem sources -a http://gemcutter.org
+gem sources -r http://rubygems.org/
+echo "gem: --no-ri --no-rdoc" | tee -a ~/.gemrc
+gem install passenger