linux - 开启 Mcrypt PHP 扩展
PHPz
PHPz 2017-04-11 10:17:08
0
3
855

操作系统:CenterOS
框架版本:4.2

百度上的解决安装:
-rw-r--r--. 1 root root 1335178 2月 19 2007 libmcrypt-2.5.8.tar.gz
-rw-r--r--. 1 root root 471915 11月 22 2008 mcrypt-2.6.8.tar.gz
-rw-r--r--. 1 root root 931437 12月 8 2008 mhash-0.9.9.9.tar.gz

安装的时候却出现这样的情况,如何解决,得快点安装上这个扩建,不然没法启动我的框架。。。。

PHPz
PHPz

学习是最好的投资!

répondre à tous(3)
阿神

问题在于:C++ compiler cannot create executables
百度得到:http://bzyyc.happy.blog.163.c...

问题出现在了安装libmcrypt组件包上了,当我./configure时报错:configure: error: C++ compiler cannot create executables 。后来查了一下相关资料后才发现是gcc的组件没有装全,我之前安装gcc时是通知yum方式:

yum install gcc gcc++

呵呵,这样的话还是有组件没有安装完整的。再执行一下这个命令就可以解决问题。

yum install gcc gcc-c++ gcc-g77
Peter_Zhu

好像是缺少c++编译器吧,yum install gcc-c++
如果实在不行,就用一键安装工具吧
https://www.centos.bz/2017/02...

Ty80

咦,好像以前回答过类似的问题。

你应该安装PHP的mcrypt扩展,而不是libmcrypt。

不知道CentOS是怎么命名包的,反正Ubuntu下包名是php5-mcrypt或者php7.0-mcrypt

没有这些包或者你要编译安装的话,就像上面的答案说的,你的编译器没有装。

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!