<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>船长日志 &#187; privoxy</title>
	<atom:link href="http://www.cslog.cn/tag/privoxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cslog.cn</link>
	<description>最让我激动的是不知道下一个星球上能发现什么...</description>
	<lastBuildDate>Wed, 30 Jul 2025 16:06:05 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>太恶心了&#8211; rubygems安装gem需要使用代理服务器了</title>
		<link>http://www.cslog.cn/Content/g-f-w-ni-ma-de/</link>
		<comments>http://www.cslog.cn/Content/g-f-w-ni-ma-de/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 07:43:14 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[privoxy]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rubygems]]></category>
		<category><![CDATA[rubyonrails]]></category>

		<guid isPermaLink="false">http://www.cslog.cn/?p=887</guid>
		<description><![CDATA[换了一台电脑，想用rubygems重新安装rails，但一直遇到各种如问题： s &#8230; <a href="http://www.cslog.cn/Content/g-f-w-ni-ma-de/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>换了一台电脑，想用rubygems重新安装rails，但一直遇到各种如问题：</p>
<pre>sudo gem install -v=2.3.9 rails
Password:
ERROR:  Could not find a valid gem 'rails' (= 2.3.9) in any repository
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    too many connection resets (http://production.s3.rubygems.org/latest_specs.4.8.gz)</pre>
<p>或</p>
<pre>ERROR: While executing gem ... (Gem::DependencyError)
  Unable to resolve dependencies: rails requires activesupport (= 3.0.5), actionpack (= 3.0.5), activerecord (= 3.0.5), activeresource (= 3.0.5), actionmailer (= 3.0.5), railties (= 3.0.5), bundler (~&gt; 1.0)</pre>
<p>google了半天（期间google中短NNN次），才明天了现在<a href="http://hi.baidu.com/sitoto/blog/item/d00fd658fa6f469c810a181e.html">使用rubygems 安装gem也得开代理了</a>。。。</p>
<p>要使用加了代理的命令：</p>
<pre>sudo gem install rails -p http://127.0.0.1:8118</pre>
<p>现在rubygems好像只支持http代理。 如果你使用的是socks代理，可以通过Privoxy（支持linux和mac)这个软件来搞一个http代理 通道， 详细参看<a href="http://www.cnblogs.com/another-wheel/archive/2011/11/16/setup-http-proxy-via-socks-and-privoxy.html">这个教程</a>。
<div style="margin-top: 15px; font-style: italic">
<p>转载请注明: 转自<a href="http://www.cslog.cn/">船长日志</a>, 本文链接地址: <a href="http://www.cslog.cn/Content/g-f-w-ni-ma-de/">http://www.cslog.cn/Content/g-f-w-ni-ma-de/</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cslog.cn/Content/g-f-w-ni-ma-de/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
