ruby删除了原来的ruby源更新成淘宝的出错

图片说明
删除原来的ruby源 要想用淘宝的结果就报错,望大神解救
gem source -a http://ruby.taobao.org
/usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require': no such file to load -- zlib (LoadError)
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems.rb:540:in gunzip'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:239:in
fetch_path'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:269:in load_specs'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/commands/sources_command.rb:72:in
execute'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/command.rb:278:in invoke'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:147:in
process_args'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:117:in run'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:65:in
run'
from /usr/local/ruby-1.8/bin/gem:30

1个回答

图片打不开,不过ruby环境配置可以参考下。
http://blog.csdn.net/u013346305/article/details/47260159

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐