分类:
2010-04-15 14:11:22
1.先去下载Libmcrypt,mhash,mcrypt安装包,下面是我找到的链接
Libmcrypt(libmcrypt-2.5.8.tar.gz):
mcrypt(mcrypt-2.6.8.tar.gz ):
mhash(mhash-0.9.9.9.tar.gz):
2.先安装Libmcrypt
#tar -zxvf libmcrypt-2.5.8.tar.gz
#cd libmcrypt-2.5.8
#./configure
#make
#make install
说明:libmcript默认安装在/usr/local
3.安装mhash
#tar -zxvf mhash-0.9.9.9.tar.gz
#cd mhash-0.9.9.9
#./configure
#make
#make install
4.安装mcrypt
#tar -zxvf mcrypt-2.6.8.tar.gz
#cd mcrypt-2.6.8
#LD_LIBRARY_PATH=/usr/local ./configure
#make
#make install
说明:由于在配置Mcrypt时,会找不到libmcrypt的链接库,导致无法编译,因为Libmcrypt的链接库在/usr/local/文件夹下。因些在配置mcrypt时要加入LD_LIBRARY_PATH=/usr/local导入键接库
5.安装PHP
在配置PHP是加入:
#./configure --with-mcrypt --with-mhash
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/yanyongshan/archive/2009/02/19/3910273.aspx