1. 程式人生 > >yum源安裝php報錯缺少libmcrypt.so.4()(64bit)庫

yum源安裝php報錯缺少libmcrypt.so.4()(64bit)庫

今天yum安裝php-fpm(自己公司做的rpm包和源)報錯

報錯資訊如下:

1 2 3 4 5 --> Finished Dependency Resolution php-fpm-5.3.10-mjh.1.x86_64 from mjh_repo has depsolving problems --> Missing Dependency: libmcrypt.so.4()(64bit) is needed by package php-fpm-5.3.10-mjh.1.x86_64 (mjh_repo) Error: Missing Dependency: libmcrypt.so.
4()(64bit) is needed by package php-fpm-5.3.10-mjh.1.x86_64 (mjh_repo) You could try using --skip-broken to work around the problem

錯誤提示缺少libmcrypt.so這個庫,163和centos源裡都沒有libmcrypt,libmcrypt-devel兩個包,安裝php的時候需要這個擴充套件


下載相應的EPEL源:

(1).32位系統

[[email protected] src]# wget http://mirrors.yun-idc.com/epel/5/i386/epel-release-5-4.noarch.rpm

(2).64位系統

[[email protected] ~]# http://mirrors.hust.edu.cn/epel//5/x86_64/epel-release-5-4.noarch.rpm

安裝EPEL源(注:我這裡是64位系統)

[[email protected] src]# rpm -ivh epel-release-5-4.noarch.rpm

warning: epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6

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

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

匯入key檔案

[[email protected] src]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

解決方法:

EPEL,即Extra Packages for Enterprise Linux(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社群打造,為 RHEL 及衍生髮行版如 CentOS、Scientific Linux 等提供高質量軟體包的專案。在這裡可以獲得 RHEL 的高質量、高效能、高可靠性、免費、方便易用的軟體包。

yum install libmcrypt-devel 再次安裝yum install php-fpm就不會報錯了(使用ldconfig -v |grep libmcrypt.so.4 檢視)


相關推薦

yum安裝php缺少libmcrypt.so.4()(64bit)

今天yum安裝php-fpm(自己公司做的rpm包和源)報錯 報錯資訊如下: 1 2 3 4 5 --> Finished Dependency Resolution php-fpm-5.3.10-mjh.1.x86_64 from 

eclipse安裝php

eclipse安裝php報以下錯誤高了半天只知道要先安裝其他東西,但是不知道要安裝啥,最後全選解決了 Cannot complete the install because one or more required items could not be found.   Soft

虛擬機器執行yum install安裝:No more mirrors to try,提示某個包在yum不存在------解決辦法

第一種辦法: 執行yum clean all清除所有快取 執行yum list(本地yum源庫可能會報錯,需要重新配置本地yum源庫) 重新執行 yum install 包名  安裝成功 第二種辦法: rpm手動下載上傳安裝,這種方法需要考慮依賴

centos 編譯,缺少libssh2.so

報錯Log: /usr/bin/ld: cannot find -lssh2 collect2: ld returned 1 exit status   解決方式: 1.下載原始碼,wget http://www.libssh2.org/download

CentOS 6.6安裝Xtrabackup RPM提示缺少libev.so.4()

[[email protected] tmp]# rpm -ivh libev-4.15-1.el6.rf.x86_64.rpmwarning: libev-4.15-1.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6

php安裝,啟動,

php 安裝報錯 安裝報錯: 錯誤1: configure: error: xml2-config not found. Please check your libxml2 installation. 解決辦法: yum install -y libxml2-devel 錯誤2: checking f

阿裏雲ECS服務器 Centos7.2 使用 yum 安裝 ansible

cache centos7.2 連接 ESS epo shadow ges 服務器 proc #####################使用阿裏雲的ECS服務器Centos7.2系統安裝ansible提示安裝不上###########原因通過Yum安裝最新發布版本通過Yum

Eclipse離線安裝activiti缺少jar包(requires 'org.eclipse.emf 2.6.0' but it could not be found)

eclipse安裝activiti報錯,缺少jar包。具體報錯如下: Cannot complete the install because one or more required items could not be found. Software being installed: Activi

liunx安裝軟體yum install gcc-c++

 http://ftp.sjtu.edu.cn/centos/6.9/os/x86_64/repodata/repomd.xml:  [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not F

工作中在虛擬機器ubuntu18.10一鍵安裝lnmp1.5失敗後,分開進行安裝nginx,mysql,php,

如下: sudo service nginx restart Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service&qu

php mui移動端呼叫微信的jsapi缺少引數

前段分離ajax請求後臺介面返回資料,前段喚起微信jsapi支付時,報錯缺少引數appid 拿到結果本已轉Json.parse,但還是報錯,結果在jsapicall方法中在轉一次成功喚醒微信jsa

centos7下面yum安裝軟體,顯示找不到映象地址。

【問題原因和解決辦法】 dns解析的問題,處理辦法:vim /etc/resolv.conf  加入:nameserver 8.8.8.8nameserver 8.8.4.4search localdomain -------------------------------

centos7下面yum安裝軟體,顯示找不到映象地址

【問題原因和解決辦法】 dns解析的問題,處理辦法:vim /etc/resolv.conf  加入:nameserver 8.8.8.8nameserver 8.8.4.4search localdomain -------------------------------

yum 安裝zabbix

安裝zabbix時報錯 [[email protected] ~]# rpm -ivh zabbix-server-mysql-2.2.3-1.el6.x86_64.rpm zabbix-web-mysql-2.2.3-1.el6.noarch.rpm  warn

tp5 重定向缺少index.php(No input file specified)

轉別人的,有用,Mark一下public 下的.htaccess 修改為<IfModule mod_rewrite.c>  Options +FollowSymlinks -Multiviews  RewriteEngine On  RewriteCond %{R

Python 安裝 缺少api--.dll

報錯截圖 解決方法 及原理 api-ms-win-crt-runtime就是MFC的執行時環境的庫,python在windows上編譯也是用微軟的visual studio C++編譯的,底層

yum安裝docker

在centos版本 7.3中用yum安裝後報錯出現 Error starting daemon: SELinux is not supported with the overlay2 graph driver on th

centOs7上用yum安裝軟體

提示報錯資訊:Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was14: PYCURL ERROR 6 - "Cou

不論任何錯誤 都是網絡有問題,安裝spacemacs的解決方式

報錯 des spa -a -i mir ati pac var 不論報任何錯誤 都是網絡源有問題打開.spacemacs### 這是原頭部(defun dotspacemacs/layers () "Configuration Layers declaration.Yo

在CentOS 7上使用Yum安裝 Zabbix 3.2

zabbix mysql centos 在CentOS 7上使用Yum源安裝 Zabbix 3.2 1. 環境準備[[email protected]/* */ ~]# setenforce 0 [[email protected]/* */ ~]# sed -i "s/S