libmcrypt-devel:安装、报错、解决

目录

  • 前言
  • 一、本地仓库无libmcrypt-devel
  • 二、安装扩展包更新yum源
    • 1、扩展包更新包
    • 2、更新yum源
  • 三、安装libmcrypt
  • 参考:


前言

  • 相关报错:

Cannot retrieve metalink for repository: epel. Please verify its path and try again

Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

一、本地仓库无libmcrypt-devel

  • centos6.6
  • No package libmcrypt-devel available.
[root@www tools]# yum -y install libmcrypt-devel
已加载插件:fastestmirror, security
设置安装进程
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
No package libmcrypt-devel available.
错误:无须任何处理

二、安装扩展包更新yum源

1、扩展包更新包

[root@www tools]# yum install epel-release
已安装:
  epel-release.noarch 0:6-8                                                

完毕!

2、更新yum源

  • 更新yum源yum update
  • 报错:Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@www tools]# yum update
错误:Cannot retrieve metalink for repository: epel. Please verify its path and try again
  • 正确解决方法:修改第四行mirrorlist=https://mirrorlist=http://(https→http)
[root@www tools]# vim /etc/yum.repos.d/epel.repo
1 [epel]
2 name=Extra Packages for Enterprise Linux 6 - $basearch
3 #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
4 mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$ba
search
  • 错误解决方法:释放第3行,注释掉第4行
  • 衍生报错:Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
[root@www tools]# vim /etc/yum.repos.d/epel.repo
1 [epel]
2 name=Extra Packages for Enterprise Linux 6 - $basearch
3 baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
4 #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$ba
search
  • 解决报错后跟新yum
[root@www tools]# yum update
已加载插件:fastestmirror, security
设置更新进程
Repository base is listed more than once in the configuration
略
--> 完成依赖关系计算
依赖关系解决
略
完毕!

三、安装libmcrypt

  • yum install libmcrypt libmcrypt-devel
[root@www tools]# yum install libmcrypt libmcrypt-devel
已加载插件:fastestmirror, security
设置安装进程
略
已安装:
  libmcrypt.x86_64 0:2.5.8-9.el6    libmcrypt-devel.x86_64 0:2.5.8-9.el6   

完毕!

参考:

1、 centos安装epel源后,使用报错)
2、CentOS下yum安装libmcrypt错误

你可能感兴趣的:(centos,运维)