CentOS下安装libmcrypt失败
2023-09-27 14:21:28 时间
libmcrypt是什么??
是加密算法扩展库---支持DES, 3DES, RIJNDAEL, Twofish, IDEA, GOST, CAST-256, ARCFOUR, SERPENT, SAFER+等算法
在安装时候出现如下错误:
出现该情况是由于c++编译器的相关package没有安装,以root用户登陆
# yum install glibc-headers
# yum install gcc-c++
在编译安装 mcrypt 出现了错误 ,一下是错误信息
[root@localhost mcrypt-2.6.8]# make make all-recursive make[1]: Entering directory `/root/tools/lamp/mcrypt-2.6.8' Making all in doc make[2]: Entering directory `/root/tools/lamp/mcrypt-2.6.8/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/root/tools/lamp/mcrypt-2.6.8/doc' Making all in src make[2]: Entering directory `/root/tools/lamp/mcrypt-2.6.8/src' gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -I../intl -g -O2 -I/usr/local/include -Wall -MT extra.o -MD -MP -MF .deps/extra.Tpo -c -o extra.o extra.c In file included from /usr/local/include/mhash.h:33, from ./defines.h:8, from extra.c:24: /usr/local/include/mutils.h:27:26: error: mhash_config.h: No such file or directory extra.c: In function ‘write_file_head’:
于是查看 /usr/local/include/mutils.h 第26,27行:
#if defined(HAVE_CONFIG_H) #include <mhash_config.h> #endif
到 /usr/local/include/ 目录下一看 没有 mhash_config.h 文件.
解决办法: 从系统中查找 mhash_config.h 将找到的 mhash_config.h 复制到 /usr/local/include/
# locate mhash_config.h /root/tools/lamp/mhash-0.9.3/mhash_config.h /root/tools/lamp/mhash-0.9.3/mhash_config.h.in /usr/include/mutils/mhash_config.h # cp /usr/include/mutils/mhash_config.h /usr/local/include/
查看是否已经安装
ldconfig -p | grep libmcrypt
ldconfig -p | grep mcrypt
相关文章
- centos安装g++
- Centos 7.x 双网卡绑定
- CentOS下三种PHP拓展安装方法
- CentOS 下安装python 之MySQLdb
- virtualbox centos安装增强工具和Centos与VirtualBox共享文件夹设置
- CentOS下用yum命令安装jdk
- CentOS yum 安装获取原始rpm文件的方法
- CentOS和Redhat发行版linux内核版本的对应关系
- CentOS安装使用vnc进行远程桌面登录
- centos下cmake安装
- redhat6.5 配置使用centos的yum源
- centos上安装python3.6
- centos 安装cloud foundry CLI
- CentOS 7 安装Python3.7
- Linux CentOS(RHEL 7/6)和Fedora(29-25) 安装Python 3.7.2
- Centos jenkins 插件安装失败
- sigar在Centos和Windows下使用java系统软硬件配置信息
- Ubuntu 安装软件和centos 对比命令
- CentOS环境下,gdb调试中出现:Missing separate debuginfos, use: debuginfo-install.....的问题
- centos上tensorflow一键安装脚本
- CentOS 6.4安装配置ldap
- Centos 7 安装 Visual stdio Code