pg gem很顽固,所以我无法在新电脑上加载我的应用程序.看起来像多个问题,无法找到pg_config,然后是extconf.rb
#psql working...
psql (9.2.1)
Type "help" for help.
nd =>
\q
$pg_config:
#adding the path to bashrc...
$nano .bashrc
PATH=/usr/pgsql-9.2/bin:$PATH
#seems to work...
pg_config: /usr/pgsql-9.2/bin/pg_config
$sudo gem install pg
#but i get the same errors...
Building native extensions. This could take a while...
.......
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/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.
有没有处理过这个问题的linux人?
最佳答案
这是通过解决的
$yum install /usr/include/libpq-fe.h
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。