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 multiversedeb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiversedeb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiversedeb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiversedeb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiversedeb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiversedeb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiversedeb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiversedeb http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiversedeb-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怎么办的详细内容。