Thanks for the suggestion. My .cshrc was pointing to PATH 
/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/2.7.0/bin so I removed them 
from PATH. Now both gem and bundler are coming from the system.

Still no joy. [1]

Many errors after that one, with the errors not making sense. For example,
An error occurred while installing redcarpet (3.5.1), and Bundler cannot 
continue.

In Gemfile:
  redcarpet
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    bundler (~> 1.3)

  Current Bundler version:
    bundler (2.2.25)

Your bundle requires a different version of Bundler than the one you're running.
Install the necessary version with `gem install bundler:1.17.3` and rerun 
bundler using `bundle _1.17.3_ update`

Any ideas?

Thanks,
Craig

[1]
Last login: Tue Aug  3 12:28:24 on ttys020
[MacBook-Pro-10:~] clr% head -1 `which gem`
#!/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
[MacBook-Pro-10:~] clr% head -1 `which bundle`
#!/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
[MacBook-Pro-10:~] clr% cd /srv/whimsy
whimsy-so-old/ whimsy/        
[MacBook-Pro-10:~] clr% cd /srv/whimsy
[MacBook-Pro-10:/srv/whimsy] clr% git pull
Enter passphrase for key '/Users/clr/.ssh/id_rsa': 
remote: Enumerating objects: 61, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 61 (delta 44), reused 44 (delta 27), pack-reused 0
Unpacking objects: 100% (61/61), done.
From github.com:apache/whimsy
   a28206d9..f95c56af  master     -> origin/master
Already up to date.
[MacBook-Pro-10:/srv/whimsy] clr% config/setupmymac 
CONFIGURE.md       DOCKER.md          MACOSX.md          Rakefile           
UBUNTU.md          config/            examples/          repository.yml     
tools/             wunderbar.version 
DEPLOYMENT.md      Gemfile            NOTICE             SETUPMYMAC.md      
asf.gemspec        doap_Whimsy.rdf    images/            ruby2js.version    
vagrant/           www/
DEVELOPMENT.md     LICENSE            README.md          TODOS.md           
asf.version        docker/            lib/               secmail.py         
vendor/            
[MacBook-Pro-10:/srv/whimsy] clr% config/setupmymac 

$ rake update
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
Using builder 3.2.4
Using bundler 2.2.25
Using concurrent-ruby 1.1.9
Using rack 2.2.3
Using rdoc 6.3.2
Fetching json 2.5.1
Using tzinfo 2.0.4
Fetching racc 1.5.2
Fetching ruby-ldap 0.9.20
Using tzinfo-data 1.2021.1
Installing ruby-ldap 0.9.20 with native extensions
Installing json 2.5.1 with native extensions
Installing racc 1.5.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: 
/private/var/whimsy/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 
./siteconf20210804-96155-1idqfwm.rb extconf.rb
creating Makefile

current directory: 
/private/var/whimsy/whimsy/tools/vendor/bundle/ruby/2.6.0/gems/json-2.5.1/ext/json/ext/generator
make "DESTDIR=" clean

current directory: 
/private/var/whimsy/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 
/private/var/whimsy/whimsy/tools/vendor/bundle/ruby/2.6.0/gems/json-2.5.1 for 
inspection.
Results logged to 
/private/var/whimsy/whimsy/tools/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-19/2.6.0/json-2.5.1/gem_make.out


> On Aug 2, 2021, at 12:42 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Mon, Aug 2, 2021 at 2:10 PM Roy T. Fielding <field...@gbiv.com> wrote:
>> 
>> On Aug 1, 2021, at 4:47 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> My experience is that reinstalling xcode-select is sometimes
>>> necessary, but solves the problem.  Unfortunately, this hasn't worked
>>> for you.
>> 
>> I had to do that recently as well in order to get brew upgrade to work for 
>> some installs.
>> I think one of the recent macOS or Xcode patches messed up all of the 
>> command-line
>> tools, or removed some dependency binaries from the systems, and the way to 
>> fix it
>> was to re-run
>> 
>>   xcode-select --install
>> 
>> on my old 2013 mbp running 10.15.7.
>> 
>> Another potential issue is the version of ruby installed. The system ruby 
>> for Catalina
>> is 2.6.3p62, whereas brew installs 3.0.2.
> 
> Since Craig indicated that he was running 2.6.3p62, I was assuming
> that he is using system Ruby, but your comment sparked something for
> me: perhaps he has an inconsistent version of either bundle or gem.
> Craig, please try the following commands, and verify the results:
> 
> % head -1 `which bundle`
> #!/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
> 
> % head -1 `which gem`
> #!/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
> 
> - Sam Ruby

Craig L Russell
c...@apache.org

Reply via email to