lnmp 安装配置--libmcrypt问题
在LNMP安装配置中,在进行php配置依赖包时遇到如何错误wgethttp://cn2.php.net/distributions/php-5.4.37.tar.bz2
tar jxf php-5.4.37.tar.bz2
useradd -s /sbin/nologin php-fpm
cd php-5.4.37useradd -s /sbin/nologin php-fpmphp依赖包参看lamp php安装./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc--enable-fpm --with-fpm-user=php-fpm--with-fpm-group=php-fpm --with-mysql=/usr/local/mysql--with-mysql-sock=/tmp/mysql.sock--with-libxml-dir--with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir--with-iconv-dir --with-zlib-dir --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp--enable-mbstring--enable-exif --disable-ipv6 --with-curl提示依赖包libmcrypt-devel错误,需要安装libmcrypt
因为centos6.x 默认的yum源没有libmcrypt-devel 这个包,只能借助第三方yum源
rpm -ivh "http://mirrors.ustc.edu.cn/epel/6Server/x86_64/epel-release-6-8.noarch.rpm"yum install -ylibmcrypt-devel可又提示epel-release已安装,还是不能yum libmcrypt-devel现在只能进行编译安装libmcrypt提供下载地址:"http://ncu.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz"请注意2.5.6版本安装后php的./configure 还是会报错libmcrypt版本过低
"configure: error: libmcrypt version 2.5.6 or greater required"
页:
[1]