<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>DeMo (饭爷)</title>
    <link>https://ruby-china.org/DeMo</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>CentOS 下 gem sources 新增镜像遇到的报错，是缺少什么包所导致吗？</title>
      <description>&lt;p&gt;跟从地址&lt;a href="http://ruby-china.org/wiki/install_ruby_guidegem" rel="nofollow" target="_blank"&gt;http://ruby-china.org/wiki/install_ruby_guidegem&lt;/a&gt;的方式进行，理解 sources 的用法，但不知道为什么我新增镜像时会遇到这样的问题，推荐的所有镜像都无法新增。
``&lt;code&gt;gem sources -a http://gems.rubyforge.org
/usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in&lt;/code&gt;require': cannot load such file -- zlib (LoadError)
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in &lt;code&gt;require'
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems.rb:540:in&lt;/code&gt;gunzip'
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:239:in &lt;code&gt;fetch_path'
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:269:in&lt;/code&gt;load_specs'
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/commands/sources_command.rb:72:in &lt;code&gt;execute'
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in&lt;/code&gt;invoke'
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:in &lt;code&gt;process_args'
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in&lt;/code&gt;run'
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:in &lt;code&gt;run'
        from /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/gem:25:in&lt;/code&gt;&lt;/p&gt;'&lt;p&gt;&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;</description>
      <author>DeMo</author>
      <pubDate>Thu, 21 Mar 2013 10:52:12 +0800</pubDate>
      <link>https://ruby-china.org/topics/9629</link>
      <guid>https://ruby-china.org/topics/9629</guid>
    </item>
  </channel>
</rss>
