quinta-feira, 3 de outubro de 2013

http://informationcardruby.com/images/RubyLogo.png

Installing Ruby on Rails on Linux

We don't officially support Linux for this class, so you will be mostly on your own if you want to use it. However, we think the following instructions may work:
  • Check to see if Ruby is already installed with the correct version by typing "ruby -v". If it prints version 1.9.3 then you can skip the next few steps.
  • Install rvm by following the instructions at https://rvm.io/rvm/install/.
  • Once rvm is installed, invoke the following shell commands, which will upgrade Ruby to 1.9.3 and make that the default version of Ruby on your machine.
    rvm install 1.9.3
    rvm use 1.9.3 --default
  • Once you are running Ruby 1.9.3, you can upgrade to Rails 3.2.13 with the following command:
    gem install rails -v 3.2.13
  • Install Sqlite3. Download the file sqlite-3.7.0.1.so and copy it to the directory containing the Ruby executable. Then use the Gem system to install the Ruby connector:
    gem install sqlite3-ruby
    This may print out several warning messages, which you can ignore.

Nenhum comentário:

Postar um comentário