# Cant install psql adapter for rails 2.0

**URL:** <https://www.ruby-forum.com/t/cant-install-psql-adapter-for-rails-2-0/126036>\
**Category:** Rails\
**Created:** [January 14, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/cant-install-psql-adapter-for-rails-2-0/126036 "2008-01-14T22:54:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![inriz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/50afbb/32.png) [@inriz](https://www.ruby-forum.com/u/inriz)\
**Post date:** [January 14, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/cant-install-psql-adapter-for-rails-2-0/126036/1 "2008-01-14T22:54:04Z")

</div>

hello list,

i set up a new rails instance with the new rails 2.0 lib.  
i installed rails 2.0 over my earlier version of rails where is add  
postgres support  
via gem install postgres

so the error with postgres appears if i set up the database with rake  
db:create:all  
the following message appears:

rake aborted!  
Please install the psql adapter: `gem install activerecord-psql- adapter` (no such file to load – active\_record/connection\_adapters/  
psql\_adapter)

(See full trace by running task with --trace)

i execute the command to install the adapter but there is also an  
error like this:

Updating metadata for 26 gems from [http://gems.rubyforge.org](http://gems.rubyforge.org)  
…  
complete  
ERROR: could not find activerecord-psql-adapter locally or in a  
repository

i asked google for results of this behavior but it seams to be that my  
error is only my own 😉

has anybody a solution for that`?

many thanks to you

---

<div class="post-metadata">

**Author:** ![inriz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/50afbb/32.png) [@inriz](https://www.ruby-forum.com/u/inriz)\
**Post date:** [January 14, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/cant-install-psql-adapter-for-rails-2-0/126036/2 "2008-01-14T23:05:12Z")

</div>

On Mon, Jan 14, 2008 at 01:53:14PM -0800, inriz wrote:  
[…]

> rake aborted!  
> Please install the psql adapter: `gem install activerecord-psql- adapter` (no such file to load – active\_record/connection\_adapters/  
> psql\_adapter)  
> […]  
> i asked google for results of this behavior but it seams to be that my  
> error is only my own 😉
> 
> has anybody a solution for that`?

The issue isn’t with a missing gem, it is with incorrect database.yml  
configuration. You need postgresql as the adapter, not psql.

> many thanks to you  
> –Greg

---

<div class="post-metadata">

**Author:** ![inriz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/50afbb/32.png) [@inriz](https://www.ruby-forum.com/u/inriz)\
**Post date:** [January 15, 2008, 9:42am UTC](https://www.ruby-forum.com/t/cant-install-psql-adapter-for-rails-2-0/126036/3 "2008-01-15T09:42:31Z")

</div>

I think the postgresql adapter is built in, you don’t need to install  
the gem. My database.yml has:

development:  
adapter: postgresql  
database: project\_development  
username: project  
password: whatever  
encoding: UTF8

f
