이니시스 결제모듈연동시 mcrypt 가 필요하다.
yum install php-mcrypt 하니 아래와 같은 에러가 발생하고 설치되지 않는다.
[root@localhost ~]# yum list php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.daumkakao.com
* extras: centos.mirror.cdnetworks.com
* updates: centos.mirror.cdnetworks.com
Error: No matching Packages to list
epel-release 를 먼저 설치한 후 시도하면 된다.
[root@localhost ~]# yum install epel-release
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
mariadb | 2.9 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/3): extras/7/x86_64/primary_db | 129 kB 00:00:00
(2/3): updates/7/x86_64/primary_db | 3.6 MB 00:00:00
(3/3): mariadb/primary_db | 21 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: ftp.daumkakao.com
* extras: centos.mirror.cdnetworks.com
* updates: centos.mirror.cdnetworks.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Installing:
epel-release noarch 7-9 extras 14 k
Transaction Summary
===============================================================================================
Install 1 Package
Total download size: 14 k
Installed size: 24 k
Is this ok [y/d/N]: y
epel-release-7-9.noarch.rpm | 14 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-9.noarch 1/1
Verifying : epel-release-7-9.noarch 1/1
Installed:
epel-release.noarch 0:7-9
Complete!
You have new mail in /var/spool/mail/root
[root@localhost ~]#
[root@localhost ~]# yum install php-mcrypt
Loaded plugins: fastestmirror
epel/x86_64/metalink | 4.7 kB 00:00:00
epel | 4.7 kB 00:00:00
epel/x86_64/updateinfo FAILED B --:--:-- ETA
http://ftp.riken.jp/Linux/fedora/epel/7/x86_64/repodata/0227446f2304402f8c35b5249d193d1ce408d171eaaa4750f8391db462d429ce-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/
epel/x86_64/primary_db FAILED
http://kartolo.sby.datautama.net.id/EPEL/7/x86_64/repodata/5a9079da4e65782bcad40e6bc28b7cc431191a1ce1bcb67d137fbebaffbc9744-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
(1/3): epel/x86_64/group_gz | 261 kB 00:00:00
(2/3): epel/x86_64/primary_db | 6.1 MB 00:00:01
(3/3): epel/x86_64/updateinfo | 841 kB 00:00:17
Loading mirror speeds from cached hostfile
* base: ftp.daumkakao.com
* epel: mirror.nes.co.id
* extras: centos.mirror.cdnetworks.com
* updates: centos.mirror.cdnetworks.com
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.4.16-7.el7 will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.4.16-7.el7.x86_64
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Installing:
php-mcrypt x86_64 5.4.16-7.el7 epel 20 k
Installing for dependencies:
libmcrypt x86_64 2.5.8-13.el7 epel 99 k
Transaction Summary
===============================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 119 k
Installed size: 331 k
Is this ok [y/d/N]: y
Downloading packages:
경고: /var/cache/yum/x86_64/7/epel/packages/libmcrypt-2.5.8-13.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for libmcrypt-2.5.8-13.el7.x86_64.rpm is not installed
(1/2): libmcrypt-2.5.8-13.el7.x86_64.rpm | 99 kB 00:00:00
(2/2): php-mcrypt-5.4.16-7.el7.x86_64.rpm | 20 kB 00:00:00
-----------------------------------------------------------------------------------------------
Total 154 kB/s | 119 kB 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-9.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libmcrypt-2.5.8-13.el7.x86_64 1/2
Installing : php-mcrypt-5.4.16-7.el7.x86_64 2/2
Verifying : libmcrypt-2.5.8-13.el7.x86_64 1/2
Verifying : php-mcrypt-5.4.16-7.el7.x86_64 2/2
Installed:
php-mcrypt.x86_64 0:5.4.16-7.el7
Dependency Installed:
libmcrypt.x86_64 0:2.5.8-13.el7
Complete!
[root@localhost ~]#
phpinfo(); 를 해보면 아래와 같이 모듈이 올라와 있다.
mcrypt
mcrypt support | enabled |
---|---|
mcrypt_filter support | enabled |
Version | 2.5.8 |
Api No | 20021217 |
Supported ciphers | cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes |
Supported modes | cbc cfb ctr ecb ncfb nofb ofb stream |
Directive | Local Value | Master Value |
---|---|---|
mcrypt.algorithms_dir | no value | no value |
mcrypt.modes_dir | no value | no value |
끝.
'PHP' 카테고리의 다른 글
CentOS7 에서 php7.2 yum 설치 (0) | 2018.06.07 |
---|---|
CentOS7 PHP7 oci8.so 설치 (0) | 2017.11.07 |
페이징 및 함수이용 (0) | 2016.03.01 |
MySQL 트랜잭션 (0) | 2016.02.29 |
php 5.4 number_format (0) | 2016.01.27 |