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.
current directory:
/Users/Dieter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/pg-0.21.0/ext
/Users/Dieter/.rbenv/versions/2.3.1/bin/ruby -r
./siteconf20171211-45253-1v2oj18.rb 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.
Gem files will remain installed in
/Users/Dieter/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/pg-0.21.0 for
inspection.
Results logged to
/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/gem_make.out
An error occurred while installing pg (0.21.0), and Bundler cannot
continue.
Make sure that gem install pg -v '0.21.0' succeeds before bundling.
Ah, this is a good error! This means the problem is with your code, not your system setup. We can see that this is a syntax error that is being raised at line 118 of methods.rb. That means that somewhere in your file, you’ve likely missed an end or forgotten to finish a statement. Take a look at your code and see if you can spot it; if you haven’t found it on your own after 10 minutes, share your code here and we can find it together.
One more thing, though… It seems totally unrelated, but in atom, I get a constant error running RuboCop. The log error is
/Users/Dieter/.atom/packages/linter/lib/linter-registry.js:159 [Linter] Error running RuboCop Error: Failed to spawn command rubocop. Make sure rubocop is installed and on your PATH
at /Users/Dieter/.atom/packages/linter-rubocop/node_modules/atom-linter/lib/helpers.js:130:24
at process._tickCallback (internal/process/next_tick.js:103:7)
(anonymous) @ /Users/Dieter/.atom/packages/linter/lib/linter-registry.js:159