lnmp 安装配置--libmcrypt问题
2015-07-28 17:38
330 查看
在LNMP安装配置中,在进行php配置依赖包时遇到如何错误
wget http://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安装
因为centos6.x 默认的yum源没有libmcrypt-devel 这个包,只能借助第三方yum源
"configure: error: libmcrypt version 2.5.6 or greater required"
本文出自 “学习Linux” 博客,请务必保留此出处http://linuxlearn.blog.51cto.com/1437234/1679312
wget http://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 -y libmcrypt-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"
本文出自 “学习Linux” 博客,请务必保留此出处http://linuxlearn.blog.51cto.com/1437234/1679312
相关文章推荐
- MFC右键弹出菜单,并添加响应函数
- IOS编程常用字体
- css中控制元素的浮动和页面布局
- 我的第一个Node web程序
- 关于伪类元素:before和:after
- netty处理粘包问题——2
- UI及美术部分资源命名规范:
- java 微信服务器录音下载到自己服务器
- Lowest Common Ancestor of a Binary Search Tree
- Arrays.asList()是个坑
- .NET技术大系概览 (迄今为止最全的.NET技术栈)
- jquery页面初始化控件时间
- 李克强:让科技人员合理合法富起来
- javascript(一)--显示超链接的文字注释
- 客户端开发流程:
- java 微信服务器下载图片到自己服务器
- STL中栈和队列的使用方法
- Android 常用 adb 命令总结
- libevent学习笔记一:总体把握
- Windows工作集内存