Marvericksでpgをbundle installする方法
Herokuとか使うときにはsqliteが対応していないためpostgresqlとか使うと思うんですけどそのgem pgがうまいことmarvericksではbundle installで入らなかったのでメモ
- postgresをインストール
- bundle config
bundle config build.pg --with-pg-include='/Applications/Postgres.app/Contents/Versions/9.3/include/'
- bundle intall
bundle install --path vendor/bundle
参考:
http://stackoverflow.com/questions/19625487/impossible-to-install-pg-gem-on-my-mac-with-mavericks
http://d.hatena.ne.jp/mallowlabs/20120806/mac_pg_gem