Jumat, 16 Agustus 2019

How to solve configure: error: mcrypt.h not found. Please reinstall libmcrypt Centos 7

  Tidak ada komentar
How to solve configure: error: mcrypt.h not found. Please reinstall libmcrypt Centos 7

Install epel-release and install libmcrypt-devel
[root@iport3 php-5.6.37]# yum install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.buana.web.id
 * extras: centos.mirror.angkasa.id
 * updates: centos.mirror.angkasa.id
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
 Package                             Arch                          Version                        Repository                     Size
======================================================================================================================================
Installing:
 epel-release                        noarch                        7-11                           extras                         15 k

Transaction Summary
======================================================================================================================================
Install  1 Package

Total download size: 15 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
epel-release-7-11.noarch.rpm                                                                                   |  15 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                                                                           1/1
  Verifying  : epel-release-7-11.noarch                                                                                           1/1

Installed:
  epel-release.noarch 0:7-11

Complete!
[root@iport3 php-5.6.37]#
[root@iport3 php-5.6.37]# yum install libmcrypt-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                           | 3.7 kB  00:00:00
 * base: mirror.buana.web.id
 * epel: epel.dionipe.id
 * extras: centos.mirror.angkasa.id
 * updates: centos.mirror.angkasa.id
epel                                                                                                           | 5.3 kB  00:00:00
(1/3): epel/x86_64/group_gz                                                                                    |  88 kB  00:00:00
epel/x86_64/primary_db         FAILED
https://hkg.mirror.rackspace.com/epel/7/x86_64/repodata/063216a6e14adadee8c1055711cd0edda3757d0479fa132087b7bdd49a7be9a2-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

(2/3): epel/x86_64/updateinfo                                                                                  | 992 kB  00:00:00
(3/3): epel/x86_64/primary_db                                                                                  | 6.8 MB  00:00:01
Resolving Dependencies
--> Running transaction check
---> Package libmcrypt-devel.x86_64 0:2.5.8-13.el7 will be installed
--> Processing Dependency: libmcrypt = 2.5.8-13.el7 for package: libmcrypt-devel-2.5.8-13.el7.x86_64
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: libmcrypt-devel-2.5.8-13.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:
 libmcrypt-devel                      x86_64                      2.5.8-13.el7                        epel                       13 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: 112 k
Installed size: 302 k
Is this ok [y/d/N]: y
Downloading packages:
warning: /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): libmcrypt-devel-2.5.8-13.el7.x86_64.rpm                                                                 |  13 kB  00:00:00
--------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                 311 kB/s | 112 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) <[email protected]>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.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 : libmcrypt-devel-2.5.8-13.el7.x86_64                                                                                2/2
  Verifying  : libmcrypt-devel-2.5.8-13.el7.x86_64                                                                                1/2
  Verifying  : libmcrypt-2.5.8-13.el7.x86_64                                                                                      2/2

Installed:
  libmcrypt-devel.x86_64 0:2.5.8-13.el7

Dependency Installed:
  libmcrypt.x86_64 0:2.5.8-13.el7

Complete!
[root@iport3 php-5.6.37]#

Tidak ada komentar :

Posting Komentar