php7 没有phpize的解决方法

时间:2022-04-11 23:10:38

本文操作环境:ubuntu 16.04系统、PHP7.0版、DELL G3电脑

php7 没有phpize怎么办?

ubuntu服务器下php7没有phpize文件解决方案

第一种:

?
1
sudo vim /etc/resolv.conf

添加nameserver 8.8.8.8

第二种:

?
1
2
3
4
5
6
7
8
9
10
11
/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

到此这篇关于php7 没有phpize的解决方法的文章就介绍到这了,更多相关php7 没有phpize怎么办内容请搜索服务器之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持服务器之家!

原文链接:https://www.php.cn/topic/php7/484343.html