Project

General

Profile

Actions

Defect #11372

closed

can not use 'bundle intall' installing the necessary gems

Added by 敏 李 about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

systems:CentOS5.6*64
test test
----------------
these were successfully installed

REDMINE 2.0.3 /opt/redmine
ruby 1.9.2 /usr/local/ruby
rubygems 1.6.2
rails:3.2.6(gem install rails v=3.2.6)
bundle :1.4.2
yum install gcc gcc-c++
yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel
----------------------------------------------------

then i use this command to Install the provided dependencies
cd /opt/redmine
bundle install
it ended with this error of this meanings
pg was not installed on this computer
then i use gem to install the pg
gem install pg -v=0.4.0
but it could not installed

please help me

Actions #1

Updated by 敏 李 about 12 years ago

use the command under the redmine catalog : 'bundle install'
Installing pg (0.14.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/local/ruby/bin/ruby 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/local/ruby/bin/ruby
--with-pg
--without-pg
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config

Gem files will remain installed in /usr/local/ruby/lib/ruby/gems/1.8/gems/pg-0.14.0 for inspection.
Results logged to /usr/local/ruby/lib/ruby/gems/1.8/gems/pg-0.14.0/ext/gem_make.out
An error occured while installing pg (0.14.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.14.0'` succeeds before bundling.

PG cannot intsall

Actions #2

Updated by Etienne Massip about 12 years ago

This is an installation issue, not a Redmine bug, please post in Help forum.

Actions #3

Updated by Etienne Massip about 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid
Actions

Also available in: Atom PDF