Monday 22 October 2012

Ruby Enterprise Installation


Get link to latest REE
At the time of writing i had  ruby-enterprise-1.8.7-2012.02.

Get tar file link
http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2012.02.tar.gz

$wget http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2012.02.tar.gz

tar -xzf ruby-enterprise-1.8.7-2012.02.tar.gz

Install

cd ruby-enterprise-1.8.7-2012.02

Install
sudo ./installer

If you come across any error,then make following changes


->Open source/distro/google-perftools-1.7/src/tcmalloc.cc in your favorite editor and g to line 1672.
You will see this:
        void *(*__memalign_hook)(size_t, size_t, const void *) = MemalignOverride;
However this should look like this:
        void *(* volatile __memalign_hook)(size_t, size_t, const void *) = MemalignOverride;
Save and close the file.

sudo ./installer


Add to your path variable

Ruby Enterprise Edition installation, modification of PATH variable for all users:
echo "export PATH=\$PATH:/opt/ruby-enterprise-1.8.7-2012.02/bin" > /etc/profile.d/ruby-ee-path.sh

export PATH=$PATH:/opt/ruby-enterprise-1.8.7-2012.02/bin



Install openssl


  sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
sudo apt-get install libssl0.9.8



Install Rails

gem install rails -v 3.0