【问题标题】:Error configuring php 5.6 configure: error: mcrypt.h not found. Please reinstall libmcrypt配置 php 5.6 配置时出错:错误:找不到 mcrypt.h。请重新安装 libmcrypt
【发布时间】: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 版。

谢谢

【问题讨论】:

    标签: php linux


    【解决方案1】:
    sudo apt-get install php5-mcrypt && sudo service apache2 restart
    

    Lamp install on ubuntu

    【讨论】:

    • 其次我们必须在 nginx 而不是 apache 上配置它。
    • 这个问题明确表示它适用于 Oracle Linux,而不是 Ubuntu。这有什么帮助?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-01-28
    • 2020-05-10
    • 2015-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多