その後、yum で必要なパッケージをインストールしてみた。
[root@centos3 /]# yum install php-mysql Gathering header information file(s) from server(s) Server: CentOS-3 - Addons Server: CentOS-3 - Base Server: CentOS-3 - Extras Server: CentOS-3 - Updates Finding updated packages Downloading needed headers Resolving dependencies ..Dependencies resolved I will do the following: [install: php-mysql 4.3.2-37.ent.i386] I will install/upgrade these to satisfy the dependencies: [deps: php-devel 4.3.2-37.ent.i386] [deps: php-pgsql 4.3.2-37.ent.i386] [deps: php-ldap 4.3.2-37.ent.i386] [deps: php-odbc 4.3.2-37.ent.i386] [deps: php 4.3.2-37.ent.i386] [deps: php-imap 4.3.2-37.ent.i386] Is this ok [y/N]: y Downloading Packages Getting php-mysql-4.3.2-37.ent.i386.rpm php-mysql-4.3.2-37.ent.i3 0% | | 0 B --:-- ETA php-mysql-4.3.2-37.ent.i3 25% |====== | 8.0 kB 00:00 ETA php-mysql-4.3.2-37.ent.i3 51% |============ | 16 kB 00:00 ETA php-mysql-4.3.2-37.ent.i3 77% |=================== | 24 kB 00:00 ETA php-mysql-4.3.2-37.ent.i3 100% |=========================| 31 kB 00:01 warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 025e513b Error: Could not find the GPG Key necessary to validate pkg /var/cache/yum/update/packages/php-mysql-4.3.2-37.ent.i386.rpm Error: You may want to run yum clean or remove the file: /var/cache/yum/update/packages/php-mysql-4.3.2-37.ent.i386.rpm Error: You may also check that you have the correct GPG keys installed
あれ。。?エラーが出た。GPG Key が見つからない??どういうことだろう。。
とりあえずちょっとググって
[root@centos3 /]# rpm --import /usr/share/rhn/RPM-GPG-KEY
を実行。で、念のため(きっと必要ないだろうけど。。)、以下も実行。
[root@centos3 /]# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3
で、再度挑戦。
[root@centos3 root]# yum install php-mysql Gathering header information file(s) from server(s) Server: CentOS-3 - Addons Server: CentOS-3 - Base Server: CentOS-3 - Extras Server: CentOS-3 - Updates Finding updated packages Downloading needed headers Resolving dependencies ..Dependencies resolved I will do the following: [install: php-mysql 4.3.2-37.ent.i386] I will install/upgrade these to satisfy the dependencies: [deps: php-pgsql 4.3.2-37.ent.i386] [deps: php-ldap 4.3.2-37.ent.i386] [deps: php-devel 4.3.2-37.ent.i386] [deps: php-odbc 4.3.2-37.ent.i386] [deps: php 4.3.2-37.ent.i386] [deps: php-imap 4.3.2-37.ent.i386] Is this ok [y/N]: y Downloading Packages Getting php-ldap-4.3.2-37.ent.i386.rpm php-ldap-4.3.2-37.ent.i38 100% |=========================| 30 kB 00:00 Getting php-devel-4.3.2-37.ent.i386.rpm php-devel-4.3.2-37.ent.i3 100% |=========================| 702 kB 00:02 Getting php-odbc-4.3.2-37.ent.i386.rpm php-odbc-4.3.2-37.ent.i38 100% |=========================| 37 kB 00:00 Getting php-4.3.2-37.ent.i386.rpm php-4.3.2-37.ent.i386.rpm 100% |=========================| 1.9 MB 00:09 Getting php-imap-4.3.2-37.ent.i386.rpm php-imap-4.3.2-37.ent.i38 100% |=========================| 420 kB 00:01 Running test transaction: Test transaction complete, Success! php 100 % done 1/13 php-mysql 100 % done 2/13 php-pgsql 100 % done 3/13 php-ldap 100 % done 4/13 php-devel 100 % done 5/13 php-odbc 100 % done 6/13 php-imap 100 % done 7/13 Completing update for php-pgsql - 8/13 Completing update for php-ldap - 9/13 Completing update for php-devel - 10/13 Completing update for php-odbc - 11/13 Completing update for php - 12/13 Completing update for php-imap - 13/13 Installed: php-mysql 4.3.2-37.ent.i386 Dep Installed: php-pgsql 4.3.2-37.ent.i386 php-ldap 4.3.2-37.ent.i386 php-devel 4.3.2-37.ent.i386 php-odbc 4.3.2-37.ent.i386 php 4.3.2-37.ent.i386 php-imap 4.3.2-37.ent.i386 Transaction(s) Complete
おー、いったいった。後は立て続けに、mysql-bench、MySQL-python、mod_auth_mysql、MyODBC、perl-DBD-MySQL、libdbi-dbd-mysql、qt-MySQL をインストール。
全部完了ー!んで、MTをアップロードして mt-check.cgi を実行してみた。
DBD::mysql がインストールされているとのこと。成功!!
やっとこれで MySQL 3.23 から 4.1 にアップグレードできた。
なんか疲れたなー。。もっと簡単な方法ないんだろうか。
コメント