Posted on Leave a comment

Time to upgrade Redmine

I use a tool called Redmine to help manage my projects. https://redmine.dougmccaughan.com/ My first task today is to upgrade it to the latest version.

Update: And here is an example of the day to day frustrations that drive a computer programming into the fields of construction and bartending…something that should take moments potential becomes hours as it evolves from a simply upgrade to a research project.

[psxxxxx]$ bundle install –without development test
Fetching gem metadata from https://rubygems.org/………
Resolving dependencies…
Installing rake (10.4.2)
Installing i18n (0.6.11)
Installing multi_json (1.11.1)
Installing activesupport (3.2.21)
Installing builder (3.0.4)
Installing activemodel (3.2.21)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Installing rack-test (0.6.3)
Installing hike (1.2.3)
Installing tilt (1.4.1)
Installing sprockets (2.2.3)
Installing actionpack (3.2.21)
Installing mime-types (1.25.1)
Installing polyglot (0.3.5)
Installing treetop (1.4.15)
Installing mail (2.5.4)
Installing actionmailer (3.2.21)
Installing arel (3.0.3)
Installing tzinfo (0.3.44)
Installing activerecord (3.2.21)
Installing activeresource (3.2.21)
Using bundler (1.2.4)
Installing coderay (1.1.0)
Using fastercsv (1.5.5)
Installing rack-ssl (1.3.4)
Installing json (1.8.3) with native extensions
Installing rdoc (3.12.2)
Installing thor (0.19.1)
Installing railties (3.2.21)
Installing jquery-rails (3.1.2)
Using mysql (2.8.1)
Using net-ldap (0.3.1)
Installing pg (0.17.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
checking for pg_config… no
No pg_config… trying anyway. If building fails, please try again with
–with-pg-config=/path/to/pg_config
checking for libpq-fe.h… no
Can’t find the ‘libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=/usr/bin/ruby1.8
–with-pg
–without-pg
–with-pg-config
–without-pg-config
–with-pg_config
–without-pg_config
–with-pg-dir
–without-pg-dir
–with-pg-include
–without-pg-include=${pg-dir}/include
–with-pg-lib
–without-pg-lib=${pg-dir}/lib

Solution (as I expected): commented out references to postgresql and sqlite in Gemfile

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.