LoginSignup
28
28

More than 5 years have passed since last update.

bundlerでpgをインストールする

Posted at

pgをインストールするにはgemのオプションでpg_configへのパスを指定しなければなりません。しかしbundlerでインストールする場合はどう渡したものか…。

調べてみると以下のように bundle install に先立って bundle config すればいいみたい。

$ bundle config build.pg --with-pg-config=/usr/local/bin/pg_config
$ bundle install

やってみたらすんなりとOKでした。その他のgemでも同様のやり方でオプションを渡せばいいみたいです。

参考:http://stackoverflow.com/questions/9234960/gem-install-pg-with-pg-config-works-bundle-fails

28
28
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
28