PHPを使うことになったので、CentOS5.8にPHP5.3をインストールしました。yumコマンド一発です。
1 # cat /etc/redhat-release 2 CentOS release 5.8 (Final) 3 # 4 # rpm -qa | grep php 5 # 6 # yum install php 7 Loaded plugins: fastestmir ror 8 Loading mirror speeds from cached hostfile 9 * base: ftp.iij.ad .jp 10 * epel: ftp.tsukub a.wide.ad. jp 11 * extras: ftp.iij.ad .jp 12 * remi: rpms.famil lecollet.c om 13 * updates: ftp.iij.ad .jp 14 Setting up Install Process 15 Resolving Dependenci es 16 --> Running transactio n check 17 ---> Package php.x86_64 0:5.3.14-1 .el5.remi set to be updated 18 --> Processing Dependency : php-common = 5.3.14-1.e l5.remi for package: php 19 --> Processing Dependency : php-cli = 5.3.14-1.e l5.remi for package: php 20 --> Running transactio n check 21 ---> Package php-cli.x8 6_64 0:5.3.14-1 .el5.remi set to be updated 22 --> Processing Dependency : libedit.so .0()(64bit) for package: php-cli 23 ---> Package php-common .x86_64 0:5.3.14-1 .el5.remi set to be updated 24 --> Running transactio n check 25 ---> Package libedit.x8 6_64 0:2.11-2.2 0080712cvs .el5 set to be updated 26 --> Finished Dependency Resolution 27 28 Dependenci es Resolved 29 30 ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== 31 Package Arch Version Repository Size 32 ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== 33 Installing : 34 php x86_64 5.3.14-1.e l5.remi remi 2.8 M 35 Installing for dependenci es: 36 libedit x86_64 2.11-2.200 80712cvs.e l5 epel 80 k 37 php-cli x86_64 5.3.14-1.e l5.remi remi 2.6 M 38 php-common x86_64 5.3.14-1.e l5.remi remi 1.0 M 39 40 Transactio n Summary 41 ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== ========== 42 Install 4 Package(s) 43 Upgrade 0 Package(s) 44 45 Total download size: 6.5 M 46 Is this ok [y/N]: y 47 Downloadin g Packages: 48 http://ftp .tsukuba.w ide.ad.jp/ Linux/fedo ra/epel/5/ x86_64/lib edit-2.11- 2.20080712 cvs.el5.x8 6_64.rpm: [Errno 14] HTTP Error 404: Not Found 49 Trying other mirror. 50 (1/4): libedit-2. 11-2.20080 712cvs.el5 .x86_64.rp m | 80 kB 00:00 51 (2/4): php-common -5.3.14-1. el5.remi.x 86_64.rpm | 1.0 MB 00:03 52 (3/4): php-cli-5. 3.14-1.el5 .remi.x86_ 64.rpm | 2.6 MB 00:04 53 (4/4): php-5.3.14 -1.el5.rem i.x86_64.r pm | 2.8 MB 00:04 54 ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 55 Total 481 kB/s | 6.5 MB 00:13 56 Running rpm_check_ debug 57 Running Transactio n Test 58 Finished Transactio n Test 59 Transactio n Test Succeeded 60 Running Transactio n 61 62 WARNING : These php-* RPM are not official Fedora/Red hat build and 63 overrides the official ones. Don't file bugs on Fedora Project nor Redhat. 64 65 Use dedicated forums http://for ums.famill ecollet.co m/ 66 67 Installing : php-common 1/4 68 Installing : libedit 2/4 69 Installing : php-cli 3/4 70 Installing : php 4/4 71 72 Installed: 73 php.x86_64 0:5.3.14-1 .el5.remi 74 75 Dependency Installed: 76 libedit.x8 6_64 0:2.11-2.2 0080712cvs .el5 php-cli.x8 6_64 0:5.3.14-1 .el5.remi php-common .x86_64 0:5.3.14-1 .el5.remi 77 78 Complete! 79 # 80 # rpm -qa | grep php 81 php-common -5.3.14-1. el5.remi 82 php-cli-5. 3.14-1.el5 .remi 83 php-5.3.14 -1.el5.rem i 84 # php -v 85 PHP 5.3.14 (cli) (built: Jun 14 2012 21:26:11) 86 Copyright (c) 1997-2012 The PHP Group 87 Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologi es
posted by
akanuma
on Wed 11 Jul 2012
at 07:56