无法加载dynamic库

我遇到这个错误,当我运行php -v:

PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mcrypt.dll' - /usr/lib64/php/modules/php_mcrypt.dll: cannot open shared object file: No such file or directory in Unknown on line 0 

我怎样才能解决这个问题?

validationmcrypt.so是否存在:

 file /usr/lib64/php/modules/mcrypt.so 

然后更改php.ini行:

 extension=php_mcrypt.dll 

至:

 extension=mcrypt.so 

如果不存在,请安装libmcrypt和php-mcrypt:

  wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz rpmbuild -ta libmcrypt-2.5.7.tar.gz rpm -ivh /usr/src/redhat/RPMS/i386/libmcrypt-2.5.7-1.i386.rpm /usr/src/redhat/RPMS/i386/libmcrypt-devel-2.5.7-1.i386.rpm yum --enablerepo=centosplus install php-mcrypt 

我build议使用Ubuntu来轻松安装PHP,PHP模块和Web服务器。 Ubuntu存储库包括更多的软件包,您不需要连接其他软件库和编译应用程序。