Install Ruby On Rails and Django on Fedora

Some notes about installing ruby on rails and django on fedora 11.

To install ROR on Fedora:

yum install mysql
yum install mysql-devel
yum install ruby
yum install rubygems
gem install rails
gem install mysql

Later, I found the gem installed by yum is 1.3.1, which is lower than required by rake. So I downloaded rubygems-1.3.5.tgz from http://rubyforge.org/frs/?group_id=126, and installed it by

> ruby setup.rb

To test the installation of mysql, write a ruby script with

require "mysql"

But I got this error,

mysqltestst.rb:1:in `require': no such file to load -- mysql (LoadError)

To fix it, add environment variable RUBYOPT=rubygems

Another way is as follows

require "rubygems"
require "mysql"

To install Django on Fedora:

yum install Django
yum install MySQL-python.i586

Comments are closed.