依赖错误:Yikes!看起来你没有';我没有安装插件/lunrjs/jekyll\u lunr\u js\u search.rb或它的一个依赖项

依赖错误:Yikes!看起来你没有';我没有安装插件/lunrjs/jekyll\u lunr\u js\u search.rb或它的一个依赖项,jekyll,jekyll-extensions,Jekyll,Jekyll Extensions,在windows中编译带有插件的Jekyll项目时,总是出现以下错误。但是它可以在gitlabci上编译。 依赖错误:Yikes!看起来您没有安装D:/myproject/\u plugins/lunrjs/jekyll\u lunr\u js\u search.rb或其任何依赖项。为了使用当前配置的Jekyll,您需要安装此gem。Ruby的完整错误消息是:“无法加载这样的文件--v8”。如果遇到问题,您可以在以下位置找到有用的资源 使用gem安装jekyll lunr js search时出

在windows中编译带有插件的Jekyll项目时,总是出现以下错误。但是它可以在gitlabci上编译。

依赖错误:Yikes!看起来您没有安装D:/myproject/\u plugins/lunrjs/jekyll\u lunr\u js\u search.rb或其任何依赖项。为了使用当前配置的Jekyll,您需要安装此gem。Ruby的完整错误消息是:“无法加载这样的文件--v8”。如果遇到问题,您可以在以下位置找到有用的资源

使用
gem安装jekyll lunr js search时出现以下错误:

C:\MyProj>gem install jekyll-lunr-js-search
Fetching: json-2.0.3.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed json-2.0.3
Fetching: ref-2.0.0.gem (100%)
Successfully installed ref-2.0.0
Fetching: libv8-3.16.14.19.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll-lunr-js-search:
        ERROR: Failed to build gem native extension.

    current directory: C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.19/ext/libv8
C:/APPs/Ruby23-x64/bin/ruby.exe -r ./siteconf20170310-14120-1y669dw.rb extconf.rb
creating Makefile
The system cannot find the path specified.
C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.19/ext/libv8/builder.rb:86:in `setup_python!': libv8 requires python 2 to be installed in order to build, but it is currently 3.4.4 (RuntimeError)
        from C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.19/ext/libv8/builder.rb:53:in `build_libv8!'
        from C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.19/ext/libv8/location.rb:24:in `install!'
        from extconf.rb:7:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.19 for inspection.
Results logged to C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/libv8-3.16.14.19/gem_make.out

如果查看
lib
目录,您将看到ruby文件是
jekyll lunr js search.rb
,而不是
jekyll_lunr_js_search.rb
。此外,它还可以作为Rubygem包提供


只需将gem添加到您的
Gemfile
中的
:jekyll_plugins
组,运行
bundle install
,然后继续使用jekyll进行构建/服务。

您是如何安装它的?放置在“jekyll_lunr_js_search.rb”中内部_pluginsfolderi重命名了
jekyll lunr js search.rb
文件,该文件对插件功能没有影响,因为已经尝试重新命名。Rubygem方法也不起作用。错误是相同的您是否能够通过
bundle install
gem install jekyll lunr js search成功安装插件
?否此操作失败,我已将输出放在编辑过的问题中Windows对
libv8
的支持可能需要等到项目提供兼容的DevKit才能编译libv8扩展。这个答案帮助我解决了一个我一直在努力解决的不同依赖性问题--确保您的.rb文件与包名相同!
current directory: C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.19/ext/libv8
C:/APPs/Ruby23-x64/bin/ruby.exe -r ./siteconf20170310-14120-1y669dw.rb extconf.rb
creating Makefile
The system cannot find the path specified.
C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.19/ext/libv8/builder.rb:86:in `setup_python!': libv8 requires python 2 to be installed in order to build, but it is currently 3.4.4 (RuntimeError)
    from C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.19/ext/libv8/builder.rb:53:in `build_libv8!'
    from C:/APPs/Ruby23-x64/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.19/ext/libv8/location.rb:24:in `install!'
    from extconf.rb:7:in `<main>'

extconf failed, exit code 1
C:\>py -2
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>