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

知識點擴展:

沒有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怎麼辦內容請搜索WalkonNet以前的文章或繼續瀏覽下面的相關文章希望大傢以後多多支持WalkonNet!

推薦閱讀: