ruby-on-rails – Ruby gem安装问题
发布时间:2020-12-17 03:49:15 所属栏目:百科 来源:网络整理
导读:我试图在 Windows上安装json如下,但它无法正常工作.请帮助我同样的可能的resoultion. C:Ruby193bingem install --local json-1.8.1.gemTemporarily enhancing PATH to include DevKit...Building native extensions. This could take a while...ERROR: Err
我试图在
Windows上安装json如下,但它无法正常工作.请帮助我同样的可能的resoultion.
C:Ruby193bin>gem install --local json-1.8.1.gem Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing json-1.8.1.gem: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe -r ./siteconf20140725-4216-11o740j.rb extconf.rb creating Makefile make clean Makefile:165: *** target pattern contains no `%'. Stop. make Makefile:165: *** target pattern contains no `%'. Stop. make failed,exit code 2 Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.1 for inspection. Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/json-1.8.1/gem_make.out 解决方法
RubyGems 2.4.1不会在Windows 1.9及更早版本的Windows上构建本机扩展.
您需要将RubyGems降级到1.8.29. gem update --system 1.8.29 检查宝石版: gem -v 1.8.29 现在再次尝试你的命令: gem install --local json-1.8.1.gem ref:https://groups.google.com/forum/#!topic/rubyinstaller/k19SeJijpKU/discussion (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |