wget
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
[centos@ip-172-31-16-82 slab-nss]$ sudo yum install wget Loaded plugins: fastestmirror, presto Setting up Install Process Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.12-10.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================================ Installing: wget x86_64 1.12-10.el6 base 484 k Transaction Summary ================================================================================================================================================================================================================ Install 1 Package(s) |
epel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[centos@ip-172-31-16-82 slab-nss]$ wget http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/Packages/e/epel-release-6-8.noarch.rpm --2018-07-07 08:34:08-- http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/Packages/e/epel-release-6-8.noarch.rpm Resolving ftp.riken.jp... 134.160.38.1 Connecting to ftp.riken.jp|134.160.38.1|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 14540 (14K) [application/x-rpm] Saving to: “epel-release-6-8.noarch.rpm” 100%[======================================================================================================================================================================>] 14,540 --.-K/s in 0.006s 2018-07-07 08:34:08 (2.30 MB/s) - “epel-release-6-8.noarch.rpm” saved [14540/14540] [centos@ip-172-31-16-82 slab-nss]$ sudo rpm -ivh ./epel-release-6-8.noarch.rpm warning: ./epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing... ########################################### [100%] 1:epel-release ########################################### [100%] |
php5.5を入れるために
1 2 3 4 5 |
[centos@ip-172-31-16-82 slab-nss]$ sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpm warning: /var/tmp/rpm-tmp.9t2Bg0: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY Preparing... ########################################### [100%] 1:remi-release ########################################### [100%] |
pip
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
[centos@ip-172-31-16-82 slab-nss]$ sudo yum install --enablerepo=epel python-pip Loaded plugins: fastestmirror, presto Setting up Install Process Loading mirror speeds from cached hostfile epel/metalink | 7.7 kB 00:00 * base: ftp.iij.ad.jp * epel: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp epel | 3.2 kB 00:00 epel/primary | 3.2 MB 00:00 epel 12515/12515 Resolving Dependencies --> Running transaction check ---> Package python-pip.noarch 0:7.1.0-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================ Package Arch Version Repository Size ================================================================================================================================================================================================================ Installing: python-pip noarch 7.1.0-1.el6 epel 1.5 M Transaction Summary ================================================================================================================================================================================================================ Install 1 Package(s) Total download size: 1.5 M Installed size: 6.6 M Is this ok [y/N]: y Downloading Packages: Setting up and reading Presto delta metadata epel/prestodelta | 770 B 00:00 Processing delta metadata Package(s) data still to download: 1.5 M python-pip-7.1.0-1.el6.noarch.rpm | 1.5 MB 00:00 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 Importing GPG key 0x0608B895: Userid : EPEL (6) <epel@fedoraproject.org> Package: epel-release-6-8.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : python-pip-7.1.0-1.el6.noarch 1/1 Verifying : python-pip-7.1.0-1.el6.noarch 1/1 Installed: python-pip.noarch 0:7.1.0-1.el6 Complete! |
aws cli
1 2 3 |
[centos@ip-172-31-16-82 slab-nss]$ sudo pip install awscli ・・・ Successfully installed awscli-1.15.53 botocore-1.10.52 colorama-0.3.9 docutils-0.14 futures-3.2.0 jmespath-0.9.3 ordereddict-1.1 pyasn1-0.4.3 python-dateutil-2.6.1 rsa-3.4.2 s3transfer-0.1.13 simplejson-3.3.0 |
https://docs.aws.amazon.com/ja_jp/cli/latest/userguide/awscli-install-linux.html
php5.5
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
[centos@ip-172-31-16-82 slab-nss]$ sudo yum install --enablerepo=remi --enablerepo=remi-php55 php Loaded plugins: fastestmirror, presto Setting up Install Process Loading mirror speeds from cached hostfile epel/metalink * base: ftp.iij.ad.jp * epel: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * remi: ftp.riken.jp * remi-php55: ftp.riken.jp * remi-safe: ftp.riken.jp * updates: ftp.iij.ad.jp base extras remi remi/primary_db remi-php55 remi-php55/primary_db remi-safe remi-safe/primary_db updates Resolving Dependencies --> Running transaction check ---> Package php.x86_64 0:5.3.3-49.el6 will be updated ---> Package php.x86_64 0:5.5.38-8.el6.remi will be an update --> Processing Dependency: php-common(x86-64) = 5.5.38-8.el6.remi for package: php-5.5.38-8.el6.remi.x86_64 --> Processing Dependency: php-cli(x86-64) = 5.5.38-8.el6.remi for package: php-5.5.38-8.el6.remi.x86_64 --> Running transaction check ---> Package php-cli.x86_64 0:5.3.3-49.el6 will be updated ---> Package php-cli.x86_64 0:5.5.38-8.el6.remi will be an update ---> Package php-common.x86_64 0:5.3.3-49.el6 will be updated ---> Package php-common.x86_64 0:5.5.38-8.el6.remi will be an update --> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.38-8.el6.remi.x86_64 --> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.5.38-8.el6.remi.x86_64 --> Running transaction check ---> Package php-pecl-jsonc.x86_64 0:1.3.10-2.el6.remi.5.5 will be installed ---> Package php-pecl-zip.x86_64 0:1.15.3-1.el6.remi.5.5 will be installed --> Processing Dependency: libzip5(x86-64) >= 1.5.1 for package: php-pecl-zip-1.15.3-1.el6.remi.5.5.x86_64 --> Processing Dependency: libzip.so.5()(64bit) for package: php-pecl-zip-1.15.3-1.el6.remi.5.5.x86_64 --> Running transaction check ---> Package libzip5.x86_64 0:1.5.1-1.el6.remi will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================= Package Arch Version ======================================================================================================================================================= Updating: php x86_64 5.5.38-8.el6.remi Installing for dependencies: libzip5 x86_64 1.5.1-1.el6.remi php-pecl-jsonc x86_64 1.3.10-2.el6.remi.5.5 php-pecl-zip x86_64 1.15.3-1.el6.remi.5.5 Updating for dependencies: php-cli x86_64 5.5.38-8.el6.remi php-common x86_64 5.5.38-8.el6.remi Transaction Summary ======================================================================================================================================================= Install 3 Package(s) Upgrade 3 Package(s) Total download size: 7.8 M Is this ok [y/N]: y Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 7.8 M (1/6): libzip5-1.5.1-1.el6.remi.x86_64.rpm (2/6): php-5.5.38-8.el6.remi.x86_64.rpm (3/6): php-cli-5.5.38-8.el6.remi.x86_64.rpm (4/6): php-common-5.5.38-8.el6.remi.x86_64.rpm (5/6): php-pecl-jsonc-1.3.10-2.el6.remi.5.5.x86_64.rpm (6/6): php-pecl-zip-1.15.3-1.el6.remi.5.5.x86_64.rpm ------------------------------------------------------------------------------------------------------------------------------------------------------- Total warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi Importing GPG key 0x00F97F56: Userid : Remi Collet <RPMS@FamilleCollet.com> Package: remi-release-6.9-3.el6.remi.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : libzip5-1.5.1-1.el6.remi.x86_64 Installing : php-pecl-jsonc-1.3.10-2.el6.remi.5.5.x86_64 WARNING : These php-* RPMs are not official Fedora / Red Hat build and overrides the official ones. Don't file bugs on Fedora Project nor Red Hat. Use dedicated forum at http://forum.remirepo.net/ Updating : php-common-5.5.38-8.el6.remi.x86_64 Installing : php-pecl-zip-1.15.3-1.el6.remi.5.5.x86_64 Updating : php-cli-5.5.38-8.el6.remi.x86_64 Updating : php-5.5.38-8.el6.remi.x86_64 Cleanup : php-5.3.3-49.el6.x86_64 Cleanup : php-cli-5.3.3-49.el6.x86_64 Cleanup : php-common-5.3.3-49.el6.x86_64 ========================================================================== WARNING : PHP 5.5 have reached its "End of Life" in July 2016. Even, if this package includes some security fix, backported from 5.6, The UPGRADE to a maintained version is very strongly RECOMMENDED. ========================================================================== Verifying : libzip5-1.5.1-1.el6.remi.x86_64 Verifying : php-pecl-zip-1.15.3-1.el6.remi.5.5.x86_64 Verifying : php-cli-5.5.38-8.el6.remi.x86_64 Verifying : php-pecl-jsonc-1.3.10-2.el6.remi.5.5.x86_64 Verifying : php-common-5.5.38-8.el6.remi.x86_64 Verifying : php-5.5.38-8.el6.remi.x86_64 Verifying : php-cli-5.3.3-49.el6.x86_64 Verifying : php-5.3.3-49.el6.x86_64 Verifying : php-common-5.3.3-49.el6.x86_64 Dependency Installed: libzip5.x86_64 0:1.5.1-1.el6.remi php-pecl-jsonc.x86_64 0:1.3.10-2.el6.remi.5.5 php-pecl-zip.x8 Updated: php.x86_64 0:5.5.38-8.el6.remi Dependency Updated: php-cli.x86_64 0:5.5.38-8.el6.remi php-common.x86_64 0:5.5.38-8.el6.remi Complete! |
php-xml
1 2 |
[centos@ip-172-31-16-82 slab-nss]$ php publish.php PHP Fatal error: Class 'SimpleXMLElement' not found in /home/centos/aws/slab-nss/vendor/guzzle/guzzle/src/Guzzle/Http/Message/Response.php on line 886 |
こんなエラーが出たので、
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
[centos@ip-172-31-16-82 slab-nss]$ sudo yum install --enablerepo=remi --enablerepo=remi-php55 php-xml Loaded plugins: fastestmirror, presto Setting up Install Process Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: mirrors.aliyun.com * extras: ftp.iij.ad.jp * remi: ftp.riken.jp * remi-php55: ftp.riken.jp * remi-safe: ftp.riken.jp * updates: ftp.iij.ad.jp Resolving Dependencies --> Running transaction check ---> Package php-xml.x86_64 0:5.5.38-8.el6.remi will be installed --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-5.5.38-8.el6.remi.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-5.5.38-8.el6.remi.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-5.5.38-8.el6.remi.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-5.5.38-8.el6.remi.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-5.5.38-8.el6.remi.x86_64 --> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.5.38-8.el6.remi.x86_64 --> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.5.38-8.el6.remi.x86_64 --> Running transaction check ---> Package libxslt.x86_64 0:1.1.26-2.el6_3.1 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================= Package Arch Version ======================================================================================================================================================= Installing: php-xml x86_64 5.5.38-8.el6.remi Installing for dependencies: libxslt x86_64 1.1.26-2.el6_3.1 Transaction Summary ======================================================================================================================================================= Install 2 Package(s) Total download size: 670 k Installed size: 2.9 M Is this ok [y/N]: y Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 670 k (1/2): libxslt-1.1.26-2.el6_3.1.x86_64.rpm (2/2): php-xml-5.5.38-8.el6.remi.x86_64.rpm ------------------------------------------------------------------------------------------------------------------------------------------------------- Total Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : libxslt-1.1.26-2.el6_3.1.x86_64 Installing : php-xml-5.5.38-8.el6.remi.x86_64 Verifying : libxslt-1.1.26-2.el6_3.1.x86_64 Verifying : php-xml-5.5.38-8.el6.remi.x86_64 Installed: php-xml.x86_64 0:5.5.38-8.el6.remi Dependency Installed: libxslt.x86_64 0:1.1.26-2.el6_3.1 Complete! |