NOTE: This Installation works, but obviously it is still buggy.
When I tried to migrate an application I had several issues and finally an internal server error. I finally used the
basic installation
then. Use it also as template for this installation, but follow my instructions here.
1. Consider to install Paco before.
2. Install Ruby
for the latest stable version
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz
./configure make paco -lp ruby-1-9-1 'make install'
ruby -v => ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
3. Ruby 1.9.1 comes with rubygems, so ignore installing rubygems
gem -v =>1.3.1
4. Install Rails (this will take a while)
gem install rails =>Successfully installed rake-0.8.7 Successfully installed activesupport-2.3.4 Successfully installed activerecord-2.3.4 Successfully installed rack-1.0.0 Successfully installed actionpack-2.3.4 Successfully installed actionmailer-2.3.4 Successfully installed activeresource-2.3.4 Successfully installed rails-2.3.4 8 gems installed Installing ri documentation for rake-0.8.7... Installing ri documentation for activesupport-2.3.4... Installing ri documentation for activerecord-2.3.4... Installing ri documentation for rack-1.0.0... Installing ri documentation for actionpack-2.3.4... Installing ri documentation for actionmailer-2.3.4... Installing ri documentation for activeresource-2.3.4... Updating class cache with 1382 classes... Installing RDoc documentation for rake-0.8.7... Installing RDoc documentation for activesupport-2.3.4... Installing RDoc documentation for activerecord-2.3.4... Installing RDoc documentation for rack-1.0.0... Installing RDoc documentation for actionpack-2.3.4... Installing RDoc documentation for actionmailer-2.3.4... Installing RDoc documentation for activeresource-2.3.4...
5. My specialty: Install will-paginate: http://wiki.github.com/mislav/will_paginate/installation
6. Install mysql connector
apt-get install libmysql-ruby apt-get install libmysqlclient15-dev gem install mysql
7. Update system
gem update --system
8. Make a test app
rails TestApp -d mysql
Migrating an existing app made problems, here are some hints:
rake rails:update:application_controller rake tmp:clear # encoding: utf-8http://github.com/rack/rack/commit/44ed4640f077504a49b7f1cabf8d6ad7a13f6441
gem uninstall rails
If paco is used
paco -r <your ruby package name>