ERROR: Failed to build gem native extension on Mavericks

后端 未结 11 1018
梦如初夏
梦如初夏 2020-11-29 07:43

I\'m attempting to run bundle in my Rails project on OSX 10.9. It fails when getting to the pg gem with this error:

Gem::Installer:         


        
11条回答
  •  天命终不由人
    2020-11-29 08:30

    This worked for me on Mac OS X 10.9.3 and Postgres.app version 9.3.4.2:

    1) Install Postgres.app

    2) bundle config build.pg --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config

    3) gem install pg -v '0.17.1'

    4) bundle install

提交回复
热议问题