~ ruby -vruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]~ gem -v2.0.0.rc.2~ gem List Json*** LOCAL GEMS ***Json (1.7.7)~ gem install vagrantBuilding native extensions. This Could take a while...ERROR: Error installing vagrant: ERROR: Failed to build gem native extension. /home/user_name/.rvm/rubIEs/ruby-2.0.0-p0/bin/ruby extconf.rbchecking for ruby/re.h... yeschecking for ruby/enCoding.h... yescreating Makefilemakecompiling generator.cgenerator.c: In function ‘cState_aref’:generator.c:736:5: warning: variable ‘state’ set but not used [-Wunused-but-set-variable]linking shared-object Json/ext/generator.somake install/usr/bin/install -c -m 0755 generator.so /home/user_name/.rvm/gems/ruby-2.0.0-p0/gems/Json-1.5.5/ext/Json/ext/Json/ext/usr/bin/install: cannot create regular file `/home/user_name/.rvm/gems/ruby-2.0.0-p0/gems/Json-1.5.5/ext/Json/ext/Json/ext': No such file or directorymake: *** [install-so] Error 1Gem files will remain installed in /home/user_name/.rvm/gems/ruby-2.0.0-p0/gems/Json-1.5.5 for inspection.Results logged to /home/user_name/.rvm/gems/ruby-2.0.0-p0/gems/Json-1.5.5/ext/Json/ext/generator/gem_make.out
我想,它在构建gem并获得上述错误时使用/home/user_name/.rvm/gems/ruby-2.0.0-p0/gems/中的Json-1.5.5.
我尝试重新安装最新的Json-1.7.7 gem,但仍然无法安装.
解决方法 使用:gem update –system更新你的rubygems以下是解决此问题的提交:https://github.com/rubygems/rubygems/commit/1ca11d00833bbca33215ff581303d1fee8f2d1ef
总结以上是内存溢出为你收集整理的错误:在ruby 2.0.0中安装vagrant gem全部内容,希望文章能够帮你解决错误:在ruby 2.0.0中安装vagrant gem所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)