php7 没有phpize怎么办

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

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

推荐学习:《PHP视频教程》

以上就是php7 没有phpize怎么办的详细内容,更多请关注其它相关文章!