Launching RefineryCMS on Ubuntu 8.04LTS
I needed a small website for my wife and so I've wondered out to find a tool for the task that would be written in Ruby.
First I've tried to launch Radiant, but had some incompatibilities with library extension and dropped that after 2-3 hours of struggle. Then I've remembered there was another promising Ruby CMS that is RefineryCMS.
It depends on Rmagick and it has rmagick version 2.12.2 in it's Gemfile... which turned out to be the source of a lot of pain as my production server is old and runs on 8.04 LTS Ubuntu. I was running rmagick 2.13.1 on the server with no trouble... but 2.12.2 refused to install saying that:
Can't install RMagick 2.12.2. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.
I've strugled with that for 4-5 hours reinstalled two different versions of Image Magick and then it hit me... In the Refinery Gemfile there's a comment above rmagick line that says:
# Specify a version of RMagick that works in your environment:
So it does not care about exact version... after that I've changed to 2.13.1 and it finally WORKED! That was a relief...
But that was not over .. as far as I've translated most of the Refinery to Lithuanian I've had to use git versions of gems and so after deployment I hit:
Please run `bundle install` (Bundler::GitError)
It turns out the only way to cure it is to use bundle install --deployment and to add .bundle/config to git, because in it there's a path to gems so that passenger knows where to look for them. Otherwise gems installed from git are put into different directory and passenger has a hard time finding them.
The resulting website is myliufoto.lt