I could not install the gems, and with help from a technical coach and another student (who experienced the same issue) found that I could not install the gems unless I deleted the Gemfile.lock.
Fetching gem metadata from https://rubygems.org/........
Using rake 10.4.2
Using bundler 1.17.1
Using mime-types 2.4.3
Using mini_portile 0.6.2
Fetching nokogiri 1.6.6.2
Installing nokogiri 1.6.6.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/Users/helloamandamurphy/.rvm/gems/ruby-2.5.3/gems/nokogiri-1.6.6.2/ext/nokogiri
/Users/helloamandamurphy/.rvm/rubies/ruby-2.5.3/bin/ruby -r
./siteconf20190308-25558-19kcbb3.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts
-Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
-----
The file "/usr/include/iconv.h" is missing in your build environment,
which means you haven't installed Xcode Command Line Tools properly.
To install Command Line Tools, try running `xcode-select --install` on
terminal and follow the instructions. If it fails, open Xcode.app,
select from the menu "Xcode" - "Open Developer Tool" - "More Developer
Tools" to open the developer site, download the installer for your OS
version and run it.
-----
*** 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:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/helloamandamurphy/.rvm/rubies/ruby-2.5.3/bin/$(RUBY_BASE_NAME)
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/Users/helloamandamurphy/.rvm/gems/ruby-2.5.3/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.6.6.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/Users/helloamandamurphy/.rvm/gems/ruby-2.5.3/gems/nokogiri-1.6.6.2 for
inspection.
Results logged to
/Users/helloamandamurphy/.rvm/gems/ruby-2.5.3/extensions/x86_64-darwin-18/2.5.0/nokogiri-1.6.6.2/gem_make.out
An error occurred while installing nokogiri (1.6.6.2), and Bundler
cannot continue.
Make sure that `gem install nokogiri -v '1.6.6.2' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
capybara was resolved to 2.4.4, which depends on
xpath was resolved to 2.0.0, which depends on
nokogiri```
I attempted to reinstall nokogiri, xcode, etc. individually and it didn't work until the Gemfile.lock was deleted.
Hope this is helpful.