我正在學習在windows 8.1上的rails上使用ruby。當我必須安裝pg(postgres)gem時,我卡住了。具體而言,這是錯誤:在windows上的導軌上安裝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? –
我試過,但我仍然遇到同樣的問題...請幫助 –