Project

General

Profile

Upgrade from 2.2 to 2.3: --without postgresql not working

Added by marco deluca over 11 years ago

I'm getting this error when running bundle install --without postgresql development test:

An error occurred while installing pg (0.15.1), and Bundler cannot continue

@Your PostgreSQL is too old. Either install an older version of this gem or upgrade your database.
  • extconf.rb failed ***@

Usually the upgrade process and bundle install --without postresql made things go smoothly up until now. Any ideas why this is happening? Is there something else I need to add in the --without statement?


Replies (2)

RE: Upgrade from 2.2 to 2.3: --without postgresql not working - Added by marco deluca over 11 years ago

Ah okay I got it. I had the following in my database.yml file:

test_pgsql:
adapter: postgresql
database: redmine_test
host: localhost
username: postgres
password: "postgres"

However, this did not cause a failure in previous versions. --without postgresql worked and bundle install went fine. This time I had to remove that from the database.yml file.

RE: Upgrade from 2.2 to 2.3: --without postgresql not working - Added by Adrien Crivelli about 11 years ago

Same here, upgrading from 2.2 to 2.3 gave me error. It first asked me to do "bundle install", which itself asked me to "bundle update rails" which could not build "pg" gem. Using "bundle update rails --without development test postgresql" is not a valid command, and "bundle install --without development test postgresql" does not help either.

It's only after removing all postgresql configuration from database.yml that I could succesfully install and update. So thanks to Marco for the hint :)

    (1-2/2)