Getting RubyWorks on Ubuntu 7.04

No Gravatar

Yesterday I wrote a post about getting rubyworks running on 7.10. Today I am going to run through the steps of getting it working on 7.04 (Feisty Fawn).

1. Install 7.04 with LAMP server ticked, this will amongst other things, get mysql server running.
N.B. do not call your user rails as rubyworks uses this user.

2. Reboot, and edit the /etc/apt/sources.list file. Remove the following line:
deb cdrom:[Ubuntu-Server 7.04 _Feisty Fawn_ - Release i386 (20070415)]/ feisty main restricted
This will stop apt-get installing packages from the cdrom, and look on the internet instead.

3. Now run sudo apt-get update to get the updated list of packages

4. Install openssh server so you can continue the rest of this guide remotely (from another computer) by typing: sudo apt-get install openssh-server

5. Find out the IP address of your server by typing ifconfig. If your connection is via ethernet, your ip address will probably be in the eth0 settings.

6. Go to your other computer and open up a terminal window (in windows download putty, on mac osx go to utilities, terminal in your finder. Connect to your ubuntu box by typing: ssh username_i_chose_on_ubuntu_install@my_ip_address_of_ubuntu_box

7. You are now ready to install rubyworks. Follow the guide here: http://rubyworks.rubyforge.org/installation/ubuntu.html
NB if you get an error on install of the type:

A package failed to install. Trying to recover:
Setting up rubyworks (1.0.0) …
Checking installation …
ls /etc/rails
haproxy.conf mongrel_3003.config mongrel_3005.config monit.pem
mongrel_3002.config mongrel_3004.config monit.conf
/usr/lib/ruby/1.8/fileutils.rb:1184:in `stat’: No such file or directory - /tmp/sources.rb (Errno::ENOENT)
from /usr/lib/ruby/1.8/fileutils.rb:1184:in `lstat’
from /usr/lib/ruby/1.8/fileutils.rb:1162:in `stat’
from /usr/lib/ruby/1.8/fileutils.rb:1244:in `copy_file’
from /usr/lib/ruby/1.8/fileutils.rb:459:in `copy_file’
from /usr/lib/ruby/1.8/fileutils.rb:383:in `cp’
from /usr/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest’
from /usr/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest0′
from /usr/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest’
from /usr/lib/ruby/1.8/fileutils.rb:382:in `cp’
from /var/lib/dpkg/info/rubyworks.postinst:18
dpkg: error processing rubyworks (–configure):

type: sudo touch /tmp/sources.rb, and then run sudo aptitude install rubyworks again!

Thats your rubyworks stack running.

Next post wil be how to get capistrano deployments working on the stack.

Tags: , ,

Leave a Reply

You must be logged in to post a comment.


nogeek.org is Digg proof thanks to caching by WP Super Cache!