ntu服务器下php7没有phpize文件怎么办
导读:今天就跟大家聊聊有关“ntu服务器下php7没有phpize文件怎么办”的内容,可能很多人都不太了解,为了让大家更加了解“ntu服务器下php7没有phpize文件怎么办”,小编给大家总结了以下内容,希望这篇文章能帮助大家,下面我们一起来了...
今天就跟大家聊聊有关“ntu服务器下php7没有phpize文件怎么办”的内容,可能很多人都不太了解,为了让大家更加了解“ntu服务器下php7没有phpize文件怎么办”,小编给大家总结了以下内容,希望这篇文章能帮助大家,下面我们一起来了解看看吧。本文操作环境:ubuntu 16.04系统、PHP7.0版、DELL G3电脑
php7 没有phpize怎么办?
ubuntu服务器下php7没有phpize文件解决方案
第一种:
sudo vim /etc/resolv.conf
添加nameserver 8.8.8.8
第二种:
/etc/apt/sources.list 的内容换成 deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse deb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse deb http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
然后sudo apt-get update一下
再执行 apt-get install php7.0-dev
知识点扩展:
没有PHPIZE的解决方法
# which phpize
/usr/bin/phpize
# rpm -q –whatprovides /usr/bin/phpize
php-devel-4.3.10-3.2
Give “yum install php-devel” a try!
在redhat的网站上找到了这个
默认centOS和FC6都没有装这个phpize
就像上面说的,yum install php-devel
以上就是关于“ntu服务器下php7没有phpize文件怎么办”的相关知识,感谢各位的阅读,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注网络,小编每天都会为大家更新不同的知识。
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: ntu服务器下php7没有phpize文件怎么办
本文地址: https://pptw.com/jishu/652758.html