<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Redmagic</title>
	<atom:link href="http://shrineriver.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://shrineriver.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 24 Nov 2009 08:25:15 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='shrineriver.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/f60c8f126e91fcaf66f16796220f4daa?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Redmagic</title>
		<link>http://shrineriver.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://shrineriver.wordpress.com/osd.xml" title="Redmagic" />
	<atom:link rel='hub' href='http://shrineriver.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ruby/Gemsインストールメモ</title>
		<link>http://shrineriver.wordpress.com/2009/11/24/rubygems%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%83%a1%e3%83%a2/</link>
		<comments>http://shrineriver.wordpress.com/2009/11/24/rubygems%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%83%a1%e3%83%a2/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 08:25:15 +0000</pubDate>
		<dc:creator>shrineriverdragonarrow</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://shrineriver.wordpress.com/?p=42</guid>
		<description><![CDATA[記録しておくほどのこともないが、一応「CentOS 5.2」のサーバにRubyとGemsをインストールした際の手順をメモ。 OSのインストール時のオプションにも因ると思うが、デフォルトではRubyが入っていなかったのでyumでインストール。 Gemsはデフォルトのyumのリポジトリになかったので、Sourceから。 yumでRubyをインストール # yum -y install ruby ruby-devel ruby-irb ruby-libs ruby-rdoc Gemsをソースインストール # cd src # wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz # tar zxvf rubygems-1.3.5.tgz # cd rubygems-1.3.5 # ruby setup.rb &#160; たったこれだけ。yum便利過ぎる:-) 因みにCentOS5.2でデフォルトのyumリポジトリに登録されていたRuby関連のパッケージは次の通り： # yum list &#124; grep ruby ruby.i386 1.8.5-5.el5_3.7 base ruby-devel.i386 1.8.5-5.el5_3.7 base ruby-docs.i386 1.8.5-5.el5_3.7 base ruby-irb.i386 1.8.5-5.el5_3.7 base ruby-libs.i386 1.8.5-5.el5_3.7 base [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shrineriver.wordpress.com&amp;blog=10313467&amp;post=42&amp;subd=shrineriver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>記録しておくほどのこともないが、一応「CentOS 5.2」のサーバにRubyとGemsをインストールした際の手順をメモ。<br />
OSのインストール時のオプションにも因ると思うが、デフォルトではRubyが入っていなかったのでyumでインストール。<br />
Gemsはデフォルトのyumのリポジトリになかったので、Sourceから。</p>
<ol>
<li>yumでRubyをインストール<br />
<blockquote><p># yum -y install ruby ruby-devel ruby-irb ruby-libs ruby-rdoc</p></blockquote>
</li>
<li>Gemsをソースインストール<br />
<blockquote><p># cd src<br />
# wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz<br />
# tar zxvf rubygems-1.3.5.tgz<br />
# cd rubygems-1.3.5<br />
# ruby setup.rb</p></blockquote>
</li>
</ol>
<p>&nbsp;</p>
<p>たったこれだけ。yum便利過ぎる:-)<br />
因みにCentOS5.2でデフォルトのyumリポジトリに登録されていたRuby関連のパッケージは次の通り：</p>
<blockquote><p>
# yum list | grep ruby<br />
ruby.i386                                1.8.5-5.el5_3.7        base<br />
ruby-devel.i386                          1.8.5-5.el5_3.7        base<br />
ruby-docs.i386                           1.8.5-5.el5_3.7        base<br />
ruby-irb.i386                            1.8.5-5.el5_3.7        base<br />
ruby-libs.i386                           1.8.5-5.el5_3.7        base<br />
ruby-mode.i386                           1.8.5-5.el5_3.7        base<br />
ruby-rdoc.i386                           1.8.5-5.el5_3.7        base<br />
ruby-ri.i386                             1.8.5-5.el5_3.7        base<br />
ruby-tcltk.i386                          1.8.5-5.el5_3.7        base<br />
subversion-ruby.i386                     1.4.2-4.el5_3.1        base<br />
eruby.i386                               1.0.5-6.1              base<br />
eruby-devel.i386                         1.0.5-6.1              base<br />
eruby-libs.i386                          1.0.5-6.1              base<br />
libselinux-ruby.i386                     1.33.4-5.5.el5         base
</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shrineriver.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shrineriver.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shrineriver.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shrineriver.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shrineriver.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shrineriver.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shrineriver.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shrineriver.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shrineriver.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shrineriver.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shrineriver.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shrineriver.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shrineriver.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shrineriver.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shrineriver.wordpress.com&amp;blog=10313467&amp;post=42&amp;subd=shrineriver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shrineriver.wordpress.com/2009/11/24/rubygems%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%83%a1%e3%83%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6512c76b1e6cb5b8f55dbc67372607b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">r28</media:title>
		</media:content>
	</item>
		<item>
		<title>GoをXubuntuに入れてみる</title>
		<link>http://shrineriver.wordpress.com/2009/11/13/go%e3%82%92xubuntu%e3%81%ab%e5%85%a5%e3%82%8c%e3%81%a6%e3%81%bf%e3%82%8b/</link>
		<comments>http://shrineriver.wordpress.com/2009/11/13/go%e3%82%92xubuntu%e3%81%ab%e5%85%a5%e3%82%8c%e3%81%a6%e3%81%bf%e3%82%8b/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 16:38:33 +0000</pubDate>
		<dc:creator>shrineriverdragonarrow</dc:creator>
				<category><![CDATA[Go]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://shrineriver.wordpress.com/?p=38</guid>
		<description><![CDATA[先のエントリで会社のVM中のCentOSに入れたGoですが、帰宅して自宅PCのXubuntu上にも入れてみました。 基本的にインストール手順は同じ。 OS: Ubuntu 9.10 CPU: Atom 330 Memory: 1GB なので、環境変数「GOOS=”linux”」「GOARCH=”386″」も同じ&#8230; と思いましたが、Atom 330 だから64bitでいける筈! そんなわけで、「GOARCH=&#8221;amd64&#8243;」にしてみました。 で、 $ apt-cache pkgnames &#124; egrep &#8216;^(bison&#124;gcc&#124;libc6-dev&#124;ed)$&#8217; bison ed gcc libc6-dev となったので、取り敢えず必要とされるパッケージは揃ってるな&#8230; と思ったら然に非ず。 ナンかbisonでエラーが出ます&#8230;orz 仕方ないので $ sudo apt-get install bison とかすると、追加でm4関連のパッケージがインストールされました。なんだかなー さて気を取り直して&#8230; $ cd $GOROOT/src $ time ./all.bash [...snip...] %%%% making libcgo %%%% gcc -m64 -O2 -fPIC -o linux_amd64.o -c [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shrineriver.wordpress.com&amp;blog=10313467&amp;post=38&amp;subd=shrineriver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>先の<a href="http://shrineriver.wordpress.com/2009/11/12/18/" target="_self">エントリ</a>で会社のVM中のCentOSに入れたGoですが、帰宅して自宅PCのXubuntu上にも入れてみました。</p>
<p>基本的にインストール手順は同じ。</p>
<p>OS: Ubuntu 9.10<br />
CPU: Atom 330<br />
Memory: 1GB</p>
<p>なので、環境変数「GOOS=”linux”」「GOARCH=”386″」も同じ&#8230;<br />
と思いましたが、Atom 330 だから64bitでいける筈!</p>
<p>そんなわけで、「GOARCH=&#8221;amd64&#8243;」にしてみました。</p>
<p>で、</p>
<blockquote><p>$ apt-cache pkgnames | egrep &#8216;^(bison|gcc|libc6-dev|ed)$&#8217;<br />
bison<br />
ed<br />
gcc<br />
libc6-dev</p></blockquote>
<p>となったので、取り敢えず必要とされるパッケージは揃ってるな&#8230;<br />
と思ったら然に非ず。</p>
<p>ナンかbisonでエラーが出ます&#8230;orz</p>
<p>仕方ないので</p>
<blockquote><p>$ sudo apt-get install bison</p></blockquote>
<p>とかすると、追加でm4関連のパッケージがインストールされました。なんだかなー</p>
<p>さて気を取り直して&#8230;</p>
<blockquote><p>$ cd $GOROOT/src</p>
<p>$ time ./all.bash</p>
<p>[...snip...]</p>
<p>%%%% making libcgo %%%%</p>
<p>gcc -m64 -O2 -fPIC -o linux_amd64.o -c linux_amd64.c<br />
gcc -m64 -O2 -fPIC -o amd64.o -c amd64.S<br />
gcc -m64 -O2 -fPIC -o util.o -c util.c<br />
In file included from /usr/include/features.h:378,<br />
from /usr/include/stdint.h:26,<br />
from libcgo.h:5,<br />
from util.c:5:<br />
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory<br />
In file included from /usr/include/features.h:378,<br />
from /usr/include/pthread.h:23,<br />
from linux_amd64.c:5:<br />
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory<br />
make: *** [util.o] エラー 1<br />
make: *** 未完了のジョブを待っています&#8230;.<br />
make: *** [linux_amd64.o] エラー 1</p>
<p>real    1m18.451s<br />
user    2m58.555s<br />
sys    0m21.285s</p></blockquote>
<p>だめですた&#8230;orz<br />
そういやOSは32bit版を入れた気がする。64bit用のヘッダとか入ってるわけないか。</p>
<p>仕方無しにやっぱ32bitの「GOARCH=386」で。</p>
<blockquote><p>$ time ./all.bash</p>
<p>[...snip...]</p>
<p>&#8212; cd ../test<br />
0 known bugs; 0 unexpected bugs</p>
<p>real    6m56.743s<br />
user    7m52.618s<br />
sys    0m55.495s</p></blockquote>
<p>インストール完了。</p>
<p>ついでにTutorialの最初の一歩、恒例の「Hello,world」を。<br />
ちなみに $GOARCH が 386 だと、</p>
<ul>
<li>コンパイラ<br />
$GOBIN/8g</li>
<li>リンカ<br />
$GOBIN/8l</li>
</ul>
<p>みたいですな。なので&#8230;</p>
<blockquote><p>$ cd ~/work/dev<br />
$ vi helloworld.go</p>
<blockquote><p>/**<br />
*  Hello, world<br />
**/</p>
<p>package main<br />
import &#8220;fmt&#8221;</p>
<p>func main() {<br />
fmt.Printf(&#8220;Hello, world; or Καλημέρα κόσμε; or こんにちは 世界\n&#8221;);<br />
}</p></blockquote>
<p>$ 8g helloworld.go<br />
(→ helloworld.8 が作成される)<br />
$ 8l helloworld.8<br />
(→ 8.out が作られる)<br />
$ ./8.out<br />
Hello, world; or Καλημέρα κόσμε; or こんにちは 世界</p></blockquote>
<p>取り敢えず動いたところで今日はもう寝ることにしよう。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shrineriver.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shrineriver.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shrineriver.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shrineriver.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shrineriver.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shrineriver.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shrineriver.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shrineriver.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shrineriver.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shrineriver.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shrineriver.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shrineriver.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shrineriver.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shrineriver.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shrineriver.wordpress.com&amp;blog=10313467&amp;post=38&amp;subd=shrineriver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shrineriver.wordpress.com/2009/11/13/go%e3%82%92xubuntu%e3%81%ab%e5%85%a5%e3%82%8c%e3%81%a6%e3%81%bf%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6512c76b1e6cb5b8f55dbc67372607b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">r28</media:title>
		</media:content>
	</item>
		<item>
		<title>GoをCentOSに入れてみる</title>
		<link>http://shrineriver.wordpress.com/2009/11/12/18/</link>
		<comments>http://shrineriver.wordpress.com/2009/11/12/18/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 09:46:55 +0000</pubDate>
		<dc:creator>shrineriverdragonarrow</dc:creator>
				<category><![CDATA[Go]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://shrineriver.wordpress.com/?p=18</guid>
		<description><![CDATA[Googleから、謹製の新プログラミング言語、「Go」が発表された。 既に日本語でまとめて下さっている方がいらっしゃるので、読んでみる。 取敢えず、会社のPCのVMに入れてある CentOS に入れてみた。 OS: CentOS 5.4 必要なものを入れる ※bison、mercurial (mercurial はリポジトリからのソースの取得に使う) &#160; $ sudo yum -y install bison mercurial 環境作成 ディレクトリ作成 取敢えず $HOME の下に、デフォルトどおりのディレクトリ構成にしてみる。 &#160; $ cd $HOME $ mkdir go bin 環境変数設定 デフォルトどおりなら特に必要ないと思われるが一応。 また、私の場合はShellが zsh なので .zshrc を編集したが、 bash の場合は当然 .bashrc に読み替える。 &#160; $ vi ~/.zshrc ※以下を追記 &#8212;ここから&#8212; ## For Go export GOROOT=&#8221;$HOME/go&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shrineriver.wordpress.com&amp;blog=10313467&amp;post=18&amp;subd=shrineriver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Googleから、謹製の新プログラミング言語、「<a title="Go" href="http://golang.org/" target="_blank">Go</a>」が発表された。<br />
既に日本語でまとめて下さっている方がいらっしゃるので、<a title="inforno :: 個人的Go雑感&amp;メモ" href="http://inforno.net/articles/2009/11/11/go-language" target="_blank">読んでみる</a>。</p>
<p>取敢えず、会社のPCのVMに入れてある CentOS に入れてみた。</p>
<p>OS: CentOS 5.4</p>
<ol>
<li>必要なものを入れる<br />
※bison、mercurial (mercurial はリポジトリからのソースの取得に使う)
<p>&nbsp;</p>
<blockquote><p>$ sudo yum -y install bison mercurial</p></blockquote>
</li>
<li>環境作成
<ul>
<li>ディレクトリ作成<br />
取敢えず $HOME の下に、デフォルトどおりのディレクトリ構成にしてみる。
<p>&nbsp;</p>
<blockquote><p>$ cd $HOME<br />
$ mkdir go bin</p></blockquote>
</li>
<li>環境変数設定<br />
デフォルトどおりなら特に必要ないと思われるが一応。<br />
また、私の場合はShellが zsh なので .zshrc を編集したが、 bash の場合は当然 .bashrc に読み替える。
<p>&nbsp;</p>
<blockquote><p>$ vi ~/.zshrc</p>
<p>※以下を追記<br />
&#8212;ここから&#8212;<br />
## For Go<br />
export GOROOT=&#8221;$HOME/go&#8221;<br />
export GOOS=&#8221;linux&#8221;<br />
export GOARCH=&#8221;386&#8243;<br />
export GOBIN=&#8221;$HOME/bin&#8221;<br />
&#8212;ここまで&#8212;</p>
<p>$ source ~/.zshrc</p></blockquote>
</li>
<li>ソースをリポジトリから取得<br />
<blockquote><p>$ hg clone -r release https://go.googlecode.com/hg/ $GOROOT</p></blockquote>
<p>$GOROOT 以下のディレクトリ構成は以下のようになっている。</p>
<blockquote><p>$ ll $GOROOT<br />
合計 48<br />
-rw-rw-r&#8211; 1   333 11月 12 16:54 AUTHORS<br />
-rw-rw-r&#8211; 1  1894 11月 12 16:54 CONTRIBUTORS<br />
-rw-rw-r&#8211; 1  1557 11月 12 16:54 LICENSE<br />
-rw-rw-r&#8211; 1   468 11月 12 16:54 README<br />
drwxrwxr-x 4  4096 11月 12 16:54 doc<br />
-rw-rw-r&#8211; 1   785 11月 12 16:54 favicon.ico<br />
drwxrwxr-x 2  4096 11月 12 16:54 include<br />
drwxrwxr-x 4  4096 11月 12 16:54 lib<br />
drwxrwxr-x 6  4096 11月 12 16:54 misc<br />
drwxrwxr-x 2  4096 11月 12 16:54 pkg<br />
drwxrwxr-x 8  4096 11月 12 16:54 src<br />
drwxrwxr-x 9  4096 11月 12 16:54 test</p></blockquote>
</li>
</ul>
</li>
<li>インストール<br />
<blockquote><p>$ cd $GOROOT<br />
$ ./all.bash</p></blockquote>
<p>ラスト、以下のように表示されて終了。</p>
<blockquote><p>&#8212; cd ../test<br />
0 known bugs; 0 unexpected bugs</p></blockquote>
</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shrineriver.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shrineriver.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shrineriver.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shrineriver.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shrineriver.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shrineriver.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shrineriver.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shrineriver.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shrineriver.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shrineriver.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shrineriver.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shrineriver.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shrineriver.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shrineriver.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shrineriver.wordpress.com&amp;blog=10313467&amp;post=18&amp;subd=shrineriver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shrineriver.wordpress.com/2009/11/12/18/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6512c76b1e6cb5b8f55dbc67372607b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">r28</media:title>
		</media:content>
	</item>
		<item>
		<title>[メモ]PHPインストールメモ</title>
		<link>http://shrineriver.wordpress.com/2009/11/09/%e3%83%a1%e3%83%a2php%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%83%a1%e3%83%a2/</link>
		<comments>http://shrineriver.wordpress.com/2009/11/09/%e3%83%a1%e3%83%a2php%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%83%a1%e3%83%a2/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 11:20:27 +0000</pubDate>
		<dc:creator>shrineriverdragonarrow</dc:creator>
				<category><![CDATA[PHP/CakePHP]]></category>
		<category><![CDATA[インストール]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://shrineriver.wordpress.com/?p=8</guid>
		<description><![CDATA[CentOS5.2にPHP5.3.0をSourceからインストールした際のメモ。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shrineriver.wordpress.com&amp;blog=10313467&amp;post=8&amp;subd=shrineriver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>CentOS5.2にPHP5.3.0をSourceからインストールした際のメモ。</p>
<ol>
<li>RPM版PHPを削除</li>
<blockquote><p>
# yum -y remove php
</p></blockquote>
<li>事前に必要なものをyumでインストールしておく</li>
<blockquote><p># yum -y install \<br />
httpd-devel \<br />
libxml2-devel \<br />
curl-devel \<br />
gd-devel \<br />
libjpeg-devel \<br />
libpng-devel \</p></blockquote>
<li>ソースをダウンロード</li>
<blockquote><p># mkdir src &amp;&amp; cd src<br />
# wget http://jp.php.net/get/php-5.3.0.tar.gz/from/this/mirror<br />
# tar php-5.3.0.tar.gz<br />
# cd php-5.3.0</p></blockquote>
<li>configure/make</li>
<blockquote><p># ./configure \<br />
&#8211;prefix=/usr/local/php5 \<br />
&#8211;with-apxs2filter=/usr/sbin/apxs \<br />
&#8211;with-pgsql=/usr \<br />
&#8211;with-gd \<br />
&#8211;with-zlib \<br />
&#8211;with-zlib-dir=/usr \<br />
&#8211;with-png-dir=/usr \<br />
&#8211;with-jpeg-dir=/usr \<br />
&#8211;with-freetype-dir=/usr \<br />
&#8211;enable-gd-native-ttf \<br />
&#8211;enable-mbstring \<br />
&#8211;enable-mbregex \<br />
&#8211;enable-bcmath \<br />
&#8211;with-mysql \<br />
&#8211;with-zlib \<br />
&#8211;with-openssl \<br />
&#8211;with-curl<br />
# make &amp;&amp; make install</p></blockquote>
<li>/usr/local/php → /usr/local/php5 へ Symbolic Link 作成</li>
<blockquote><p>
# cd /usr/local/<br />
# ln -s php5 php
</p></blockquote>
<li>php.ini作成</li>
<blockquote><p>
# cp ~/src/php-5.3.0/php.ini-production /usr/local/php/lib/php.ini
</p></blockquote>
<li>profileを編集</li>
<blockquote><p>
# vi /etc/profile<br />
※以下を追記<br />
&#8212;ここから&#8212;<br />
# PHP<br />
PATH=/usr/local/php:/usr/local/php/bin:&#8221;$PATH&#8221;<br />
&#8212;ここまで&#8212;<br />
# source /etc/profile
</p></blockquote>
<li>Apacheを再起動</li>
<blockquote><p>
# /etc/init.d/httpd restart
</p></blockquote>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shrineriver.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shrineriver.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shrineriver.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shrineriver.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shrineriver.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shrineriver.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shrineriver.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shrineriver.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shrineriver.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shrineriver.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shrineriver.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shrineriver.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shrineriver.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shrineriver.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shrineriver.wordpress.com&amp;blog=10313467&amp;post=8&amp;subd=shrineriver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shrineriver.wordpress.com/2009/11/09/%e3%83%a1%e3%83%a2php%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%83%a1%e3%83%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6512c76b1e6cb5b8f55dbc67372607b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">r28</media:title>
		</media:content>
	</item>
	</channel>
</rss>
