php: 编译安装时找不到libzip-devel,开启crb库

刘宏缔的架构森林 / 2024-09-24 / 原文

一,yum找不到libzip-devel

返回信息:

[root@blog php-8.3.9]# yum search libzip
Last metadata expiration check: 0:08:35 ago on Mon 23 Sep 2024 06:04:32 PM CST.
========================================================================== Name Exactly Matched: libzip ==========================================================================
libzip.x86_64 : C library for reading, creating, and modifying zip archives
libzip.i686 : C library for reading, creating, and modifying zip archives
========================================================================= Name & Summary Matched: libzip ============================================================

解决:

启用crb即可

二,解决:

1,开启crb库

[root@blog php-8.3.9]# dnf config-manager --set-enabled crb

2,再次查找:

[root@blog php-8.3.9]# yum search libzip
CentOS Stream 9 - CRB                                                                                                                              18 MB/s | 6.5 MB     00:00
Last metadata expiration check: 0:00:02 ago on Mon 23 Sep 2024 06:16:51 PM CST.
========================================================================== Name Exactly Matched: libzip ==========================================================================
libzip.x86_64 : C library for reading, creating, and modifying zip archives
libzip.i686 : C library for reading, creating, and modifying zip archives
========================================================================= Name & Summary Matched: libzip =========================================================================
libzip-devel.i686 : Development files for libzip
libzip-devel.x86_64 : Development files for libzip
libzip-tools.x86_64 : Command line tools from libzip

可以看到已经搜索到了libzip-devel