PHPアップデートその後 (GD入ってない→utterramblingsドゾー)
先日、remi.repoでいれたPHP、バージョンがあがったはいいけど、GDとか入ってない!
この前yumでいれたPHP。GDがwithoutになってるー。もう、全部いりにしておいてよ!環境によってあったりなかったりめんどくさいってつぶやいてたら
sotarokさんにアドバイスいただいた。
@fslasht あーっと,ブログ読んだんですけど, utterramblings のリポジトリを使ったらいかがでしょうか. > yum で PHP 最新版 http://bit.ly/RAmBF
@fslasht あと, yum で入るバイナリで配布されてるやつはだいたいほぼすべてが without になっていて,追加モジュールを php-* で配布して ini で extension=hoge.so という感じで読み込む形式のものが多いですよありがとうございます。
うーん、拡張についてはwithoutってされてたら絶対あとから入らないのかと思ってたorz
utterramblingsの解説を見ながらインストール
環境はこんな感じデス
$ uname -a
Linux www.dokokano.net 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:18:27 EST 2009 i686 i686 i386 GNU/Linux
$ cat /etc/redhat-release
CentOS release 5.4 (Final)
(1).rootになって以下を実行
rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
(2) 「etc/sysconfig/rhn/sources」ファイルに以下を追加
# Enable Jason's Utter Ramblings Repo
yum utterramblings http://www.jasonlitka.com/media/EL4/$ARCH
(3) 「/etc/yum.repos.d/utterramblings.repo」ファイルを新規作成して以下を入力
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
(4) とりあえず古いPHPを削除 ※いらんかも
yum remove php*
(5) PHPインストール
yum --enablerepo=utterramblings install php
(6) Pearとか必要なモジュールをインストール
yum --enablerepo=utterramblings install php-pear
yum --enablerepo=utterramblings install php-gd
:
:
(7) apahce再起動
service httpd restartで、完了
「--enablerepo=utterramblings 」は不要かな。とりあえずつけてみた。