gpt4 book ai didi

ruby - 在 linux (fedora 20) 上安装 jekyll

转载 作者:IT王子 更新时间:2023-10-29 01:06:12 31 4
gpt4 key购买 nike

各位,我使用sudo gem install jekyll 在我的Fedora 20 上安装jekyll 并得到以下错误。我已经成功安装了 ruby​​ 和 ruby​​gems,在我看来 jekyll 已经安装好了。但是当我输入 jekyll serve 时,页面不会被创建并且我得到了类似的信息。我是 fedora 和 ruby​​ 的新手,感谢您的帮助。

Successfully installed jekyll-2.1.0
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- json/pure (LoadError)
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/json-1.7.7/lib/json.rb:60:in `rescue in <module:JSON>'
from /usr/share/gems/gems/json-1.7.7/lib/json.rb:57:in `<module:JSON>'
from /usr/share/gems/gems/json-1.7.7/lib/json.rb:54:in `<top (required)>'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/text.rb:16:in `<top (required)>'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/code_object.rb:28:in `<class:CodeObject>'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/code_object.rb:26:in `<top (required)>'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/generator/markup.rb:59:in `<top (required)>'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/generator/darkfish.rb:6:in `<top (required)>'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rdoc.rb:565:in `<top (required)>'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:73:in `load_rdoc'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:238:in `setup'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:151:in `generate'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:56:in `block in generation_hook'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:55:in `each'
from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:55:in `generation_hook'
from /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:178:in `call'
from /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:178:in `block in install'
from /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:177:in `each'
from /usr/local/share/ruby/site_ruby/rubygems/request_set.rb:177:in `install'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:249:in `install_gem'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:291:in `block in install_gems'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:287:in `each'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:287:in `install_gems'
from /usr/local/share/ruby/site_ruby/rubygems/commands/install_command.rb:202:in `execute'
from /usr/local/share/ruby/site_ruby/rubygems/command.rb:307:in `invoke_with_build_args'
from /usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:167:in `process_args'
from /usr/local/share/ruby/site_ruby/rubygems/command_manager.rb:137:in `run'
from /usr/local/share/ruby/site_ruby/rubygems/gem_runner.rb:54:in `run'
from /bin/gem:21:in `<main>'

最佳答案

尝试安装 ruby-devel -

sudo yum install ruby-devel

并尝试重新安装 jekyll -

sudo gem install jekyll

还要确保安装了 nodejs

sudo yum install nodejs

关于ruby - 在 linux (fedora 20) 上安装 jekyll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24576254/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com