博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
解决libmcrypt was not found,无法安装mcrypt
阅读量:7084 次
发布时间:2019-06-28

本文共 1481 字,大约阅读时间需要 4 分钟。

线上一台服务器安装lnmp环境,安装libmcrypt成功,安装mcrypt的时候发生错误:

1
2
3
4
5
6
7
8
9
10
cd 
/usr/local/src/
tar 
-zxvf libmcrypt-2.5.7.
tar
.gz
cd 
libmcrypt-2.5.7
.
/configure
make 
&& 
make 
install
 
cd 
/usr/local/src/
tar 
-zxvf mcrypt-2.6.8.
tar
.gz
cd 
mcrypt-2.6.8
.
/configure

错误详情:

1
2
3
4
5
6
7
8
9
10
11
checking 
for 
libmcrypt – version >= 2.5.0…
*** ‘libmcrypt-config –version’ returned 2.4.0, but LIBMCRYPT (2.5.8)
*** was found! If libmcrypt-config was correct, 
then 
it is best
*** to remove the old version of LIBMCRYPT. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** 
/etc/ld
.so.conf. Make sure you have run ldconfig 
if 
that is
*** required on your system.
*** If libmcrypt-config was wrong, 
set 
the environment variable LIBMCRYPT_CONFIG
*** to point to the correct copy of libmcrypt-config, and remove the 
file 
config.cache
*** before re-running configure
configure: error: *** libmcrypt was not found

参考百度以下各种办法,发现都无法解决:

参考该文解决问题:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
tar 
-zxvf libmcrypt-2.5.7.
tar
.gz
cd 
libmcrypt-2.5.7
.
/configure  
--prefix=
/usr/local/libmcrypt
make
make 
install
wget 
tar 
-zxvf mhash-0.9.9.9.
tar
.gz
cd 
mhash-0.9.9.9
.
/configure
make
make 
install 
cd 
/usr/local/src/mcrypt-2
.6.8
LD_LIBRARY_PATH=
/usr/local/libmcrypt/lib
:
/usr/local/lib 
.
/configure 
--with-libmcrypt-prefix=
/usr/local/libmcrypt
make
make 
install

无报错,解决问题!

本文转自 yawei555 51CTO博客,原文链接:http://blog.51cto.com/huwei555/1783598,如需转载请自行联系原作者

你可能感兴趣的文章
MYSQL企业级应用(三)基本管理
查看>>
浅谈 JavaScript 模块化编程
查看>>
thinkphp 自动验证学习
查看>>
Java 面试题:类加载-main()-构造代码块-构造器的执行顺序和关系。
查看>>
for与while循环、break跳出循环、continue结束本次循环、exit退出脚本
查看>>
mysql主从复制与读写分离
查看>>
四周第一次(2月26
查看>>
Python模块
查看>>
Windows2012、windows2016配置多用户登录
查看>>
VMware vSAN超融合虚拟化架构与NetApp FAS2620存储服务器虚拟化架构对比
查看>>
周期性任务计划
查看>>
Java多进程管道通信
查看>>
ipfs官方周刊,18期
查看>>
无线压力变送器的安装与标定方式!
查看>>
sever 2016部署web服务
查看>>
varnish使用yum安装及不同域名站点
查看>>
五分钟教会你分布式系统调用链监控
查看>>
VLAN与Trunk配置
查看>>
我的友情链接
查看>>
webservice调用报object is not an instance of declaring class错
查看>>