Sunday, April 09, 2006

Ruby... I shall smite thee!

What better way to reuse an old computer than to install linux on it and learn ruby. Well, jaikoo suggested installing Ubuntu Linux because it would be the easiest way to install Ruby on Rails. What he failed to mention is that my stool samples have better documentation than Ubuntu.

My first troubles started before I even started installing Ubuntu. The old pc has 2 hard drives in it. After doing some maintenance of moving all the stuff (read crap) I wanted to keep to the second drive I prompting disconnected it to make sure I don't have any accidents. BANG. The system would no longer boot from the drive with the OS installed. I had to reconnect the 2nd drive to get it to boot. Weird shit.

Ubuntu. BANG. There are 2 CD images available for it. A standard one and a live one. Now for some weird reason I could find nowhere on their web site the difference between the two. Fortunately it installs easy.

Ruby. BANG. There are only binaries for Windows and Macs. It would seem the source code will have to smell okay. BANG. Ubuntu does NOT install with a compiler but easily fixed. Ruby Gems. BANG. Missing zlib errors. Google is your friend. zlib fixed.

Continue following the rest of an installation tutorial. How hard can it be to cut and paste? BANG. Still at the end of it I did not have a working demo web application. I had errors. Log files are helpful. Read them. It turns out that the permissions on a directory needed changing and its all happy now. Why that couldn't have been mentioned in the tutorial I don't know. And why did it work for the countless millions before me I don't know either.

Ruby. I smite thee!

Apparently the tutorial should only take 20minutes. My time - ~5 hours. Still with it working I can now learn Ruby in the off moments when I'm not doing Java.

In the UK Ruby programmers are scarce. And that scarcity makes them a highly prized commodity. There just isn't enough of them to go around. I don't think Australia is there yet for Ruby jobs but hopefully it will be in by the time I'm good at it!!! Jaikoo.. when you coming down under again?

Technorati Tags: , , ,

1 comment:

Anonymous said...

Hehehe thats why I use a Mac mate. Unix and usability:)

Hopefully I'll be able to swing by Oz early next year. Ain't no way I'm staying in the UK for winter!! Damn polar bears!!!