2014年4月16日 星期三

pg 相關問題

Gemfile 有用到 pg的地方在執行 bundle install時可能遇到


ERROR:  Error installing pg:
ERROR: Failed to build gem native extension.

    /Users/apple/.rvm/rubies/ruby-2.1.1/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

這樣的錯誤訊息.

須先安裝Postgres, 相關訊息參考ㄌㄧ


Postgres

Postgres download ->Download the installer from EnterpriseDB for all supported versions.

sudo PATH=$PATH:/Library/PostgreSQL/x.y/bin gem install pg

沒有留言:

張貼留言