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 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
推薦學習:《PHP影片教學》
以上是php7 沒有phpize怎麼辦的詳細內容。更多資訊請關注PHP中文網其他相關文章!