我正在学习在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? –
我试过,但我仍然遇到同样的问题...请帮助 –