composer 安裝 laravel error ext-zip
試著不用 homestead, docker 這些工具,自行安裝 laravel, 之前已經安裝完成了 composer 接著就是要安裝 laravel 了,根據官網的說明,只要滿足一些套件就可以了,
PHP >= 7.1.3
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Ctype PHP Extension
JSON PHP Extension
工作環境:
Windows 10 + virtualbox
guest: ubuntu 18 server
$composer global require laravel/installer
error:
ext-zip * -> the requested PHP extension zip is missing from your system
...
應該是要安裝 php-zip 或是 phpVersion-zip ,但是,找不到 @@"
這時侯,請更新 /etc/apt/source.list (請記得先備份哦)
$vim /etc/apt/source.list
加上 universe 類別的套件
----------
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
----------
$sudo apt update
$sudo apt install php-zip
再次
$composer global require laravel/installer
安裝成功了。
開心
收工!
PHP >= 7.1.3
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Ctype PHP Extension
JSON PHP Extension
工作環境:
Windows 10 + virtualbox
guest: ubuntu 18 server
$composer global require laravel/installer
error:
ext-zip * -> the requested PHP extension zip is missing from your system
...
應該是要安裝 php-zip 或是 phpVersion-zip ,但是,找不到 @@"
這時侯,請更新 /etc/apt/source.list (請記得先備份哦)
$vim /etc/apt/source.list
加上 universe 類別的套件
----------
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
----------
$sudo apt update
$sudo apt install php-zip
再次
$composer global require laravel/installer
安裝成功了。
開心
收工!
留言
張貼留言