Install php-mcrypt on CentOS 6

前端 未结 18 2245
感动是毒
感动是毒 2020-12-02 13:15

I have been trying to install php-mcrypt for a while now. Everytime I get the \"No package php-mcrypt available.\" returned to me. Here\'s what I\'ve tried:

         


        
18条回答
  •  我在风中等你
    2020-12-02 13:25

    If you want to recompile PHP with mcrypt enable.

    1. Insatll mcrypt. libmcrypt-devel is from Third Party Repositories EPEL, so you should:

    yum --enablerepo=extras install epel-release
    yum install libmcrypt-devel
    

    2. Append --with-mcrypt to your ./configure arguments:

    ./configure --with-mcrypt
    

    3. Build and install:

    make & make install
    

提交回复
热议问题