On Sun, 1 Aug 2021 at 21:34, Craig Russell <apache....@gmail.com> wrote: > > So I had a very old checkout of whimsy in my /srv repository. I cloned a new > copy and it started the server and opened a web page to whimsy.local. I went > to secretary/workbench and now just have one small issue. I don't recall how > I got wunderbar but maybe it's now installed in the wrong place? [2] > > And bundle update fails. [1] > > I really really do not want to upgrade my machine...
In which case, Docker may be your friend. > Thanks, > Craig > > [1] [MacBook-Pro-10:/srv/whimsy] clr% bundle update > Fetching gem metadata from https://rubygems.org/....... > Resolving dependencies... > 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: > /private/var/whimsy/whimsy/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 > ./siteconf20210801-72324-cjkpud.rb extconf.rb > creating Makefile > > current directory: > /private/var/whimsy/whimsy/vendor/bundle/ruby/2.6.0/gems/json-2.5.1/ext/json/ext/generator > make "DESTDIR=" clean > > current directory: > /private/var/whimsy/whimsy/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 > /private/var/whimsy/whimsy/vendor/bundle/ruby/2.6.0/gems/json-2.5.1 for > inspection. > Results logged to > /private/var/whimsy/whimsy/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. > > In Gemfile: > whimsy-asf was resolved to 0.0.77, which depends on > wunderbar was resolved to 1.4.5, which depends on > json > [2] > Bundler was unable to find one of the gems defined in the Gemfile > Most common causes Solution finder > You may not have installed all the gems that this application needs. Read > solution <> > If the necessary gems are installed, but Bundler may not have permissions to > access them. > Bundler tried to load the gems from #<struct Bundler::Settings::Path > explicit_path=nil, system_path=false, default_install_uses_path=false>. > Read solution <> > The application may be run under the wrong user account or execution > environment. > It is currently running as _www. Read solution <> > The application may be run under the wrong Ruby interpreter. > It is currently being run under > /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby. Read > solution <> > Raw Bundler exception > > Exception message: > > Could not find gem 'wunderbar (= 1.4.5)' in any of the gem sources listed in > your Gemfile. (Bundler::GemNotFound) > > > > On Jul 30, 2021, at 8:55 PM, Sam Ruby <ru...@intertwingly.net> wrote: > > > > On Fri, Jul 30, 2021 at 11:05 PM Craig Russell <apache....@gmail.com> wrote: > >> > >> The setupmymac does run to completion with a bunch of errors but it starts > >> the server and opens a browser to whimsy.local. From there, I select > >> secretary workbench and it gives me six emails from 7/14/2020 to 7/17/2020. > > > > Try the following commands: > > > > cd /srv/whimsy/www/secretary/workbench > > rake fetch > > > >> I select one of the messages and it gives me the message processing page > >> and when I select category (icla) it gives me the icla screen. I know that > >> this is using very old code because the category has (0) incomplete form > >> but none of the checkboxes that indicate what is incomplete. > >> > >> So where it this code getting the icla.js.rb? > > > > /srv/whimsy/www/secretary/workbench//views/forms/icla.js.rb > > > > - Sam Ruby > > > >> > >> > >>> On Jul 30, 2021, at 6:06 PM, Sam Ruby <ru...@intertwingly.net> wrote: > >>> > >>> While I am currently running 11.4, setupmymac was developed using > >>> prior versions of MacOSX. > >>> > >>> What does "xcode-select -p" return? > >> > >> > >> [MacBook-Pro-10:~/apache/foundation/officers] clr% xcode-select -p > >> /Library/Developer/CommandLineTools > >> > >> Craig > >>> > >>> If it returns something OTHER than "/Library/Developer/CommandLineTools", > >>> try: > >>> > >>> $ sudo xcode-select --switch /Library/Developer/CommandLineTools > >>> > >>> As to your question, if you do choose to upgrade, you will likely need > >>> to reinstall xcode-select again, and at that point things should work. > >>> Meanwhile, you are running a supported version of Ruby and bundler > >>> isn't all that backlevel and shouldn't be a problem. > >>> > >>> - Sam Ruby > >>> > >>> On Fri, Jul 30, 2021 at 8:57 PM Craig Russell <apache....@gmail.com> > >>> wrote: > >>>> > >>>> I installed the command line tools but still the bundler is 2.1.4. > >>>> > >>>> So the problem is that whimsy doesn't work with Catalina 10.15.7 which I > >>>> admit is not the latest MacOSX? > >>>> > >>>> Before I upgrade my system, will this likely change anything? > >>>> > >>>> Thanks, > >>>> Craig > >>>> > >>>>> On Jul 30, 2021, at 5:48 PM, Craig Russell <apache....@gmail.com> wrote: > >>>>> > >>>>> > >>>>> > >>>>>> On Jul 30, 2021, at 5:16 PM, Sam Ruby <ru...@intertwingly.net > >>>>>> <mailto: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 > >>>>>> <mailto: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/ > >>>>> <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/'` <https://rubygems.org/'%60> succeeds before > >>>>> bundling. > >>>>> > >>>>>> > >>>>>> - Sam Ruby > >>>>> > >>>>> Craig L Russell > >>>>> c...@apache.org <mailto:c...@apache.org> > >>>>> > >>>> > >>>> Craig L Russell > >>>> c...@apache.org > >>>> > >> > >> Craig L Russell > >> c...@apache.org > >> > > Craig L Russell > c...@apache.org >