RubyでHeroku を使う準備ができたので、今度はローカル開発環境で Rails アプリケーションを作って、Heroku に送る準備をしていました。
$ new memo -d postgresql
すると下記のエラーが出てきまして、対応に困っております。どのようん対処したらいいでしょうか?¥
Installing pg 0.18.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/[username]/.rbenv/versions/2.1.3/bin/ruby extconf.rb --with-pg-config=/usr/pgsql-9.4/bin/pg_config
Using config values from /usr/pgsql-9.4/bin/pg_config
extconf.rb:29: warning: Insecure world writable dir /usr/local/Cellar in PATH, mode 040777
sh: /usr/pgsql-9.4/bin/pg_config: No such file or directory
sh: /usr/pgsql-9.4/bin/pg_config: No such file or directory
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
extconf failed, exit code 1
An error occurred while installing pg (0.18.4), and Bundler cannot continue.
Make sure that gem install pg -v '0.18.4'
succeeds before bundling.
run bundle exec spring binstub --all
/Users/[username]/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr/local/Cellar in PATH, mode 040777
/Users/[username]/.rvm/gems/ruby-2.1.1/gems/bundler-1.11.2/lib/bundler/resolver.rb:354:in `block in verify_gemfile_dependencies_are_found!': Could not find gem 'pg' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/06 15:09
2016/03/09 04:02