问题描述
- 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:ingem_original_require': no such file to load -- zlib (LoadError)
require'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems.rb:540:ingunzip'
fetch_path'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:239:in
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:269:inload_specs'
execute'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/commands/sources_command.rb:72:in
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/command.rb:278:ininvoke'
process_args'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:147:in
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:117:inrun'
run'
from /usr/local/ruby-1.8/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:65:in
from /usr/local/ruby-1.8/bin/gem:30
解决方案
图片打不开,不过ruby环境配置可以参考下。
http://blog.csdn.net/u013346305/article/details/47260159
解决方案二:
关于ruby中的yield
时间: 2024-11-30 11:18:36