【转】gem install libv8 错误

转自:http://my.oschina.net/moks/blog/200344

【摘要】Because libv8 is the interface for the V8 engine used by therubyracer, you may need to use libv8, even if you have V8 installed already. If you wish to use your own V8 installation, rather than have it built for you, use the --with-system-v8 option.

 

 


G:\gems>gem install libv8-3.11.8.17.gem -l
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing libv8-3.11.8.17.gem:
        ERROR: Failed to build gem native extension.

        C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builde
r.rb:49:in `setup_python!': libv8 requires python 2 to be 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/ge
ms/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.1
7/ext/libv8/gem_make.out

 

 

 

 

解决方案:

G:\gems>gem install libv8-3.11.8.17.gem -- --with-system-v8
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed libv8-3.11.8.17
1 gem installed
Installing ri documentation for libv8-3.11.8.17...
Installing RDoc documentation for libv8-3.11.8.17...

转载于:https://www.cnblogs.com/zs-note/p/4538803.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值