Friday, February 08, 2008

Setting up Sequel for Postgresql

For those people who are using postgresql with sequel, just in case if you are having an error message like the one below:
Sequel::Error::AdapterNotFound: Could not load postgres adapter:
no such file to load -- postgres
from /usr/local/lib/ruby/gems/1.8/gems/sequel_core-1.0.5/lib/sequel_core/database.rb:383:in `adapter_class'
from /usr/local/lib/ruby/gems/1.8/gems/sequel_core-1.0.5/lib/sequel_core.rb:36:in `method_missing'
This probably means that you don't have the postgres adapter installed. One quick way to fix problem is to install the postgres gem via rubygems:
% rubygems install -r postgres
That should solve the dependency requirement problem.

0 comments:

Post a Comment