Ruby on Rails with Linux Mint Debian Edition

These procedures are based on the September 2011 release of Linux Mint Debian Edition (LMDE) with the GNOME desktop environment.

Advantages of LMDE over Ubuntu

Advantages of GNOME over Xfce

Procedure

  1. Install Linux Mint Debian Edition in VirtualBox.
  2. Use the Reload button in Synaptic or the "sudo apt-get update" command to update the software repository.
  3. Use Synaptic or Apt-Get to install Git. (The package is git.)
  4. Ruby is included with LMDE, but RubyGems and Rails are not. You need to use Apt-Get or Synaptic to install packages.
  5. In the command line, enter "ruby -v" to see what version of Ruby you have installed.
  6. Enter "gem -v" to see what version of RubyGems you have installed.
  7. To switch from the default version of RubyGems to a different version, install it from source. (This isn't the only way, but it works best for me.) Go to http://rubyforge.org, search for RubyGems, and download rubygems-(version number).tgz it into your /home/(username)/Downloads directory. Open a terminal window and enter each of the following commands to install:
    cd Downloads
    tar xzf rubygems-(version number).tgz
    cd rubygems-(version number)
    sudo ruby setup.rb
  8. Enter "gem -v" to see what version of RubyGems is installed to verify that you have the desired version.
  9. To install Rails and the SQLite3 database, enter the following commands:
    sudo gem install rails
    sudo gem install sqlite3
  10. To see what version of Rails is activated, enter the command "rails -v".
  11. To list what versions of Rails are installed, enter the command "gem list --local rails".
  12. To install another version of Rails, enter "sudo gem install rails --version (version #)".
  13. To uninstall a version of Rails, enter "sudo gem uninstall rails --version (version #)".