Windows下执行gem install 时ERROR: Failed to build gem native extension的解决办法.
来源:互联网 发布:世界杯预选赛积分算法 编辑:程序博客网 时间:2024/05/16 13:03
最近在整移动端的自动化测试, 安装devkit 后 执行gem install json 老是报错:
Fetching: rdiscount-2.1.8.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rdiscount:
ERROR: Failed to build gem native extension.
C:/Ruby200-x64/bin/ruby.exe extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
checking size of unsigned long... 4
checking size of unsigned int... failed
checking size of unsigned short... 2
no int with size 2
*** 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:/Ruby200-x64/bin/ruby
--with-rdiscount-dir
--without-rdiscount-dir
--with-rdiscount-include
--without-rdiscount-include=${rdiscount-dir}/include
--with-rdiscount-lib
--without-rdiscount-lib=${rdiscount-dir}/
Gem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rdisc
ount-2.1.8 for inspection.
Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/rdiscount-2.1.8/ext/ge
m_make.out
百般无奈, 上网查找解决办法,找打的大部分都是IOS系统或者是Linux系统的解决办法,苦恼很久,最后发现需要使用:
gem install json –v 1.8.3 -- --use-system-libraries
提供解决办法的人说是其libxml2与某些系统有冲突,附原帖地址如下:
http://stackoverflow.com/questions/24251494/nokogiri-gem-installation-error
- Windows下执行gem install 时ERROR: Failed to build gem native extension的解决办法.
- ERROR: Failed to build gem native extension.
- Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
- 用gem install jekyll命令安装jekyll错误 ERROR: Failed to build gem native extension
- gem install mysql2 在windows错误(Failed to build gem native extension)解决方法
- ubuntu下bundle install报mysql 的Failed to build gem native extension错误
- 【Rails】用gem安装MySQL组件出现Failed to build gem native extension错误的解决办法
- Installing the PostgreSQL gem with 'gem pq' fails with ERROR: Failed to build gem native extension
- 解决安装rails时出现 ERROR: Failed to build gem native extension. 的问题
- 安装mongrel:ERROR: Failed to build gem native extension
- Ubuntu下,通过gem安装mysql时,出现Failed to build gem native extension.错误的解决方法
- 解决failed to build gem native extension on windows 7
- Failed to build gem native extension
- Failed to build gem native extension
- MAC无法安装ruby-debug-ide gems包(ERROR: Failed to build gem native extension)的解决办法
- 【FAQ】Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension?
- redhat bundle时Error installing mysql2: Failed to build gem native extension
- ERROR: Error installing json:ERROR: Failed to build gem native extension.解决
- 【Java并发编程】之七:使用synchronized获取互斥锁的几点说明
- Tame your Android apps power consumption — optimize for battery life
- 【C#】VS2010的Helloworld,输入输出、条件、循环、数组、类
- 软件设计之状态机
- am335x简介
- Windows下执行gem install 时ERROR: Failed to build gem native extension的解决办法.
- 【Java并发编程】之八:多线程环境中安全使用集合API(含代码)
- ASCII, LATIN1, UTF8 简介
- Mac如何设置多个桌面
- 自定义View
- cocoaPods
- 文件上传之解析EXCEL
- $(window).load(function() {})和$(document).ready(function(){})的区别
- ISO7816 ATR分析及高波特率设置