我刚刚安装了neovim,我对RubyGem有问题。
“:CheckHealth”的输出表示缺少新的RubyGem:
## Ruby provider
- ERROR: Missing Neovim RubyGem
- SUGGESTIONS:
- Install or upgrade the neovim RubyGem using `gem install neovim`.
- INFO: Ruby Version: ruby 2.2.6p396 (2016-11-15 revision 56800) [x86_64-linux]
- INFO: Host Executable: not found
- INFO: Host Version: not found安装'sudo gem install neovim‘后:
Successfully installed neovim-0.3.1
Parsing documentation for neovim-0.3.1
Done installing documentation for neovim after 0 seconds
1 gem installed':CheckHealth‘的输出与之前相同:
## Ruby provider
- ERROR: Missing Neovim RubyGem
- SUGGESTIONS:
- Install or upgrade the neovim RubyGem using `gem install neovim`.
- INFO: Ruby Version: ruby 2.2.6p396 (2016-11-15 revision 56800) [x86_64-linux]
- INFO: Host Executable: not found
- INFO: Host Version: not found我是不是遗漏了什么?我如何解决这个问题?
:echo has('ruby') returns 1非常感谢。
编辑:这是'gem env‘的输出
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.10
- RUBY VERSION: 2.2.6 (2016-11-15 patchlevel 396) [x86_64-linux-gnu]
- INSTALLATION DIRECTORY: /usr/lib64/ruby/gems/2.2.0
- USER INSTALLATION DIRECTORY: /home/my_user_name/.gem/ruby/2.2.0
- RUBY EXECUTABLE: /usr/bin/ruby.ruby2.2
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /home/my_user_name/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib64/ruby/gems/2.2.0
- /home/my_user_name/.gem/ruby/2.2.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => true
- :bulk_threshold => 1000
- :benchmark => false
- :install => "--format-executable --no-user-install"
- "install" => "--format-executable --no-user-install"
- :format_executable => true
- :update => "--format-executable --no-user-install"
- "update" => "--format-executable --no-user-install"
- :sources => ["https://rubygems.org"]
- REMOTE SOURCES:
- https://rubygems.org
- SHELL PATH:
- /home/my_user_name/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/games
- /usr/java/jdk1.8.0_121/bin发布于 2017-02-11 00:37:10
如果您使用linux,请安装gem自定义安装并与sudo一起运行
发布于 2017-02-11 00:53:37
发布于 2017-06-03 11:36:40
您可能需要将安装的gem的路径添加到您的路径中。
您可以在您的.bashrc或.bash_profile或其他shell的rc/profile文件中像下面这样做。[ -d $HOME/.gem/ruby/2.4.0/bin ] && PATH=$HOME/.gem/ruby/2.4.0/bin:$PATH
export PATH与所有其他路径值一起使用。
刚在https://vi.stackexchange.com/questions/11336/missing-neovim-rubygem/12553#12553上回复
https://stackoverflow.com/questions/42164311
复制相似问题