2017-10-13 1 views
0

Je suis sur ce sujet depuis quelques heures déjà tout sur Google. J'ai essayé des tonnes de réponses, im using ruby ​​x64 et devkit x64 (originalement estntalled l'incorect un x32 mais j'ai juste supprimé et ai installé le x64 correct) Cant installer json ou (ma cible réelle) ruby-debug-ide -v 0.4. 32 version bijou = 2.4.7 la version rubis = rubis 2.4.2p198 (14/09/2017 révision 59899) [x 64 mingw32]Impossible d'installer le fichier gem

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

Il semble qu'il manque la bibliothèque GMP, ou tout ce qui fournit la bibliothèque 'gmp'. Y a-t-il une raison pour laquelle vous devez utiliser la gemme quand il y a une [bibliothèque JSON] intégrée (https://ruby-doc.org/stdlib-2.4.1/libdoc/json/rdoc/JSON.html)? – tadman

Répondre