ree snippets

Ruby Enterprise Edition symlinks

Tagged symlinks, passenger, ree, ruby  Languages bash

This will save you from playing with PATH:

sudo ln -fs /opt/ruby-enterprise-1.8.6-20090610 /opt/ruby-enterprise
sudo ln -fs /opt/ruby-enterprise/bin/gem /usr/bin/gem
sudo ln -fs /opt/ruby-enterprise/bin/irb /usr/bin/irb
sudo ln -fs /opt/ruby-enterprise/bin/rake /usr/bin/rake
sudo ln -fs /opt/ruby-enterprise/bin/rails /usr/bin/rails
sudo ln -fs /opt/ruby-enterprise/bin/ruby /usr/bin/ruby

Passsenger.conf is also simplified:

LoadModule passenger_module /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.5/ext/apache2/mod_passenger.so
PassengerRoot /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.5
PassengerRuby /opt/ruby-enterprise/bin/ruby

How to install Nginx from source, Ruby Enterprise Edition, and Phusion Passenger

Tagged ree, nginx, install, passenger  Languages bash

Ruby Enterprise Edition:

cd /usr/local/src
wget thttp://rubyforge.org/frs/download.php/66162/ruby-enterprise-1.8.7-2009.10.tar.gz
tar zxvf ruby-enterprise-1.8.7-2009.10.tar.gz
./ruby-enterprise-1.8.7-2009.10/installer

ln -fs /opt/ruby-enterprise-1.8.7-2009.10 /opt/ruby-enterprise/

Nginx:

wget -P http://sysoev.ru/nginx/nginx-0.7.63.tar.gz
tar -xzf nginx-0.7.63.tar.gz

Phusion Passenger:

gem install passenger
/opt/ruby-enterprise/bin/passenger-install-nginx-module --auto --nginx-source-dir=/tmp/nginx-0.7.63 --prefix=/opt/nginx --extra-configure-flags=--with-http_ssl_module