==> Fetching gem-neovim
==> Fetching neovim from gem source
`RubyGems' were not loaded.
`error_highlight' was not loaded.
`did_you_mean' was not loaded.
`syntax_suggest' was not loaded.
/home/linuxbrew/.linuxbrew/opt/ruby/bin/gem:8:in `require': cannot load such file -- rubygems/gem_runner (LoadError)
from /home/linuxbrew/.linuxbrew/opt/ruby/bin/gem:8:in `<main>'
==> Fetching neovim from gem source
`RubyGems' were not loaded.
`error_highlight' was not loaded.
`did_you_mean' was not loaded.
`syntax_suggest' was not loaded.
/home/linuxbrew/.linuxbrew/opt/ruby/bin/gem:8:in `require': cannot load such file -- rubygems/gem_runner (LoadError)
from /home/linuxbrew/.linuxbrew/opt/ruby/bin/gem:8:in `<main>'
Error: An exception occurred within a child process:
Errno::ENOENT: No such file or directory @ rb_sysopen - /home/user/.cache/Homebrew/neovim-0.9.0.gem
This is ruby installation script in Homebrew, which uses for rubygems $HOMEBREW_PREFIX/"lib/ruby/gems/#{api_version}/bin"
and all content is symlinked it to $(brew --prefix ruby)/libexec/"gembin/*"
HOMEBREW_VERSION: 3.6.18-54-g3e25789 Homebrew Ruby: 2.6.8 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8_1/bin/ruby
which -a ruby (when I removed rbenv from the env it also n/w)
brew gem install neovim