相关疑难解决方法(0)

无法安装pg gem

我尝试使用,gem install pg但它似乎没有用.

gem install pg 给出了这个错误

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing pg:
        ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe 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. …
Run Code Online (Sandbox Code Playgroud)

ruby installation rubygems ruby-on-rails

209
推荐指数
10
解决办法
13万
查看次数

标签 统计

installation ×1

ruby ×1

ruby-on-rails ×1

rubygems ×1