TvE 2100

At 2100 feet above Santa Barbara

Installing Ruby on Rails on a Rimuhosting Fedora Core Machine

Here I go for my second Ruby on Rails install. This time it’s on a “virtual private server” at “Rimuhosting”://

Installing a whole bunch of ruby stuff:

@yum install ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-devel ruby-docs@

Installing gems (check for latest version on “RubyForge”://

tar zxvf rubygems-0.9.0.tgz
cd rubygems-0.9.0
ruby setup.rb

I installed rails:

@gem install rails –include-dependencies@

Now mySQL, which was installed but needed a bit of config:

chkconfig --add mysqld
chkconfig --level 3 mysqld on
/etc/init.d/mysqld start
/usr/bin/mysqladmin -u root password 'somethingsmart'
/usr/bin/mysqladmin -u root -h password 'somethingsmart'

Now we’re ready for the ruby mysql interface. First install the mysql-devel package (Rimu uses apt on FC5, not yum):

@apt-get install mysql-client@

and then the ruby interface itself:

@gem install mysql – –with-mysql-dir=/usr/lib/mysql –with-mysql-config=/usr/bin/mysql_config@

Now we’re ready for mongrel!

@gem install mongrel@

did it’s job without complaining. What a relief!