Can't install pg gem on Rails

后端 未结 3 1159
无人及你
无人及你 2020-12-30 03:52

I am trying to bundle install, but, for some strange reason, the pg gem is returning the following error on install:

$ gem install pg -v \'0.18.4\'
Building          


        
3条回答
  •  被撕碎了的回忆
    2020-12-30 04:28

    You need to configure pg correctly.

    Run:

    bundle config build.pg --with-pg-config=/Applications/Postgres.app/Contents/Versions/(YOUR POSTGRES VERSION)/bin/pg_config
    

    Then try to run bundle:

    bundle install
    

提交回复
热议问题