Install rails - Ubuntu Intrepid Ibex (8.10)

  1. Preliminary setup
    sudo apt-get update
    sudo apt-get dist-upgrade
    sudo apt-get install build-essential
    sudo apt-get install mysql-server mysql-client libmysqlclient15-dev
    sudo apt-get install subversion subversion-tools git-core
    sudo apt-get install lynx
  2. Install Ruby
    sudo apt-get install libopenssl-ruby ruby irb ri rdoc ruby1.8 libyaml-ruby libzlib-ruby ruby1.8-dev
  3. Install RubyGems
    cd /usr/local/src
    • Find the download link for the latest release and download it ('D') and save it to the directory you are in (just hit 'enter' when it asks where to save)
      sudo lynx http://rubyforge.org/projects/rubygems/
      tar xzvf rubygems-1.3.1.tgz
      cd rubygems-1.3.1
      sudo ruby setup.rb
      sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
      sudo gem update --system
  1. Install Rails and friends
    
    sudo gem install rails
    sudo gem install rails --version 1.2.6
    sudo gem install mysql
    sudo gem install capistrano
    sudo gem install mongrel
  2. Install Deprec from source
    mkdir -p ~/src
    cd ~/src
    git clone git://github.com/mbailey/deprec.git
    cd deprec
    gem build deprec.gemspec
    sudo gem install deprec-1.99.30.gem
    cd ..
    
  3. Install eclipse
    • Install your favourite Java runtime (e.g. "sudo apt-get install sun-java6-jre sun-java6-jdk")
    • Install Ecplise "sudo apt-get install eclipse"
  4. Download aptana plugin
    mkdir -p ~/src
    cd ~/src
    wget http://update.aptana.com/install/studio/3.2/aptana_update_020137.zip
  5. Install aptana plugin
    1. startup the ecplise IDE
    2. Open Eclipse, go to Help -> Software Updates -> Find and Install
    3. Search for new features to install -> Next -> New Archived Site -> Select the file saved in step 1 at ~/src/aptana_update_020137.zip
    4. Select the entry for the plugin's update site -> Finish
    5. Select the appropriate plugins to install -> Next -> Accept -> Next
    6. Finish
  6. then the Eclipse IDE restarts
  7. install subclipse plugin which aptana depends on (it will prompt you automatically to do this)
  8. then the Eclipse IDE restarts... again
  9. Download radrails plugin
    mkdir -p ~/src
    cd ~/src
    wget http://update.aptana.com/update/rails/3.2/org.radrails.rails_feature-1.0.3.200807071913NGT.zip
  10. Install radrails plugin
    1. startup the ecplise IDE
    2. Open Eclipse, go to Help -> Software Updates -> Find and Install
    3. Search for new features to install -> Next -> New Archived Site -> Select the file saved in step 1 at ~/src/org.radrails.rails_feature-1.0.3.200807071913NGT.zip
    4. Select the entry for the plugin's update site -> Finish
    5. Select the appropriate plugins to install -> Next -> Accept -> Next
    6. Finish
  11. then the Eclipse IDE restarts
  12. You are done. Go drink some milk.

Also available in: HTML TXT