怪事年年有 今年特别多 pg的安装在我的gem安装诡异榜上,也能挤进前三了
先是报错
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/star/.rvm/rubies/ruby-1.9.3-p194/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
–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=/home/star/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
–with-pg
–without-pg
–with-pg-dir
–without-pg-dir
–with-pg-include
–without-pg-include=${pg-dir}/include

在尝试安装PostgreSQL(简称pg)时遇到了不寻常的问题,首先出现错误提示可能由于缺失相关gem包导致。进行手动补充gem包后,安装过程仍然报错。
最低0.47元/天 解锁文章
1626

被折叠的 条评论
为什么被折叠?



