> On Jul 30, 2021, at 5:16 PM, Sam Ruby <ru...@intertwingly.net> wrote: > > You don't need to do both setupmymac AND docker, so feel free to pick > which option works best for you. In the off chance you do wish to > continue to explore setupmymac, see my response interspersed below. > > On Fri, Jul 30, 2021 at 4:45 PM Craig Russell <apache....@gmail.com> wrote: >> >> [MacBook-Pro-10:~/apache/git/whimsy] clr% ruby -v >> ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19] >> [MacBook-Pro-10:~/apache/git/whimsy] clr% bundle -v >> Bundler version 2.1.4 > > That's a slightly old version of bundler. This is an indication that > you have an old version of the command line tools installed. > > [snip] > >> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: >> fatal error: 'ruby/config.h' file not found >> #include "ruby/config.h" >> ^~~~~~~~~~~~~~~ > > If you google this, you will see the recommendation to reinstall the > command line tools: > > $ sudo rm -rf /Library/Developer/CommandLineTools > $ xcode-select --install > > The progress indicator that you will see will likely fluctuate widely > from hours to minutes, but realistically this will take 15 minutes or > so. > > Once this completes, run setupmymac again.
$ rake update Fetching gem metadata from https://rubygems.org/....... Resolving dependencies... Using builder 3.2.4 Using bundler 2.1.4 Using concurrent-ruby 1.1.9 Fetching json 2.5.1 Installing json 2.5.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /Users/clr/apache/git/whimsy/tools/vendor/bundle/ruby/2.6.0/gems/json-2.5.1/ext/json/ext/generator /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20210730-35595-1461wtm.rb extconf.rb creating Makefile current directory: /Users/clr/apache/git/whimsy/tools/vendor/bundle/ruby/2.6.0/gems/json-2.5.1/ext/json/ext/generator make "DESTDIR=" clean current directory: /Users/clr/apache/git/whimsy/tools/vendor/bundle/ruby/2.6.0/gems/json-2.5.1/ext/json/ext/generator make "DESTDIR=" compiling generator.c In file included from generator.c:1: In file included from ./../fbuffer/fbuffer.h:5: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby.h:33: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found #include "ruby/config.h" ^~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/ruby/ruby.h:24:10: note: did not find header 'config.h' in framework 'ruby' (loaded from '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks') 1 error generated. make: *** [generator.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/clr/apache/git/whimsy/tools/vendor/bundle/ruby/2.6.0/gems/json-2.5.1 for inspection. Results logged to /Users/clr/apache/git/whimsy/tools/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-19/2.6.0/json-2.5.1/gem_make.out An error occurred while installing json (2.5.1), and Bundler cannot continue. Make sure that `gem install json -v '2.5.1' --source 'https://rubygems.org/'` succeeds before bundling. > > - Sam Ruby Craig L Russell c...@apache.org