【发布时间】:2020-01-11 02:25:16
【问题描述】:
283
65 我正在尝试为 Ruby 安装 PostgreSQL 的 pg gem。
我发出以下命令:
gem install pg
I installed Ruby 1.9.2 using RVM.
The above command shows me the following error.
The error is :
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/home/User/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby extconf.rb
checking for pg_config... yes
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for PQconnectdb() in -lpq... no
checking for PQconnectdb() in -llibpq... no
checking for PQconnectdb() in -lms/libpq... no
Can't find the PostgreSQL client library (libpq)
*** extconf.rb failed ***
等等……
有人为 Ubuntu 用户提供了解决方案。 那么 OpenSUSE Linux 呢?
感谢您的提前。
【问题讨论】:
标签: ruby-on-rails postgresql opensuse