本文操作環境: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.2Give “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