Monday, December 12, 2011

Normal joke

I was considering going out with Mrs. Normal's daughter, Abigail, until I discovered she was Abby Normal.

Friday, December 9, 2011

Ruby on Rails with Ubuntu

Ubuntu wants to make it to the masses, but even a developer has trouble building the developer tools.

I am talking about Ruby on Rails. First off, the Ruby included in Ubuntu is jruby. The real ruby needs to be installed. That is fairly easy with an apt-get.

Then, to install sqlite3, the libraries are installed, but not the development package. That needs to be done.

gems has to be installed which can also be done with apt-get
But, the gemspec files are wrong (bad date format) and this causes a bunch of errors pointing at "tilt-1.3.3 not found" (but it is there.)

We "gem install rails". That works.

Once everything is ready to run, then rails complains that there is no javascript runtime.

But that is not the only thing. node.js is the javascript runtime, but it won't compile unless it has openssl. Openssl is there, but not the development package.

So, now that the gemspec files are fixed, the openssl dev, sqlite3 dev, gems, ruby are installed, we can finally run rails.

Whew!

Thursday, December 8, 2011