gpt4 book ai didi

ruby-on-rails - 无法在 Windows 上的 Rails 中安装 libv8 3.11.8.17

转载 作者:行者123 更新时间:2023-12-04 14:46:28 25 4
gpt4 key购买 nike

无法安装 libv8 3.11.8.17 gem。我已经环顾四周,发现它不支持 Windows。虽然我仍在寻找解决方法?

Installing libv8 (3.11.8.17)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-
3.11.8.17/ext/libv8/builder.rb:49:in `setup_python!': libv8 requires python 2 to b
e installed in order to build, but it is currently not available (RuntimeError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-
3.11.8.17/ext/libv8/builder.rb:35:in `block in build_libv8!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-
3.11.8.17/ext/libv8/builder.rb:34:in `chdir'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-
3.11.8.17/ext/libv8/builder.rb:34:in `build_libv8!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-
3.11.8.17/ext/libv8/location.rb:24:in `install!'
from extconf.rb:7:in `<main>'

Gem files will remain installed in
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-
3.11.8.17/ext/libv8/gem_make.out
An error occurred while installing libv8 (3.11.8.17), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling.

我不尝试使用 therubyracer,老实说不知道什么 gem 依赖于 libv8。安装 Python27 并设置 PATH 没有任何作用。除了换平台我还能做什么?或者也许有一个解决方法可以从 https://github.com/hiranpeiris/therubyracer_for_windows 获得 v8.dll。我似乎不明白?

最佳答案

尝试这个

gem install libv8 -v '3.16.14.3' -- --with-system-v8

从这里回答

Error installing libv8: ERROR: Failed to build gem native extension

关于ruby-on-rails - 无法在 Windows 上的 Rails 中安装 libv8 3.11.8.17,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17237467/

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