PHP Compiler installation Error: Mcrypt.h not found. Please reinstall Libmcrypt.

Source: Internet
Author: User
Tags gpg mcrypt php compiler install perl metalink

PHP Compiler installation Error: Mcrypt.h not found. Please reinstall Libmcrypt.reprinted 2016-04-25 12:40:44 Tags: linuxitphp

Workaround:

1. Install PERL-GEO-IP for the system, the default Yum source does not have this package, intentionally installs Epel third party yum Source [[email protected] ~] RPM-UVH/http mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm

? Retrieving http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm

Warning:/var/tmp/rpm-tmp. Bm4bhz:header V3 rsa/sha256 Signature, key ID 0608b895:nokey

Preparing ... ########################################### [100%]

1:epel-release ########################################### [100%]

? 2. [Email protected] ~]#yum install-y libmcrypt-devel

[[Email protected] ~] #Error: Cannot retrieve Metalink for Repository:epel. Verify its path and try again?

PHP Compiler installation Error: Mcrypt.h not found. Please reinstall Libmcrypt.reprinted 2016-04-25 12:40:44 Tags: linuxitphp

Workaround:

1. Install PERL-GEO-IP for the system, the default Yum source does not have this package, intentionally installs Epel third party yum Source [[email protected] ~] RPM-UVH/http mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm

? Retrieving http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm

Warning:/var/tmp/rpm-tmp. Bm4bhz:header V3 rsa/sha256 Signature, key ID 0608b895:nokey

Preparing ... ########################################### [100%]

1:epel-release ########################################### [100%]

? 2. [Email protected] ~]#yum install-y libmcrypt-devel

[Email protected] ~]#Error: cannot retrieve Metalink for Repository:epel. Verify its path and try again?

Here we come up with another error, the workaround:

The solution is to edit the/etc/yum.repos.d/epel.repo and comment out the base recovery, the address of the mirror

#baseur

Lmirrorlist

Change into

BaseURL

#mirrorlist

The steps are as follows: ( Blue where it needs to be modified)

? [Email protected] ~]# vi/etc/yum.repos.d/epel.repo

[Epel]

Name=extra Packages for Enterprise Linux 6-$basearch

BaseURL=http://download.fedoraproject.org/pub/epel/6/$basearch

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch= $basearch

Failovermethod=priority

Enabled=1

Gpgcheck=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6

[Epel-debuginfo]

Name=extra Packages for Enterprise Linux 6-$basearch-debug

baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch= $basearch

Failovermethod=priority

Enabled=0

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6

Gpgcheck=1

? [Epel-source]

Name=extra Packages for Enterprise Linux 6-$basearch-source

BaseURL=http://download.fedoraproject.org/pub/epel/6/srpms

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch= $basearch

Failovermethod=priority

Enabled=0

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6

Gpgcheck=1

Save the exit after the modification is complete.

The above underlined part of the error, is the original blogger encountered errors and solutions. And that's the mistake I met.

Error: Cannot retrieve repository metadata (Repomd.xml) for Repository:rpmforge. Verify its path and try again

The solution is

Yum Error:cannot Retrieve repository metadata (Repomd.xml) for repository:xxxxxx.

This error is actually very simple, the error message has prompted you, is Xxxxxx.repo this file has a problem.

(1) Open/etc/yum.repos.d/xxxxxx.repo file

(2) Enabled=1(there may be multiple, specific changes, to be tested.) I met the first one that needed to be changed. The change was successful. ) Change to Enabled=0

3. run again? Yum install-y libmcrypt-devel

installed:libmcrypt-devel.i686 0:2.5.8-9.el6 #安装完成

4.? [Email protected] src]# cd php-5.3.27

[Email protected] php-5.3.27]# /configure \--prefix=/usr/local/php \--with-apxs2=/usr/sbin/apxs \-- WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP/ETC \--with-mysql=/usr/local/mysql \--with-libxml-dir \--WITH-GD \-- With-jpeg-dir \--with-png-dir \--with-freetype-dir \--with-iconv-dir \--with-zlib-dir \--with-bz2 \--with-openssl \ --with-mcrypt \--enable-soap \--enable-gd-native-ttf \--enable-mbstring \--enable-sockets \--enable-exif \--disable- IPv6

? ? Thank for using PHP.

[[email protected] php-5.3.27]# echo $?

0

Reference:

Http://blog.sina.com.cn/s/blog_b5dfe4870102wasu.html#commentComment

http://blog.csdn.net/sissiyinxi/article/details/7595617

Thanks to the two bloggers.

PHP Compiler installation Error: Mcrypt.h not found. Please reinstall Libmcrypt.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.