本文操作環(huán)境:ubuntu 16.04系統(tǒng)、PHP7.0版、DELL G3電腦
php7 沒有phpize怎么辦?
ubuntu服務(wù)器下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 的內(nèi)容換成 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一下
再執(zhí)行 apt-get install php7.0-dev
知識點擴展:
沒有PHPIZE的解決方法
# which phpize
/usr/bin/phpize# rpm -q –whatprovides /usr/bin/phpize
php-devel-4.3.10-3.2Give “yum install php-devel” a try!
在redhat的網(wǎng)站上找到了這個
默認(rèn)centOS和FC6都沒有裝這個phpize
就像上面說的,yum install php-devel
到此這篇關(guān)于php7 沒有phpize的解決方法的文章就介紹到這了,更多相關(guān)php7 沒有phpize怎么辦內(nèi)容請搜索服務(wù)器之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持服務(wù)器之家!
原文鏈接:https://www.php.cn/topic/php7/484343.html