Ruby and Rails

For the OldCoder wiki index click here
Click here for the main OldCoder website

This document contains some notes related to experiments with Ruby and Rails.

Building Ruby

I started (August 2012) by updating my distro's copy of Ruby to release 1.9.3-p194 which was available at the time from:

ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2

I assumed the following actual or possible dependencies: actools, db, gawk, gdbm, grep, libedit, ncurses, openssl, readline, sed, tcltk, zlib

A standard configure-make procedure was sufficient to build Ruby. I used something similar to this:

PREFIX=/opt/ruby
LIBDIR=$PREFIX/lib
MANBASE=$PREFIX/man
PCGDIR=$LIBDIR/pkgconfig

mkdir -p $MANBASE $PCGDIR
sh ./configure --prefix=$PREFIX --enable-shared --host=i686-pc-linux --mandir=$MANBASE
make && make install

Installing Rails

I installed Rails as follows:

gem install rails --no-ri --no-rdoc
rails --version

The --no-ri --no-rdoc part seemed to be needed due to internal inconsistencies. These switches apparently suppressed some documentation.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License