当我尝试安装任何宝石时,例如,json gem install json -V 它显示这样的消息
GET 301 Moved Permanently: http://gems.rubyforge.org/latest_specs.4.8.gz
GET 302 Moved Temporarily: https://rubygems.org/latest_specs.4.8.gz
GET 200 OK: https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz
GET 302 Moved Temporarily: https://rubygems.org/latest_specs.4.8.gz
GET 200 OK: https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz
GET 302 Moved Temporarily: https://rubygems.org/latest_specs.4.8.gz
GET 304 Not Modified: https://rubygems.global.ssl.fastly.net/latest_specs.4.8.gz
GET 302 Moved Temporarily: https://rubygems.org/quick/Marshal.4.8/json-1.1.5-x86-linux.gemspec.rz
GET 200 OK: https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/json-1.1.5-x86-linux.gemspec.rz
GET 302 Moved Temporarily: https://rubygems.org/quick/Marshal.4.8/json-2.0.2.gemspec.rz
GET 200 OK: https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/json-2.0.2.gemspec.rz
GET 301 Moved Permanently: http://gems.rubyforge.org/quick/Marshal.4.8/json-1.1.5-x86-linux.gemspec.rz
GET 302 Moved Temporarily: https://rubygems.org/quick/Marshal.4.8/json-1.1.5-x86-linux.gemspec.rz
GET 200 OK: https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/json-1.1.5-x86-linux.gemspec.rz
GET 301 Moved Permanently: http://gems.rubyforge.org/quick/Marshal.4.8/json-2.0.2.gemspec.rz
GET 302 Moved Temporarily: https://rubygems.org/quick/Marshal.4.8/json-2.0.2.gemspec.rz
GET 200 OK: https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/json-2.0.2.gemspec.rz
Installing gem json-2.0.2
*** buffer overflow detected ***: /usr/bin/ruby terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x76b3a1]
/usr/lib/ruby/1.8/i386-linux/syck.so(rb_syck_mktime+0x501)[0x11a601]
/usr/lib/ruby/1.8/i386-linux/syck.so(yaml_org_handler+0x838)[0x11af18]
/usr/lib/ruby/1.8/i386-linux/syck.so(syck_defaultresolver_node_import+0x3f)[0x11b27f]
几乎所有的宝石都会发生这种情况 我该怎么办呢? 提前致谢