Installing Ruby On Rails on ClarkConnect 4.3

After a bit of messing around, this is how I got Ruby and RoR installed on my Clark Connect server. There are some pointers on the Clark Connect Forums but I still ran in to a number of errors that I had to figure out. So I’m putting it here for my own reference and for anyone else who needs this information. Note that this installs Ruby-1.8.1.If you need something newer, you’ll need to install Ruby from scratch.

If you haven’t already done so, follow the instructions here for upgrading MySQL and PHP – Installing PHP 5 and MySQL 5 on Clark Connect. This adds an Apt resource needed by the instructions below.

apt-get install httpd-devel ruby mysqlclient14 mysql-devel
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
tar -zxvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
ruby setup.rb
gem install mysql -- --with-mysql-config=/usr/lib/mysql/mysql_config
gem install rails --include-dependencies

Posted under ClarkConnect, Ruby

This post was written by stetho on February 2, 2009

Tags: ,