Jekyll安装,错误的参数数量

时间:2018-05-25 04:03:14

标签: linux installation jekyll

我正在运行Fedora 28.安装Jekyll时遇到问题。我在他们的安装页面上提到了所有依赖项。

ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]

gem -v
2.5.2

bundle -v
Bundler version 1.16.1

当我尝试安装Jekyll时,我得到了这个 -

gem install jekyll
ERROR:  While executing gem ... (ArgumentError)
    wrong number of arguments (given 1, expected 0)

以root身份运行也没有帮助。当我运行backtrace时,

gem install jekyll --backtrace
ERROR:  While executing gem ... (ArgumentError)
    wrong number of arguments (given 1, expected 0)
    /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:47:in `require'
    /usr/local/share/ruby/site_ruby/rubygems/installer.rb:162:in `initialize'
    /usr/local/share/ruby/site_ruby/rubygems/installer.rb:104:in `new'
    /usr/local/share/ruby/site_ruby/rubygems/installer.rb:104:in `at'
    /usr/local/share/ruby/site_ruby/rubygems/resolver/specification.rb:93:in `install'
    /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:166:in `block in install'
    /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:156:in `each'
    /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:156:in `install'
    /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:250:in `install_gem'
    /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:300:in `block in install_gems'
    /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:296:in `each'
    /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:296:in `install_gems'
    /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:203:in `execute'
    /usr/local/share/ruby/site_ruby/rubygems/command.rb:308:in `invoke_with_build_args'
    /usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:169:in `process_args'
    /usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:139:in `run'
    /usr/local/share/ruby/site_ruby/rubygems/gem_runner.rb:55:in `run'
    /usr/bin/gem:21:in `<main>'

1 个答案:

答案 0 :(得分:0)

我猜红宝石版本就是问题所在。一旦我使用https://rvm.io/安装成功安装了ruby 2.4