admin 管理员组

文章数量: 1184232

php5 mcrypt,编译PHP5.5.6时安装mcrypt2.6.8

编译PHP5.5.6时安装mcrypt2.6.8

(2013-11-20 16:52:44)

标签:

mcrypt

mhash

libmcrypt

ld_library_path

libmhash

it

按顺序安装下列库:

1. libmcrypt 2.5.8

2. mhash 0.9.9.9

3. mcrypt 2.6.8

问题出在安装 mcrypt 2.6.8 的时候, 编译时报错:

checking for mhash_keygen in -lmhash... no

configure: error: "You need at least libmhash 0.8.15 to compile

this program.

找到一篇大神写的文章, 问题解决

在安装mcrypt之前先配置路径

###export

LD_LIBRARY_PATH=/usr/local/libmcrypt/lib:/usr/local/mhash/lib

###export LDFLAGS="-L/usr/local/mhash/lib/

-I/usr/local/mhash/include/"

###export CFLAGS="-I/usr/local/mhash/include/"

###./configure --prefix=/usr/local/mcrypt/

--with-libmcrypt-prefix=/usr/local/libmcrypt

接下来的php编译参数需要添加这两项:

--with-mcrypt=/usr/local/libmcrypt

--with-mhash=/usr/local/mhash

分享:

喜欢

0

赠金笔

加载中,请稍候......

本文标签: php5 mcrypt 编译PHP556时安装mcrypt268