• About
  • References
    • Mathematical Identities
    • Programming
    • Data Mining, etc.

The Art of Software

The Art of Software

Tag Archives: ubuntu

Enter Ruby on Rails

13 Tuesday Sep 2011

Posted by craig in Notes

≈ Leave a comment

Tags

rails, ruby, ubuntu

My environment consists of a desktop computer running Windows 7.

To get Ruby on Rails going I did the following.

Downloaded and installed Virtual Box.

Created a virtual machine with xubuntu.

The packages curl and git are needed to install rvm (Ruby Version Manager).

You can then follow the instructions for installing rvm, but before building Ruby make sure that the packages zlib1g-dev and libssl-dev are installed. If you don’t have this stuff installed before building Ruby, then Ruby is not built with support to run gems or rails.

Later down the road Rails will need node.js.

AFAIK there may be more packages which I should have installed. WTFK?

Anyway, it’s probably best to do all of the installations with synaptic (or apt) before starting with rvm at all.

For rvm we run:

$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
$ rvm install 1.9.2

Let’s also make 1.9.2 our default.

$ rvm default 1.9.2

It’s probably also best to read the rvm basics guide.

Now we can install rails.

gem install rails

Finally, we can restart the VM and map a port from our host to the port rails will run on so that we can hit our new web application from Windows land if desired. You don’t have to use VBoxManage for this. Virtual Box has a GUI for setting up port forwarding: Settings->Network->Advanced->Port Forwarding.

Having the port mapping will be good for testing IE compatibility at some point.

Advertisements
  • RSS - Posts
  • RSS - Comments

Categories

  • Code Snippets
  • Data Analysis
  • Data Structures
  • Exercises
  • Math
  • Navel Gazing
  • Notes
  • Software Engineering
  • Tools

Twitter Updates

  • The Charlottesville Fake News Was the Best Persuasion Play of the Past Year by Scott Adams blog.dilbert.com/2018/02/14/cha… via @ScottAdamsSays 2 months ago
Follow @kungfucraig
Advertisements

Create a free website or blog at WordPress.com.