2017-02-10 32 views
0

我刚刚安装了neovim,并且我遇到了RubyGem的问题。Miss Neovim RubyGem

输出 ':CheckHealth' 指示缺少neovim RubyGem:

Successfully installed neovim-0.3.1 
Parsing documentation for neovim-0.3.1 
Done installing documentation for neovim after 0 seconds 
1 gem installed 

的输出:

## 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 

安装 '须藤宝石安装neovim' 后 ':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 

非常感谢。

编辑: 这里是“宝石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 

回答

0

的输出,如果你在Linux中安装宝石自定义安装并运行sudo

+0

是的,我在linux。我很抱歉,但我不太明白我该怎么做。 我应该写什么命令?谢谢 – Bomba