Rajinder Yadav wrote in post #1028746: > On 11-10-26 11:38 AM, Frdric Champreux wrote: >> database: testdb >> Thanks for help ! >> >> Fred >> > > You will need to locate where pg_config is installed, if you are on > linux then you can type: > > $ which pg_config > /usr/local/pgsql/bin/pg_config > > Plug that into gem install command like this: > > sudo gem install pg -- --with-pg-config=/usr/local/pgsql/bin/pg_config > > Also in your database.yml, you should also add (for local development) > > host: localhost > > > -- > Kind Regards, > Rajinder Yadav | http://DevMentor.org | Do Good! ~ Share Freely
Well, thanks for your help ! Indeed, I had to install libpq-dev, locate pg_config, and then the pg gem. It's my first try with PostgreSQL, and I not sure to understand why the postgre-pr gem was not sufficient ? But it works fine now ! Thanks for your help ! Best regards, Fred -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

