• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

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: fastestmirror
   8  Loading mirror speeds from cached hostfile
   9   * base: ftp.iij.ad.jp
  10   * epel: ftp.tsukuba.wide.ad.jp
  11   * extras: ftp.iij.ad.jp
  12   * remi: rpms.famillecollet.com
  13   * updates: ftp.iij.ad.jp
  14  Setting up Install Process
  15  Resolving Dependencies
  16  --> Running transaction 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.el5.remi for package: php
  19  --> Processing Dependency: php-cli = 5.3.14-1.el5.remi for package: php
  20  --> Running transaction check
  21  ---> Package php-cli.x86_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 transaction check
  25  ---> Package libedit.x86_64 0:2.11-2.20080712cvs.el5 set to be updated
  26  --> Finished Dependency Resolution
  27  
  28  Dependencies Resolved
  29  
  30  ========================================================================================================================
  31   Package                    Arch                   Version                                   Repository            Size
  32  ========================================================================================================================
  33  Installing:
  34   php                        x86_64                 5.3.14-1.el5.remi                         remi                 2.8 M
  35  Installing for dependencies:
  36   libedit                    x86_64                 2.11-2.20080712cvs.el5                    epel                  80 k
  37   php-cli                    x86_64                 5.3.14-1.el5.remi                         remi                 2.6 M
  38   php-common                 x86_64                 5.3.14-1.el5.remi                         remi                 1.0 M
  39  
  40  Transaction 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  Downloading Packages:
  48  http://ftp.tsukuba.wide.ad.jp/Linux/fedora/epel/5/x86_64/libedit-2.11-2.20080712cvs.el5.x86_64.rpm: [Errno 14] HTTP Error 404: Not Found
  49  Trying other mirror.
  50  (1/4): libedit-2.11-2.20080712cvs.el5.x86_64.rpm                                                 |  80 kB     00:00
  51  (2/4): php-common-5.3.14-1.el5.remi.x86_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.remi.x86_64.rpm                                                          | 2.8 MB     00:04
  54  ------------------------------------------------------------------------------------------------------------------------
  55  Total                                                                                   481 kB/s | 6.5 MB     00:13
  56  Running rpm_check_debug
  57  Running Transaction Test
  58  Finished Transaction Test
  59  Transaction Test Succeeded
  60  Running Transaction
  61  
  62  WARNING : These php-* RPM are not official Fedora/Redhat build and
  63  overrides the official ones. Don't file bugs on Fedora Project nor Redhat.
  64  
  65  Use dedicated forums http://forums.famillecollet.com/
  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.x86_64 0:2.11-2.20080712cvs.el5   php-cli.x86_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.remi
  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 Technologies

posted by Png akanuma on Wed 11 Jul 2012 at 07:56

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry2146
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ