30
尝试安装pg gem时找不到'libpq-fe.h标头
我正在使用Ruby on Rails 3.1预版本。我喜欢使用PostgreSQL,但问题是安装pggem。它给了我以下错误: $ gem install pg Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/u/.rvm/rubies/ruby-1.9.2-p0/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 …