I am installing Rails on a fresh machine with OS X El Capitan using installrails.com.
Upon installing rails via the command line, I am now getting numerous errors as the system looks for outdated gems to download. Because the gems are not available, the installation cannot complete.
How should I proceed? I am fine with a fresh installation if needed.
Thanks!
First few errors I received --
Could not find CFPropertyList-2.3.2 in any of the sources
Run `bundle install` to install missing gems.
after running bundle install
Could not find fog-aliyun-0.0.10 in any of the sources
ran bundle update for fog-aliyun gem and got
Installing pg 0.18.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/supertext/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20151228-30240-pkfnrw.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.
And on and on with various outdated gems and permission issues.
Note: It was suggested that this was a duplicate. However, I am getting gem errors on dozens of gems, not just pg / postgresql. So while that note was helpful once I identified the upstream problem, it is not the sole answer to the question.