The official Ruby on Rails documentation has a good guide on how to install Ruby on Rails. I still had some problems setting everything up, so here I will describe how I installed Ruby on Rails on Linux (LMDE).
Installing Ruby on Linux
Before installing Ruby on Rails we need to install Ruby as well as Ruby Gems and sqlite:
Installing Ruby on Rails on Linux
-V because otherwise you will get no direct feedback. Downloading and installing Ruby on Rails takes a lot of time, so without verbose output it looks like the install of ruby on rails stopped.
If the installation hangs at this step:
rdoc --op /var/lib/gems/1.9.1/doc/rails-4.1.0/rdoc lib --title rails-4.1.0 Documentation --quiet
Try to install Ruby on Rails without documentation:
Installing Ruby on Rails on LMDE (Linux Mint Debian Edition)
On LMDE, the above steps did not work for me, I got the following error message:
ERROR: Failed to build gem native extension.
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
This could be fixed by installing the following package before installing Ruby on Rails:
Installing additional dependencies for Ruby on Rails
execjs depends on nodejs, so go ahead and install that as well:
Creating a new Rails Project and starting the Server
Now you can go ahead and check if everything works: