V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
WXB506
V2EX  ›  问与答

jekyll 安装问题,恳请大神支招

  •  
  •   WXB506 · 2015-06-03 23:13:32 +08:00 · 2725 次点击
    这是一个创建于 3461 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1.今天在ubuntu14.04上使用sudo gem install jekyll安装jekyll失败,ruby的版本是1.9.3。
    2.在使用sudo apt-get install jekyll安装好jekyll后,jekyll new myblog失败。
    有没有人遇到过这种情况,欢迎赐教,感激不尽
    5 条回复    2015-06-04 10:54:30 +08:00
    ChiangDi
        1
    ChiangDi  
       2015-06-03 23:36:36 +08:00   ❤️ 1
    贴出错信息
    WXB506
        2
    WXB506  
    OP
       2015-06-03 23:45:09 +08:00
    :~$ jekyll new myblog
    /var/lib/gems/1.9.1/gems/execjs-2.5.2/lib/execjs/runtimes.rb:48:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
    from /var/lib/gems/1.9.1/gems/execjs-2.5.2/lib/execjs.rb:5:in `<module:ExecJS>'
    from /var/lib/gems/1.9.1/gems/execjs-2.5.2/lib/execjs.rb:4:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/coffee-script-2.4.1/lib/coffee-script.rb:1:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/jekyll-coffeescript-1.0.1/lib/jekyll-coffeescript.rb:2:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:46:in `block in gracefully_require'
    from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:44:in `each'
    from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:44:in `gracefully_require'
    from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/lib/jekyll.rb:166:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/jekyll-2.5.3/bin/jekyll:6:in `<top (required)>'
    from /usr/local/bin/jekyll:23:in `load'
    from /usr/local/bin/jekyll:23:in `<main>'
    ChiangDi
        3
    ChiangDi  
       2015-06-03 23:52:16 +08:00 via Android
    第一条错误就提示你了 Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
    chloerei
        4
    chloerei  
       2015-06-03 23:58:49 +08:00   ❤️ 1
    sudo apt-get install nodejs
    superalsrk
        5
    superalsrk  
       2015-06-04 10:54:30 +08:00
    hexo大发好
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2685 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:45 · PVG 11:45 · LAX 19:45 · JFK 22:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.