This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Troubleshooting and Solutions [Dec. 4, 2011, 7:47 a.m.]


This task is where we share our problems and solutions throughout this course. It will be our reference point in case any of us get stuck on a process. Please feel free to add by asking and/or telling of a problem/solution.

 

1) Installation Problems using http://rubyonrails.org/download

I've started off using these steps to get up and running with ruby on rails and fumbled into a problem back then. There is supposively a better, easier one click away type Windows installation at http://railsinstaller.org.

Wished I had this when I started off ... But, I must say that I learned a bit more of what it takes to get the program going using the other older fashion way ;)

2) MAC Installation by Tangram (THANK YOU - Tangram!)

Here's a good article for installing on Mac OSX:  http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/   It's written for Snow Leopard, but the process should be the same for Lion.

OSX comes with Ruby installed at /usr/bin/ruby .  You'll need to install gem and rails. 

 

You can confirm where things were installed by running Terminal.app and typing 

  which ruby

  which gem

  which rails

 

These will most likely be installed in /usr/bin .  This directory has to be included in your PATH variable, which the HiveLogic article describes how to do.  The article says to include /usr/local/bin and /usr/local/sbin .  Include the directory(s) that  ruby, rails, and gem  are installed in. 

 

You can find out what versions are installed by typing

ruby -v

gem -v

rails -v