Installing Ruby and Rails on Linux / Unix / *nix

Your linux / *bsd distribution should have packages for ruby and hopefully the DBI and DBD driver modules. If not, you'll have to build it from source yourself.

For example:

zsh, pizza  4:23PM C/ % curl -O ''
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 4211k  100 4211k    0     0  32597      0  0:02:12  0:02:12 --:--:-- 19829
zsh, pizza  4:26PM C/ % tar xvpfz ruby-1.8.4.tar.gz 
zsh, pizza  4:27PM C/ % cd ruby-1.8.4 
zsh, pizza  4:27PM ruby-1.8.4/ % ./configure --prefix=/usr/local/ruby 
checking build system type... powerpc-apple-darwin8.6.0
checking host system type... powerpc-apple-darwin8.6.0
checking target system type... powerpc-apple-darwin8.6.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
configure: creating ./config.status
config.status: creating Makefile
zsh, pizza  4:29PM ruby-1.8.4/ % make
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.  -c array.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.  -c bignum.c
cc -dynamic -bundle -undefined suppress -flat_namespace  \
-L"../.." -o ../../.ext/powerpc-darwin8.6.0/zlib.bundle zlib.o  -lz  -ldl \
making ruby
./ext/extmk.rb:483: warning: Insecure world writable dir /Volumes, mode 041777
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT   -L.   main.o  -lruby-static \
-ldl -lobjc   -o ruby

zsh, pizza  4:43PM ruby-1.8.4/ % sudo make install
./miniruby ./instruby.rb --dest-dir="" --make="make" --mflags="" --make-flags="" --mantype="doc"
mkdir -p -m 755 /usr/local/ruby/bin /usr/local/ruby/lib \
 /usr/local/ruby/lib/ruby/1.8 \
 /usr/local/ruby/lib/ruby/1.8/powerpc-darwin8.6.0 \
 /usr/local/ruby/lib/ruby/site_ruby/1.8 \
install -c -p -m 0755 ruby /usr/local/ruby/bin/ruby
install -c -p -m 0644 libruby-static.a /usr/local/ruby/lib
ODBC-Rails and the ODBC-Rails website are Copyright (C) OpenLink Software 2006-2008