gpt4 book ai didi

ruby - 错误 : Error installing json: ERROR: Failed to build gem native extension

转载 作者:数据小太阳 更新时间:2023-10-29 07:31:51 24 4
gpt4 key购买 nike

我正在尝试安装 gem json 并收到 json 错误。

我在跑:

  • 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'
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>

最佳答案

这是一个迟到的回复,但可能对其他人有帮助。要安装 json '1.8.3',它需要软件包 'libgmp3-dev'。

使用以下步骤:

sudo apt-get install libgmp3-dev

gem install json -v '1.8.3'

关于ruby - 错误 : Error installing json: ERROR: Failed to build gem native extension,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31138639/

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