我正在Windows10上运行它。我正在尝试构建这个存储库(万一Gemfile和Gemfile.lock是有用的):https://github.com/huginn/huginn
Error:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1/ext/libv8
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20200209-30680-1j9g8t0.rb extconf.rb
creating Makefile
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1/ext/libv8/builder.rb:57:in
`setup_python!': libv8 requires python 2 to be installed in order to build, but
it is currently not available (RuntimeError)
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1/ext/libv8/builder.rb:39:in
`build_libv8!'
from
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1/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:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-7.3.492.27.1 for inspection.
Results logged to
C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/libv8-7.3.492.27.1/gem_make.out
An error occurred while installing libv8 (7.3.492.27.1), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '7.3.492.27.1' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
mini_racer was resolved to 0.2.9, which depends on
libv8无论我在谷歌上做什么,最重要的答案总是一样的:我尝试了两种方法:
gem安装libv8 -v '3.16.14.1‘-系统-V8
或
gem安装libv8 -v '3.11.8.13‘-系统-V8
gem install libv8 --version '3.11.8.17' on ruby (windows)
libv8 required python 2 to be installed in order to build - Windows
therubyracer - Gem::Ext::BuildError: ERROR: Failed to build gem native extension
我看到Gemfile.lock有这个
libv8 (7.3.492.27.1)
.....
mini_racer (0.2.9)
libv8 (>= 6.9.411)因此,我假设Gemfile.lock会导致安装我不想要的版本。但我不知道怎么解决这个问题。
我仍然在学习Ruby,这是我第一个决定开始尝试的大型项目。
我的电脑上也有Python 2。所以我不知道为什么它说它不存在。
发布于 2020-02-09 20:06:01
如果您查看Gemfile,它会声明,mini_racer创业板是一个可选的创业板,它是这里的症结所在,因此可能值得对其进行注释,并再次尝试捆绑。看看你有什么进展。
另外,如果mini_racer与therubyracer类似,在windows上并不真正需要,因为它内置了JScript,所以它不需要另一个javascript运行时。
https://stackoverflow.com/questions/60138960
复制相似问题