【发布时间】:2018-05-06 17:27:20
【问题描述】:
我正在尝试在 linux 中安装和配置 php5.6。在执行命令时
./configure --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --with-imap --with-imap-ssl --with-kerberos --enable-mbstring --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-zlib-dir --with-regex --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-soap --enable-sockets --with-xmlrpc --enable-zip --with-zlib --enable-inline-optimization --enable-mbregex --enable-opcache --enable-fpm --prefix=/usr/local/php --with-libdir=lib64
我得到了错误
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
即使安装了 libmcrypt。 rpm -qa|grep libmcrypt libmcrypt-2.5.8-9.el6.x86_64
我提到了许多他们要求下载第 3 方存储库的链接 rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 但我们被要求不要使用任何第 3 方存储库。所以我从网上下载了rpm文件并安装了它。
我使用的是 Oracle Linux Server 6.9 版。
谢谢
【问题讨论】: