Ruby JSON gem安装错误:Ruby 2.4.1,JSON 1.8.6(Windows 10) [英] Ruby JSON gem install error: Ruby 2.4.1, JSON 1.8.6 (Windows 10)
问题描述
正在运行 gem install json
并收到以下错误消息
提取:json-1.8.6.gem(100%)
为MSYS / MINGW临时增强PATH ...
构建原生扩展。这可能需要一段时间...
1 [main] make 8392 child_info_fork :: abort:C:\msys32\usr\bin\msys-intl-8.dll:加载到不同的地址:父项(0x30000)!= child(0x20000)
1 [main] make 332 child_info_fork :: abort:C:\msys32\usr\bin\msys-intl-8.dll:加载到不同的地址: parent(0x20000)!= child(0x30000)
错误:安装json时出错:
错误:无法构建gem原生扩展。
当前目录:C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.6/ext/json/ext/generator
C:/ Ruby24-x64 / bin / ruby.exe -r ./siteconf20170904-8096-t8xlbq.rb extconf.rb
创建Makefile
当前目录:C:/ Ruby24-x64 / lib / ruby /gems/2.4.0/gems/json-1.8.6/ext/json/ext/generator
makeDESTDIR =clean
1 [main] make 8392 child_info_fork :: abort:C:\\ \\msys32\usr\bin\msys-intl-8.dll:加载到不同的地址:parent(0x30000)!= child(0x20000)
make:fork:资源暂时不可用
当前目录:C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.6/ext/json/ext/generator
makeDESTDIR =
生成generator-x64-mingw32.def
1 [main] make 332 child_info_fork :: abort:C:\msys32\usr\bin\msys-intl-8.dll:加载到不同的地址:父项(0x20000)!=子(0x30000)
make:fork:资源暂时不可用
失败,退出代码2
Gem文件将保持安装在C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.6中进行检查。
记录到C的结果:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/json-1.8.6/gem_make.out
使用
- Ruby 2.4.1
- Windows 10(x64)
$ b 在Google或这里找不到任何帖子。 / p>
任何想法都不胜感激。
解决方案Ruby 2.4依赖于json> = 2.0 ,你是试图安装json 1.8.6。它们不兼容。确保两个版本兼容,然后重试您的操作。
Running
gem install json
and receiving the following errorFetching: json-1.8.6.gem (100%) Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while... 1 [main] make 8392 child_info_fork::abort: C:\msys32\usr\bin\msys-intl-8.dll: Loaded to different address: parent(0x30000) != child(0x20000) 1 [main] make 332 child_info_fork::abort: C:\msys32\usr\bin\msys-intl-8.dll: Loaded to different address: parent(0x20000) != child(0x30000) ERROR: Error installing json: ERROR: Failed to build gem native extension. current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.6/ext/json/ext/generator C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20170904-8096-t8xlbq.rb extconf.rb creating Makefile current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.6/ext/json/ext/generator make "DESTDIR=" clean 1 [main] make 8392 child_info_fork::abort: C:\msys32\usr\bin\msys-intl-8.dll: Loaded to different address: parent(0x30000) != child(0x20000) make: fork: Resource temporarily unavailable current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.6/ext/json/ext/generator make "DESTDIR=" generating generator-x64-mingw32.def 1 [main] make 332 child_info_fork::abort: C:\msys32\usr\bin\msys-intl-8.dll: Loaded to different address: parent(0x20000) != child(0x30000) make: fork: Resource temporarily unavailable make failed, exit code 2 Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-1.8.6 for inspection. Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/json-1.8.6/gem_make.out
Using
- Ruby 2.4.1
- Windows 10 (x64)
Can't find any posts on Google or here.
Any thoughts would be appreciated.
解决方案Ruby 2.4 relies on json >= 2.0 and you are attempting to install json 1.8.6. They are incompatible. Ensure the two versions are compatible then retry your operation.
这篇关于Ruby JSON gem安装错误:Ruby 2.4.1,JSON 1.8.6(Windows 10)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!