转自: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...

最新文章

  1. Java学习笔记(05)
  2. JetBrains激活
  3. activiti自定义流程之整合(三):整合自定义表单创建模型
  4. django-cms 代码研究(六)plugin的深入分析
  5. BCB遍历所有窗体的组件
  6. Struts2的运行流程以及关键拦截器介绍
  7. [Javascript] Ex: concatAll, map and filter
  8. SPOJ-COT-Count on a tree(树上路径第K小,可持久化线段树)
  9. Oracle - 找不到原因的无效字符
  10. 【译】在ASP.NET中创建PDF-iTextSharp起步
  11. Hibernate第九篇【组件映射、继承映射】
  12. Hadoop系列005-Hadoop运行模式(下)
  13. bootsect及setup
  14. vuex学习(二)
  15. redis恢复(aof)
  16. Key-Value 数据库简介
  17. 关于LVS负载均衡tcp长连接分发的解决思路
  18. Android 去除应用标题栏(Android Studio)
  19. intellj idea 跑覆盖率
  20. Python学习之路基础篇--02Python基础+小作业

热门文章

  1. VCFtools
  2. 在与SQLServer建立连接时出现与网络相关的或特定于实例的错误
  3. iOS Font
  4. sqlserver设置具体的访问权限
  5. js的深拷贝特别注意this的深拷贝
  6. Template、ItemsPanel、ItemContainerStyle、ItemTemplate(包括ListBox的Item子项是横向排列)
  7. Memcached的特点和使用
  8. 最实用的 Linux 命令行使用技巧
  9. mac中的echo颜色输出
  10. SpringCloud 教程 | 第一篇: 服务的注册与发现(Eureka)