Use my compiled Ruby
Posted by: bjornl
Posted on: 2006-10-18 14:21:00
Hi.
I recently compiled Ruby 1.8.5 and Rails using this script:
# setup directories
mkdir -p ~/local/usr/src/ruby
cd ~/local/usr/src/ruby
# get readline and extract
wget ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz
tar xzf readline-5.2.tar.gz
#install readline
cd readline-5.2
./configure --prefix=$HOME/local
make
make install
cd ..
# get ruby and extract
wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz
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
make install
# fix path
export PATH=$HOME/local/bin:$PATH
# get fastcgi
cd ..
wget http://fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar -xzf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure --prefix=$HOME/local
make
make install
# get rubygems and extract
cd ..
wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
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
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:
Application error
Typo failed to start properly
Is there any way to get Typo up using Ruby 1.8.5?