我想安装 CodeIgniter 4,但是这个错误阻止了安装。
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/20190902/intl (/usr/lib/php/20190902/intl: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/intl.so (/usr/lib/php/20190902/intl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.4.7 (cli) (built: Jun 12 2020 07:43:48) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.7, Copyright (c), by Zend Technologies
答案1
打开终端并输入:
sudo apt update
sudo apt install php7.0 php7.0-cli php7.0-common php7.0-json composer
在项目根目录上方的文件夹中:
composer create-project codeigniter4/appstarter project-root
上述命令将创建一个项目根目录文件夹。
每当有新版本发布时,从项目根目录中的终端:
composer update