Install - Please install the postgresql adapter

Added by Mathieu Villemont over 7 years ago

Hello,

I'm stuck at step 6 - Database schema objects creation.

When I do :

set RAILS_ENV=production
rake db:migrate

I get the following :

Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.)

However when I do gem list I can see that activerecord-postgresql-adapter and pg are here :

activerecord-postgresql-adapter (0.0.1)
...
pg (0.15.1 x64-mingw32)

In my Gemfile I have the following lines :

when /postgresql/
        gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
        gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby

Do you have any idea what could go wrong ??

I'm using Redmine 2.3.1, Ruby 2.0.0 and PostgreSQL 9.2.4 on Windows 2008R2 x64.

Thank you!

Replies (1)

RE: Install - Please install the postgresql adapter - Added by Michael Jahn almost 7 years ago

Create a new file "Gemfile.local" in the root directory of your redmine installation.
Add the following lines to the file:

# Gemfile.local
gem 'activerecord-postgresql-adapter'

(1-1/1)