mrpotatohead
2005-Mar-18 03:33 UTC
postgresql connection error - LoadError in Todo#index No such file to load -- postgres
Hi - I am trying my hand at the Todo tutorial after being away from Rails for a while - Life. I have set up my Postgresql server version postgresql-7.4.6 and I installed the ruby-postgres driver / connecter for ruby and postgresql. I know that ruby (ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0]), rails (0.9.x), apache and postgresql is working standalone however Rails seems to throw this error: ++++++++++++++++++ LoadError in Todo#index No such file to load -- postgres ++++++++++++++++++ When accessing: http://localhost/todo/ This is my config file: My development: adapter: postgresql database: scuttlebug host: localhost username: pgsql password: xxxx Can anyone suggest a possible explanation for this error. MrPotatoHead -- mrpotatohead mrpotatohead-t5bj4cK1jWDbLCnOiOSPzg@public.gmane.org
mrpotatohead wrote:> I know that ruby (ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0]), rails > (0.9.x), apache and postgresql is working standalone > however Rails seems to throw this error: > > ++++++++++++++++++ > LoadError in Todo#index > No such file to load -- postgres > ++++++++++++++++++ > > When accessing: http://localhost/todo/It appears that the PostgreSQL bindings are not installed (despite your mention.) Try ''gem install postgres''. jeremy
On Thu, 17 Mar 2005, Jeremy Kemper wrote:> mrpotatohead wrote: >> I know that ruby (ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0]), rails >> (0.9.x), apache and postgresql is working standalone >> however Rails seems to throw this error: >> >> ++++++++++++++++++ >> LoadError in Todo#index >> No such file to load -- postgres >> ++++++++++++++++++ >> >> When accessing: http://localhost/todo/ > > It appears that the PostgreSQL bindings are not installed (despite your > mention.) Try ''gem install postgres''.or it is for one ruby - but not this one. did you install postgresql for 1.6.8 perhaps? -a -- ==============================================================================| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | When you do something, you should burn yourself completely, like a good | bonfire, leaving no trace of yourself. --Shunryu Suzuki ===============================================================================
On Thu, 2005-03-17 at 22:24 -0700, Ara.T.Howard wrote:> On Thu, 17 Mar 2005, Jeremy Kemper wrote: > > > mrpotatohead wrote: > >> I know that ruby (ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0]), rails > >> (0.9.x), apache and postgresql is working standalone > >> however Rails seems to throw this error: > >> > >> ++++++++++++++++++ > >> LoadError in Todo#index > >> No such file to load -- postgres > >> ++++++++++++++++++ > >> > >> When accessing: http://localhost/todo/ > > > > It appears that the PostgreSQL bindings are not installed (despite your > > mention.) Try ''gem install postgres''. > > or it is for one ruby - but not this one. did you install postgresql for > 1.6.8 perhaps? > > -aThere is also: postgres-pr (0.3.6) A pure Ruby interface to the PostgreSQL (>= 7.4) database gem install postgres-pr That''s what we''re using on our hosting boxes for our Rails customers. -Robby -- /*************************************** * Robby Russell | Owner.Developer.Geek * PLANET ARGON | www.planetargon.com * Portland, OR | robby-/Lcn8Y7Ot69QmPsQ1CNsNQ@public.gmane.org * 503.351.4730 | blog.planetargon.com * PHP, Ruby, and PostgreSQL Development * http://www.robbyonrails.com/ ****************************************/
Dick Davies
2005-Mar-18 09:45 UTC
Re: postgresql connection error - LoadError in Todo#index No such file to load -- postgres
* mrpotatohead <mrpotatohead-t5bj4cK1jWDbLCnOiOSPzg@public.gmane.org> [0334 03:34]:> Hi - I am trying my hand at the Todo tutorial after being away from > Rails for a while - Life. > > I have set up my Postgresql server version postgresql-7.4.6 and I > installed the ruby-postgres driver / connecter for ruby and postgresql. > > I know that ruby (ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0]), rails > (0.9.x), apache and postgresql is working standalone > however Rails seems to throw this error: > > ++++++++++++++++++ > LoadError in Todo#index > No such file to load -- postgres > ++++++++++++++++++You need to install a postgres library for ruby to use it. gem install postgres-pr should do it. -- ''common sense is what tells you that the world is flat.'' -- Principia Discordia Rasputin :: Jack of All Trades - Master of Nuns