2017-10-13 1 views
0

나는 몇 시간 동안 이미 모든 것을 봤습니다. x64와 devkit x64를 사용하여 답변을 시도했습니다. 원래 incntct x32를 isntalled하지만 i는 삭제하고 올바른 x64를 설치했습니다. json 또는 (내 실제 대상) ruby-debug-ide -v 0.4를 설치하십시오. 이 튜토리얼 당 32 보석 버전 = 2.4.7 루비 버전 = 루비 2.4.2p198 (2017년 9월 14일 개정 59899) [64이-mingw32]보석 파일을 설치할 수 없습니다.

C:\WINDOWS\system32>gem install json 
Building native extensions. This could take a while... 
ERROR: Error installing json: 
     ERROR: Failed to build gem native extension. 

    C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20171013-12212-1y42085.rb extconf.rb 
creating Makefile 

make "DESTDIR=" clean 

make "DESTDIR=" 
generating generator-x64-mingw32.def 
compiling generator.c 
linking shared-object json/ext/generator.so 
c:/ruby24-x64/programing/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgmp 
collect2.exe: error: ld returned 1 exit status 
make: *** [generator.so] Error 1 

make failed, exit code 2 

Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/json-2.1.0 for inspection. 
Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/json-2.1.0/gem_make.out 
+0

GMP 라이브러리가 없거나 라이브러리 gmp를 제공하는 것처럼 보입니다. 내장 된 [JSON 라이브러리] (https://ruby-doc.org/stdlib-2.4.1/libdoc/json/rdoc/JSON.html)가있을 때 보석을 사용해야하는 이유가 있습니까? – tadman

답변

관련 문제