centos php mcrypt,CentOS yum php mcrypt 扩展安装方法
这篇文章主要为大家介绍了CentOS系统下通过yum安装php mcrypt扩展的方法,需要的朋友可以参考下使用 yum install php-mcrypt 安装mcrypt扩展时会提示没有安装包
Setting up Install ProcessNo package php-mcrypt available.Error: Nothing to do
mcrypt 是加密扩展库,加载了它可以用他里面自带的22种加密解密算法
CentOS6 默认安装的是php5.3.2
默认的 redhat repos php中是没有 mcrypt 扩展的根据红帽的官方消息(https://bugzilla.redhat.com/show_bug.cgi?id=621268)RHEL 不打算添加PHP的mcrypt 的支持Joe Orton 2010-08-05 04:47:17 EDT
Thanks for the report.
We are not planning to ship mcrypt support for PHP.
解决方法:
从php 官网下载新的php 5.3 源码包后,解压到本地目录进入解压目录下的 ext 目录后会发现有 mcrypt ,进入 mcrypt 目录
#cd /ext/mcrypt
#phpize
注意:如果报 -bash:phpize not Found 那么 yum install php-devel 就可以使phpize进行动态编译安装扩展
#./configure -with-php-config=/usr/sbin/php/bin/php-config
#make && make install
出现:
----------------------------------------------------------------------Libraries have been installed in: /var/php-5.3.10/ext/mcrypt/modules
If you ever happen to want to link against installed librariesin a given directory, LIBDIR, you must either use libtool, andspecify the full pathname of the library, or use the `-LLIBDIR'flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking www.jbxue.com - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries formore information, such as the ld(1) and ld.so(8) manual pages.----------------------------------------------------------------------
Build complete.Don't forget to run 'make test'.
Installing shared extensions: /usr/lib64/php/modules/查看:
# php -m
...
libxmlmbstringmcryptmysql...[Zend Modules]已安装成功!
再次查看 phpinfo ,可以看到mcrypt 扩展详情。
centos php mcrypt,CentOS yum php mcrypt 扩展安装方法相关推荐
- PHP的swoole扩展安装方法详细教程
这篇文章主要为大家分享了PHP的swoole扩展安装方法详细教程,具有实用性和参考价值,感兴趣的小伙伴们可以参考一下 Swoole支持PHP 5.3.10以上版本,所以安装Swoole之前请先安装PH ...
- php安装扩展步骤,PHP扩展安装方法步骤解析
php扩展安装方法极简单. 也遵循3大步.但多出一个phpize的步骤. 1.pecl.php.net 在右上解的输入框 中输入需要的扩展 比如 redis 2.搜索完成后会看到两个蓝色的框 . 下方 ...
- RHEL/CentOS/Fedora常用的 CentOS 5/6/7 yum 源(EPEL、Remi、RPMForge、RPMFusion, ius,163,sohu,阿里云)配置...
RHEL以及他的衍生发行版如CentOS.Scientific Linux为了稳定,官方的rpm repository提供的rpm包往往是很滞后的,当然了,这样做这是无可厚非的,毕竟这是服务器版本,安 ...
- linux-CentOS6.4安装Memcached+memcached扩展+安装memcache扩展+Memcache+mecached同步SESSION的几种方法
一.编译环境的准备 yum install gcc yum install gcc-c++ libstdc++-devel yum install zlib-devel 二.源码包准备 wge ...
- php扩展 sockets,php sockets扩展安装配置详解
今天安装cacti发现需要php sockets扩展,而现在的lnmp没有安装,于是想到了phpzie工具安装扩展,安装方法如下. linux中打开sockets扩展,代码如下:cd php-5.3. ...
- php 编译mcrypt,centos 6下编译安装php时安装mcrypt支持库
centos6本身不带mcrypt库的支持,手工编译php时,还需要先安装该库,这里有两个途径 1. 使用第三方源实现yum安装,推荐使用RPMforge,在centos下配置该yum源,配置后即可尝 ...
- CentOS6.0 yum php mcrypt 扩展安装问题
基本原理是:首先使mcrypt软件能够运行,然后安装php扩展模块,并在php.ini配置. 这里注意的是mcrypt软件依赖libmcrypt和mhash两个库,所以安装配置顺序从右至左 I 下载安 ...
- centos 系统软件包管理 yum 本地yum配置 扩展源epel rpm 清除yum缓存 yum provides */vim 第十节课...
centos 系统软件包管理 yum 本地yum配置 扩展源epel rpm 清除yum缓存 yum provides "*/vim" 第十节课 你不能保证可逆化操 ...
- CentOS下yum源epel扩展源
系统自带的yum源以及163的yum源还是无法安装一些工具,所有就想到了添加epel的强大yum源 安装过程最后总结下来非常简单. 下载epel的rpm包并安装 1 [root@localhost ~ ...
最新文章
- visio2007 画流程图杂记
- matlab从入门到精通:图像可视化基础操作
- C++ Primer 5th笔记(7)chapter7 类
- CF682C Alyona and the Tree
- Android如何分析native代码,使用android-ndk-profiler对native代码进行性能分析
- 参数化查询为什么能够防止SQL注入
- linux网络编程之socket编程(六)
- mysqld --initialize --console 没有 打印信息_JavaScript学习笔记(三)-- 循环结构
- logstash之codec插件
- 音频处理之回声消除及调试经验
- 如何快速发现XSS跨站攻击漏洞
- ESP8266 在Arduino 使用ST7789 OLED
- 笔记本和android分屏,如何把Android/IOS手机或者平板作为PC电脑显示器的分屏
- Unity3D启动报错的解决方案
- 在C语言中系统将stdin,咨询关于c语言中getc(stdin)。怎么办?
- mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h' 非权威指南
- 超详细open vn搭建之Linux亲测可用
- PyCharm 提示PEP 8: E302 expected 2 blank lines, found 1
- win10操作系统官网如何下载ios境像文件安装操作系统
- docker 搭建私有仓库registry (多用户)