Getting Ruby and Rails
To use Ruby, you must have a Ruby interpreter, and it helps to have an IDE. To use Rails, you need the Rails server package.
Ruby
Ruby is included in practically every Ruby IDE and tool you can find, so you may end up with several installed copies of it. This shouldn't be a problem (it's pretty small), but there's little point in downloading it separately. You can download Ruby here:
- For Windows: One-click installer.
- For Macintosh: If you have OS X, you have Ruby. If you don't have OS X, get it.
- For Linux:
- Note: The following was tested on a `SuSE 9.3 box. While the results may be similar for other flavors, there are no guarantees
- There are (at least) two ways to go about installing Ruby
- Using `YaST:
- Search for Ruby in the upper-left hand search panel
- Select the appropriate packages for Ruby (eg. debugging info is a seperate package). You may have to confirm that the version # is the one you want(probably 1.8.2 or higher).
- Click the Install button
- Using `YaST:
-
-
- From the command prompt:
- Download Ruby (one place is: htp://www.ruby-lang.org/en)
- Untar ruby (eg. > tar -xvf ruby-1.8.4.tar.gz)
- Build from source (example follows)
- > ./configure
- > make
- > make install
- From the command prompt:
- PLEASE NOTE: Regardless the installation method, be sure to apply patches after installation- a denial of service vulnerability was discovered after installing certain versions of Ruby on `SuSE, and I can only imagine that other flavors have had similar issues.
-
Rails
Windows: Instant Rails includes Ruby, Rails, Apache, `MySQL. I thought it also included `FreeRIDE, but that may be wrong.
Mac OS X:
- Here's an Apple tutorial. It doesn't use Locomotive.
- Locomotive This is a single install, similar to FreeRIDE. \\
Here are my experiences with it.