Not true. I use dreamhost and I’m able to completely compile my own
setup. Here’s how I do it. The following bash script creates your
own custom ruby environment, in which you can install whatever addons
and gems you want. Then just make sure you have
export PATH=“$HOME/extra/bin:$PATH”
in your .bash_profile script and also make sure your ruby scripts
point to $HOME/extra/bin/ruby.
#!/bin/sh
remove old stuff
rm -rf $HOME/extra/bin
rm -rf $HOME/extra/include
rm -rf $HOME/extra/info
rm -rf $HOME/extra/lib
rm -rf $HOME/extra/man
rm -rf $HOME/extra/src
rm -rf $HOME/extra/ssl
mkdir -p $HOME/extra/bin
cp $HOME/extra/binbak/* $HOME/extra/bin
create directory for compiling source code
mkdir -p $HOME/extra/src
cd $HOME/extra/src
download and compile source tarballs
wget http://www.openssl.org/source/openssl-0.9.8a.tar.gz
tar zxvf openssl-0.9.8a.tar.gz
rm -f openssl-0.9.8a.tar.gz
cd openssl-0.9.8a
./config --prefix=$HOME/extra
make
make test
make install
cd …
wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar zxvf fcgi-2.4.0.tar.gz
rm -f fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure --prefix=$HOME/extra
make
make install
cd …
wget ftp://ftp.cwru.edu/pub/bash/readline-5.1.tar.gz
tar zxvf readline-5.1.tar.gz
rm -f readline-5.1.tar.gz
cd readline-5.1
./configure --prefix=$HOME/extra
make
make install
cd …
wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.4.tar.gz
tar zxvf ruby-1.8.4.tar.gz
rm -f ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure --prefix=$HOME/extra --with-openssl=$HOME/extra
–with-readline-dir=$HOME/extra
make
make install
cd …
wget http://tmtm.org/downloads/mysql/ruby/mysql-ruby-2.7.tar.gz
tar zxvf mysql-ruby-2.7.tar.gz
rm -f mysql-ruby-2.7.tar.gz
cd mysql-ruby-2.7
ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config
make
PLACE CUSTOMIZED DATABASE PARAMETERS HERE:
ruby ./test.rb DBHOST DBUSER DBPASS DBNAME DBPORT
make install
cd …
wget http://sugi.nemui.org/pub/ruby/fcgi/ruby-fcgi-0.8.6.tar.gz
tar zxvf ruby-fcgi-0.8.6.tar.gz
rm -f ruby-fcgi-0.8.6.tar.gz
cd ruby-fcgi-0.8.6
ruby install.rb config
ruby install.rb setup
ruby install.rb install
cd …
wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
tar zxvf rubygems-0.8.11.tgz
rm -f rubygems-0.8.11.tgz
cd rubygems-0.8.11
ruby setup.rb
cd …
gem install rails --include-dependencies