【发布时间】:2015-06-13 15:07:09
【问题描述】:
我正在学习在 Windows 8.1 上使用 ruby on rails。当我不得不安装 pg(postgres) gem 时我被卡住了。具体来说,这是错误:
错误:安装 pg 时出错:
Error: failed to build gem natve extension
C:/Rails Installer/Ruby2.1.0/bin/ruby.exe extconf.rb
checking for pg_config... no
No pg_confg... trying anyway. If build 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.
我被卡住了,任何建议都会有所帮助。谢谢
【问题讨论】:
-
你试过重新安装pg吗?
-
我试过了,但我仍然遇到同样的问题...请帮助
标签: ruby-on-rails windows postgresql gem pg