<?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>Wei&#039;s Blog &#187; Server</title>
	<atom:link href="http://Wei23.Net/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://Wei23.Net</link>
	<description>Successfully Reborned.</description>
	<lastBuildDate>Sun, 25 Apr 2010 08:45:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>zh</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>在CentOS5上安装Ruby1.9.1和Gems1.3.5</title>
		<link>http://Wei23.Net/diaries/install-ruby-gems-on-centos5/</link>
		<comments>http://Wei23.Net/diaries/install-ruby-gems-on-centos5/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 11:30:20 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[Diaries]]></category>
		<category><![CDATA[My Works]]></category>
		<category><![CDATA[Gems]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[编译]]></category>

		<guid isPermaLink="false">http://Wei23.Net/?p=626</guid>
		<description><![CDATA[由于CentOS默认源上的Ruby和Gems都很旧了，而且Gems还老出现Segmentation Fault，所以我打算给我的服务器更新最新的Ruby和Ruby Gems.
1. 编译安装Ruby 1.9.1

wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz
tar -xvf ruby-1.9.1-p243.tar.gz
cd ruby-1.9.1-p243
./configure --bindir=/usr/bin --sbindir=/usr/sbin/
make -j3
make install

2. 安装Gems

cd /root
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar -xvf rubygems-1.3.5.tgz
cd rubygems-1.3.5
ruby setup.rb

一切OK!
]]></description>
			<content:encoded><![CDATA[<p>由于CentOS默认源上的Ruby和Gems都很旧了，而且Gems还老出现Segmentation Fault，所以我打算给我的服务器更新最新的Ruby和Ruby Gems.</p>
<p>1. 编译安装Ruby 1.9.1</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.ruby-lang.org<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.9</span><span style="color: #000000; font-weight: bold;">/</span>ruby-1.9.1-p243.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> ruby-1.9.1-p243.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> ruby-1.9.1-p243
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--bindir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin <span style="color: #660033;">--sbindir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #660033;">-j3</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>2. 安装Gems</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>root
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">60718</span><span style="color: #000000; font-weight: bold;">/</span>rubygems-1.3.5.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> rubygems-1.3.5.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.3.5
ruby setup.rb</pre></div></div>

<p>一切OK!</p>
]]></content:encoded>
			<wfw:commentRss>http://Wei23.Net/diaries/install-ruby-gems-on-centos5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
