gpt4 book ai didi

ruby-on-rails-3 - bundle install libv8 (therubyracer) 在 Windows 上安装失败(使用 native 扩展)

转载 作者:行者123 更新时间:2023-12-01 09:18:52 25 4
gpt4 key购买 nike

我正在尝试在我的 Windows 机器上进行捆绑安装,并且我尝试包括以下两个 gem:

gem 'therubyracer'
gem 'libv8', '3.3.10.4'

但似乎都不起作用,这给我留下了这个错误:

Installing libv8 (3.3.10.4) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bun
dler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
c:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: F
ailed to build gem native extension. (Gem::Installer::ExtensionBuildError)

c:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=c:/RailsInstaller/Ruby1.9.2/bin/ruby
Checking for Python...Unable to build libv8: Python not found!


Gem files will remain installed in c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.4 for inspection.
Results logged to c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.4/ext/libv8/gem_make.out
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:511:in `block in build_extensions'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in `each'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in `build_extensions'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:159:in `install'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/source.rb:90:in `block in install'

from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/rubygems_integration.rb:82:in `pre
serve_paths'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/source.rb:89:in `install'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:73:in `block in insta
ll_gem_from_spec'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/rubygems_integration.rb:97:in `wit
h_build_args'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:72:in `install_gem_fr
om_spec'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:56:in `block in run'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:55:in `run'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:12:in `install'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/cli.rb:220:in `install'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/vendor/thor/task.rb:22:in `run'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/vendor/thor/invocation.rb:118:in `
invoke_task'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/vendor/thor.rb:263:in `dispatch'
from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/vendor/thor/base.rb:386:in `start'

from c:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.1.rc.7/bin/bundle:13:in `<top (required)>'
from c:/RailsInstaller/Ruby1.9.2/bin/bundle:19:in `load'
from c:/RailsInstaller/Ruby1.9.2/bin/bundle:19:in `<main>'

有没有办法解决这个问题

最佳答案

查看语言依赖项:https://github.com/fractaloop/libv8/graphs/languages

您需要在计算机上安装 Python。完成后,我还会安装最新版本的 bundler :

gem install bundler --pre

关于ruby-on-rails-3 - bundle install libv8 (therubyracer) 在 Windows 上安装失败(使用 native 扩展),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9294435/

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