Project

General

Profile

Cannot upgrade to 1.4. bundle install fails on pg

Added by Dustin Metcalf about 12 years ago

Hi everybody. I've been unable to complete upgrading Redmine from version 1.3.3 to 1.4.1. When I run rake db:migrate RAILS_ENV=production I get:

Some gems may need to be installed or updated.
Please run `bundle install --without development test`.

So I run bundle install --without development test.

Then I get this error while trying to install pg 0.13.2.

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

Why do I need pg? I have never needed it before.

My setup is Apache with MySQL. Ruby 1.8.7 installed with RVM (my native ruby is too new). I have tried everything found thus far in the forums and several hours of asking Google. How can I force pg NOT to be installed, or have it there so it will stop giving me this error. Even better would be to get a list of what gems I'm missing so I can get them installed.

Also, I cannot run RAILS_ENV=YOUR_ENVIRONMENT script/about without getting the same error.

My installed gems are as follows

*** LOCAL GEMS ***

actionmailer (2.3.14, 2.3.11)
actionpack (2.3.14, 2.3.11)
activerecord (2.3.14, 2.3.11)
activeresource (2.3.14, 2.3.11)
activesupport (2.3.14, 2.3.11)
Ascii85 (1.0.1)
bundler (1.0.21)
coderay (1.0.6)
edavis10-object_daddy (0.4.3)
fastercsv (1.5.4)
fastthread (1.0.7)
i18n (0.4.2)
json (1.6.6)
metaclass (0.0.1)
mocha (0.11.1)
mysql (2.8.1)
net-ldap (0.3.1)
nokogiri (1.5.2)
pdf-reader (1.1.0)
rack (1.1.3, 1.1.2)
rails (2.3.14, 2.3.11)
rake (0.9.2.2, 0.9.2)
redmine_client (0.0.1)
rmagick (2.13.1)
ruby-rc4 (0.1.5)
ttfunk (1.0.3)

Thank you.


Replies (2)

RE: Cannot upgrade to 1.4. bundle install fails on pg - Added by Alex A about 12 years ago

Execute

bundle install --without development test pg sqlite

or remove pg and sqlite references from redmine Gemfile

[SOLVED] RE: Cannot upgrade to 1.4. bundle install fails on pg - Added by Dustin Metcalf about 12 years ago

Thank you Alex!

I tried the bundle install again, and got the same error. I completely forgot about the Gemfile! Once I commented out the pg lines everything went perfectly!

    (1-2/2)