返回
首页 > 儿童教育

php7 没有phpize怎么办

时间: 2023-02-01

php7没有phpize的解决办法:1、修改resolv.conf并添加“nameserver8.8.8.8”;2、替换sources.list内容并更新安装“php7.0-dev”即可。

本文操作环境: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

学习:《PHP教程》

以上就是php7 没有phpize怎么办的详细内容

猜你喜欢

版权所有 Copyright©2023 餐饮美食网 版权所有

粤ICP备15109582号

联系邮箱:187348839@qq.com