いつもお世話になっています。
bundle installが急にできなくなってしまいました。
Ruby on Rails Tutorialを行っていたところ、
急にbundle install ができなくなってしまいました。
下記のような現象です。
$ bundle install
An error occurred while installing pg (0.15.1), and Bundler cannot continue.
Make sure that gem install pg -v '0.15.1'
succeeds before bundling.
$ gem install pg -v '0.15.1'
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/Users/ユーザー名/.rvm/rubies/ruby-2.0.0-p645/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
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
ここまで来て、ググってみると下記のURLを見つけたのでやってみました。
http://qiita.com/cigalecigales/items/a12a780d300cca0844bd
$ sudo yum install postgresql-devel
sudo: yum: command not found
上記から進んでいません。Macでyumを使うケースはないと調べたのですが
代わりにどんな動作をしたらいいかわからず、困っています。
おたすけください。
開発環境:MacOS Yosemite
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。