Use my compiled Ruby



I recently compiled Ruby 1.8.5 and Rails using this script:

[code]# setup directories
mkdir -p ~/local/usr/src/ruby
cd ~/local/usr/src/ruby

get readline and extract

tar xzf readline-5.2.tar.gz

#install readline
cd readline-5.2
./configure --prefix=$HOME/local
make install
cd …

get ruby and extract

tar -xzf ruby-1.8.5.tar.gz

install ruby

cd ruby-1.8.5
./configure --prefix=$HOME/local --with-readline-dir=$HOME/local
make install

fix path

export PATH=$HOME/local/bin:$PATH

get fastcgi

cd …
tar -xzf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure --prefix=$HOME/local
make install

get rubygems and extract

cd …
tar -xzf rubygems-0.9.0.tgz
cd rubygems-0.9.0
ruby setup.rb

install gems & rails

cd ~
gem update --system
gem install fcgi – --with-fcgi-dir=$HOME/local
gem install mysql – --with-mysql-config
gem install rails --include-dependencies
gem install redcloth bluecloth rubypants syntax

echo “export PATH=$HOME/local/bin:$PATH” >> .bash_profile
source .bash_profile[/code]I’m trying to setup a new installation of Typo to use my Ruby instead of Dreamhost’s Ruby. When I change the shebang line in public/dispatch.fcgi and public/dispatch.rb to “#!/home/bjornl/local/bin/ruby”, Typo do not start. Instead, I get the error 500 message:

[code]Application error

Typo failed to start properly[/code]Is there any way to get Typo up using Ruby 1.8.5?


I found out that I did a typo when I used the script above. I fixed that now, including the posted script. My Typo installation seams to work, but is there any way to make sure that it really is Ruby 1.8.5 that is used and not 1.8.2 that DreamHost has installed.