After having some trouble and getting “rbenv: command not found” every time I opened terminal, I was able to re-install the dotfiles and apparently have installed rbenv. However, on while installing the dotfiles the second time, I got the error
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
checking for pg_config… no
No pg_config… trying anyway. If building fails, please try again with
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.
Provided configuration options:
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
extconf failed, exit code 1
Gem files will remain installed in
Results logged to
An error occurred while installing pg (0.21.0), and Bundler cannot
Make sure that
gem install pg -v '0.21.0'succeeds before bundling.
When I check the mkmf.log like it says, I get:
-bash: /Users/Dieter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/pg-0.21.0/mkmf.log: Permission denied