End.

php7.4安装扩展包,安装zip扩展包,安装intl扩展包

升级PHP之后,PHP7.4版本:参考

centos7 更新php版本,php7.2升级php7.4


升级后,发现安装zip扩展,不能直接 yum install php74-zip

因为yum没有php74-zip,但是使用yum search zip

[root@localhost ~]# yum search zip
已加载插件:fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Loading mirror speeds from cached hostfile
 * epel: mirror.01link.hk
 * remi-php74: ftp.riken.jp
 * remi-safe: ftp.riken.jp
================================================================= N/S matched: zip ==================================================================
bzip2-devel.i686 : Libraries and header files for apps which will use bzip2
bzip2-devel.x86_64 : Libraries and header files for apps which will use bzip2
bzip2-libs.i686 : Libraries for applications using bzip2
bzip2-libs.x86_64 : Libraries for applications using bzip2
ghc-zip-archive.x86_64 : Library for creating and modifying zip archives
ghc-zip-archive-devel.x86_64 : Haskell zip-archive library development files
laszip-devel.x86_64 : The development files for laszip
lbzip2.x86_64 : Fast, multi-threaded bzip2 utility
lbzip2-utils.x86_64 : Utilities for working with bzip2 compressed files
libknet1-compress-bzip2-plugin.x86_64 : Provides libknet1 bzip2 support
libzip.i686 : C library for reading, creating, and modifying zip archives
libzip.x86_64 : C library for reading, creating, and modifying zip archives
libzip-devel.i686 : Development files for libzip
libzip-devel.x86_64 : Development files for libzip
libzip-last.x86_64 : C library for reading, creating, and modifying zip archives
libzip5.x86_64 : C library for reading, creating, and modifying zip archives
lziprecover.x86_64 : Data recovery tool and decompressor for files in the lzip compressed format
minizip.i686 : Library for manipulation with .zip archives
minizip.x86_64 : Library for manipulation with .zip archives
minizip-devel.i686 : Development files for the minizip library
minizip-devel.x86_64 : Development files for the minizip library
nbdkit-plugin-gzip.x86_64 : GZip file serving plugin for nbdkit
nodejs-zip-stream.noarch : A streaming zip archive generator
p7zip-gui.x86_64 : 7zG - 7-Zip GUI version
p7zip-plugins.x86_64 : Additional plugins for p7zip
pbzip2.x86_64 : Parallel implementation of bzip2
perl-Archive-Zip.noarch : Perl library for accessing Zip archives
perl-Compress-Raw-Bzip2.x86_64 : Low-level interface to bzip2 compression library
perl-PerlIO-gzip.x86_64 : Perl extension to provide a PerlIO layer to gzip/gunzip
php-mcnetic-zipstreamer.noarch : Stream zip files without i/o overhead
php-pclzip.noarch : Compression and extraction functions for Zip formatted archives
php-pecl-zip.x86_64 : A ZIP archive management extension
php-zipstream.noarch : Streaming dynamic zip from PHP without writing to the disk
php54-php-pecl-zip.x86_64 : A ZIP archive management extension
php55-php-pecl-zip.x86_64 : A ZIP archive management extension
php56-php-pecl-zip.x86_64 : A ZIP archive management extension
php70-php-pecl-zip.x86_64 : A ZIP archive management extension
php71-php-pecl-zip.x86_64 : A ZIP archive management extension
php72-php-pecl-zip.x86_64 : A ZIP archive management extension
php73-php-pecl-zip.x86_64 : A ZIP archive management extension
php74-php-pecl-zip.x86_64 : A ZIP archive management extension
php80-php-pecl-zip.x86_64 : A ZIP archive management extension
php81-php-pecl-zip.x86_64 : A ZIP archive management extension
php82-php-pecl-zip.x86_64 : A ZIP archive management extension
poco-zip.x86_64 : The Zip POCO component
quazip.x86_64 : Qt/C++ wrapper for the minizip library
quazip-devel.x86_64 : Development files for quazip
quazip-qt5.x86_64 : Qt5 wrapper for the minizip library
quazip-qt5-devel.x86_64 : Development files for quazip-qt5
unzip.x86_64 : A utility for unpacking zip files
uwsgi-transformation-gzip.x86_64 : uWSGI - GZip Transformation plugin
zip.x86_64 : A file compression and packaging utility compatible with PKZIP
zipios++.x86_64 : C++ library for reading and writing Zip files
zipios++-devel.x86_64 : Header files for zipios++
zziplib.i686 : Lightweight library to easily extract data from zip files
zziplib.x86_64 : Lightweight library to easily extract data from zip files
zziplib-devel.i686 : Development files for the zziplib library
zziplib-devel.x86_64 : Development files for the zziplib library
zziplib-utils.x86_64 : Utilities for the zziplib library
advancecomp.x86_64 : Recompression utilities for .PNG, .MNG and .ZIP files
bzip2.x86_64 : A file compression utility
ghc-zlib.x86_64 : Compression and decompression in the gzip and zlib formats
gzip.x86_64 : The GNU data compression program
java-1.8.0-openjdk-javadoc-zip.noarch : OpenJDK 8 API documentation compressed in a single archive
java-11-openjdk-javadoc-zip.i686 : OpenJDK 11 API documentation compressed in a single archive
java-11-openjdk-javadoc-zip.x86_64 : OpenJDK 11 API documentation compressed in a single archive
java-latest-openjdk-javadoc-zip.x86_64 : OpenJDK 18 API documentation compressed in a single archive
laszip.x86_64 : Quickly turns bulky LAS files into compant LAZ files
libslz.x86_64 : StateLess Zip
lzip.x86_64 : LZMA compressor with integrity checking
nodejs-maxmin.noarch : Get pretty output of the original, minified gzipped size of a string/buffer
p7zip.x86_64 : Very high compression ratio file archiver
p7zip-doc.noarch : Manual documentation and contrib directory
perl-WWW-Mechanize-GZip.noarch : Fetch compressed web pages
pigz.x86_64 : Parallel implementation of gzip
python2-bz2file.noarch : Read and write bzip2-compressed files


安装zip扩展包

yum install php74-php-pecl-zip


同样,使用这个方法安装intl扩展

yum search intl
yum install php74-php-intl

yum install php-intl


即可以安装成功


End.