linux - My project Ruby On Rails cannot install gem postgre in CentOS 6.2 -
linux - My project Ruby On Rails cannot install gem postgre in CentOS 6.2 -
although many sources of references stackoverflow problem has not been resolved. when run project (projectjapanfull_new) on window server no problem, when switched centos server 6.2 error, namely:
[root@links02 projectjapanfull_new]# rails -v have requested: pg >= 0 bundle has pg locked @ 0.17.0. seek running `bundle update pg` run `bundle install` install missing gems.
then run: bundle install
error show:
gem::ext::builderror: error: failed build gem native extension. /usr/local/rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb checking pg_config... no no pg_config... trying anyway. if building fails, please seek 1 time again --with-pg-config=/path/to/pg_config checking libpq-fe.h... no can't find 'libpq-fe.h header *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. 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/rvm/rubies/ruby-1.9.3-p547/bin/ruby --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 extconf failed, exit code 1 gem files remain installed in /usr/local/rvm/gems/ruby-1.9.3-p547/gems/pg-0.17.0 inspection. results logged /usr/local/rvm/gems/ruby-1.9.3-p547/extensions/x86_64-linux/1.9.1/pg-0.17.0/gem_make.out error occurred while installing pg (0.17.0), , bundler cannot continue. create sure `gem install pg -v '0.17.0'` succeeds before bundling.
when run gem install pg -v '0.17.0'
show error:
[root@links02 projectjapanfull_new]# gem install pg -v '0.17.0' building native extensions. take while... error: error installing pg: error: failed build gem native extension. /usr/local/rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb checking pg_config... no no pg_config... trying anyway. if building fails, please seek 1 time again --with-pg-config=/path/to/pg_config checking libpq-fe.h... no can't find 'libpq-fe.h header *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. 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/rvm/rubies/ruby-1.9.3-p547/bin/ruby --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 extconf failed, exit code 1 gem files remain installed in /usr/local/rvm/gems/ruby-1.9.3-p547/gems/pg-0.17.0 inspection. results logged /usr/local/rvm/gems/ruby-1.9.3-p547/extensions/x86_64-linux/1.9.1/pg-0.17.0/gem_make.out
ruby-on-rails linux postgresql centos
Comments
Post a Comment