错误:安装json时出错:错误:无法构建gem本机扩展 [英] ERROR: Error installing json: ERROR: Failed to build gem native extension

查看:202
本文介绍了错误:安装json时出错:错误:无法构建gem本机扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在运行:

    >
  • Windows 8.1(64位)

  • Ruby:ruby 1.9.3p545(2014-02-24)[i386-mingw32]
  • gem:1.8.2


  
D:\GIT \calabash> gem install json -v'1.8.3'
构建原生扩展。这可能需要一段时间...
系统找不到指定的路径。
错误:安装json时出错:
错误:无法构建gem本机扩展。
C:/Ruby193/bin/ruby.exe extconf.rb
创建Makefile
Gem文件将保持安装在C:/Ruby193/lib/ruby/gems/1.9.1/gems/ json-1.8.3进行检查。
记录到C的结果:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.3/ext/json/ext/generator/gem_make.out

D :\GIT\calabash>


解决方案

回应,但可能会帮助其他人。安装json'1.8.3'需要包'libgmp3-dev'。



使用以下步骤:

  sudo apt-get install libgmp3-dev 

gem install json -v'1.8.3'


I am trying to install gem json and getting error for json.

I'm running:

  • Windows 8.1 (64 bit)
  • Ruby: ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
  • gem: 1.8.2


D:\GIT\calabash>gem install json -v '1.8.3'
Building native extensions.  This could take a while...
The system cannot find the path specified.
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
creating Makefile
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.3 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.3/ext/json/ext/generator/gem_make.out

D:\GIT\calabash>

解决方案

Its a late response, but may it helps someone else. to install json '1.8.3' it requires packages 'libgmp3-dev'.

Use following steps:

sudo apt-get install libgmp3-dev

gem install json -v '1.8.3'

这篇关于错误:安装json时出错:错误:无法构建gem本机扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆