怎么安装php7.4 的mbstring 扩展
使用下面命令:
sudo yum install php-mbstring
sudo yum install php-mbstring
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
393 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.x86_64 0:7.4.30-1.amzn2 will be installed
--> Processing Dependency: libonig.so.2()(64bit) for package: php-mbstring-7.4.30-1.amzn2.x86_64
--> Running transaction check
---> Package oniguruma.x86_64 0:5.9.6-1.amzn2.0.4 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================
Installing:
php-mbstring x86_64 7.4.30-1.amzn2 amzn2extra-php7.4 514 k
Installing for dependencies:
oniguruma x86_64 5.9.6-1.amzn2.0.4 amzn2-core 127 k
Transaction Summary
==============================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 641 k
Installed size: 2.6 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): oniguruma-5.9.6-1.amzn2.0.4.x86_64.rpm | 127 kB 00:00:00
(2/2): php-mbstring-7.4.30-1.amzn2.x86_64.rpm | 514 kB 00:00:00
------------------------------------------------------------------------------------------------------------------------------
Total 4.5 MB/s | 641 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oniguruma-5.9.6-1.amzn2.0.4.x86_64 1/2
Installing : php-mbstring-7.4.30-1.amzn2.x86_64 2/2
Verifying : php-mbstring-7.4.30-1.amzn2.x86_64 1/2
Verifying : oniguruma-5.9.6-1.amzn2.0.4.x86_64 2/2
Installed:
php-mbstring.x86_64 0:7.4.30-1.amzn2
Dependency Installed:
oniguruma.x86_64 0:5.9.6-1.amzn2.0.4
Complete!