– rails 3.1 open source bookmarking tool

Here is my rails 3.1 learning app,

I used MySQL to store data, will_paginate gem for pagination, configatron gem for custom configuration files, mechanize gem to traverse html of the target webpage’s source file and some others.

I had some difficulties while deploying to my server. My server has CentOS 4 so that causes some problems on passenger.
I used passenger module on apache to deploy, but passenger 3.x did not work on my CentOS 4 machine so I had to install passenger 2.x.
But for some reason rails 3 did not work on passenger 2.x. So I was blocked. I upgraded my CentOS to 5 and installed passenger 3.x, and that worked!

The only gem I had problems is nokogiri gem. It isn’t installed when I try bundle install/update or gem install nokogiri. The error I get:

ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
checking for libxml/parser.h… yes
checking for libxslt/xslt.h… no
libxslt is missing. please visit for help with installing dependencies.
*** extconf.rb failed ***

installing libxml2 and libxslt by below commands also did not worked.

sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel
sudo gem install nokogiri

So I had to remove libxml2 and libxslt through yum, and then manually installing them from source. Then simple gem install nokogiri worked.

That’s it for now, now it’s time to work on a real project with rails 3.1 and maybe mongodb..


Tags: , , ,


No comments so far.

  • Leave a Reply
    Your gravatar
    Your Name