linux - 编译php configure: error: mcrypt.h not found. 但是我装了libmcrypt

查看:150
本文介绍了linux - 编译php configure: error: mcrypt.h not found. 但是我装了libmcrypt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

这是我的shell:

tar -zxvf php-7.0.16.tar.gz
cd ./php-7.0.16


./configure \
 --prefix=/usr/local/php7 \
 --with-config-file-path=/usr/local/php7/etc \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--with-mysqli \
--with-pdo-mysql \
--with-iconv-dir \
--with-freetype-dir \
--with-jpeg-dir \
 --with-png-dir \
--with-zlib \
--with-libxml-dir=/usr \
--enable-xml \
--disable-rpath  \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-mbstring \
--with-mcrypt \
--enable-ftp \
--with-gd \
--enable-gd-native-ttf \
--with-openssl \
--with-mhash \
--enable-pcntl \
 --enable-sockets \
--with-xmlrpc \
--enable-zip \
--enable-soap \
--without-pear \
--with-gettext \
--disable-fileinfo \
--enable-maintainer-zts

似乎mcrypt的库没了

解决方案

这个库在官方源上面没有。

  • 使用阿里云或者清华大学的epel源,yum安装这个库

  • 下载这个库的源码(libmcrypt-2.5.8.tar.gz),编译安装这个库。

这篇关于linux - 编译php configure: error: mcrypt.h not found. 但是我装了libmcrypt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆