小编ndr*_*age的帖子

无法在Fedora 17上安装PG gem

pg gem很顽固,所以我无法在新电脑上加载我的应用程序.看起来像多个问题,无法找到pg_config,然后是extconf.rb

#psql working...
psql (9.2.1)
Type "help" for help.

nd =>
\q

$ pg_config:

#adding the path to bashrc...
$ nano .bashrc

PATH=/usr/pgsql-9.2/bin:$PATH

#seems to work...
pg_config: /usr/pgsql-9.2/bin/pg_config

$ sudo gem install pg

#but i get the same errors...
Building native extensions.  This could take a while...
.......
ERROR:  Error installing pg:
        ERROR: Failed to build gem native extension.

        /usr/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 …
Run Code Online (Sandbox Code Playgroud)

linux postgresql ruby-on-rails fedora rvm

5
推荐指数
2
解决办法
3700
查看次数

标签 统计

fedora ×1

linux ×1

postgresql ×1

ruby-on-rails ×1

rvm ×1