PHP7.4.20编译时报错:

checking for zip archive read/write support... yes
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:No package 'libzip' found
No package 'libzip' found
No package 'libzip' foundConsider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.Alternatively, you may set the environment variables LIBZIP_CFLAGS
and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[root@e494931e-b27a-4ab5-afce-0c832c48cbc1-1227186 php-7.4.20]#

意思是 libzip的版本必须大于0.11 且 不能等于1.3.1或者1.7.0

解决方法:

wget https://libzip.org/download/libzip-1.3.2.tar.gz
tar xvf libzip-1.3.2.tar.gz
cd libzip-1.3.2
./configure
make
make install
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/"

这样再执行就OK了

creating libtool
appending configuration tag "CXX" to libtoolGenerating files
configure: patching main/php_config.h.in
configure: creating ./config.status
creating main/internal_functions.c
creating main/internal_functions_cli.c
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating sapi/fpm/php-fpm.conf
config.status: creating sapi/fpm/www.conf
config.status: creating sapi/fpm/init.d.php-fpm
config.status: creating sapi/fpm/php-fpm.service
config.status: creating sapi/fpm/php-fpm.8
config.status: creating sapi/fpm/status.html
config.status: creating sapi/phpdbg/phpdbg.1
config.status: creating sapi/cgi/php-cgi.1
config.status: creating ext/phar/phar.1
config.status: creating ext/phar/phar.phar.1
config.status: creating main/php_config.h
config.status: executing default commands+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE. By continuing this installation  |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+Thank you for using PHP.

报错:Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met相关推荐

  1. 报错 Package ‘oniguruma‘, required by ‘virtual:world‘, not found

    configure: error: Package requirements (oniguruma) were not met: Package 'oniguruma', required by 'v ...

  2. pip下载包报错ERROR: Could not find a version that satisfies the requirement xxxx==1.0.2 (from versions

    我在安装pymysql的时候报错 ERROR: Could not find a version that satisfies the requirement pymysql==1.0.2 (from ...

  3. kafka完美解决报错:Error while executing topic command:Replication factor:3 larger than available brokers:0

    kafka完美解决报错:Error while executing topic command:Replication factor:3 larger than available brokers:0 ...

  4. 报错`RuntimeError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 9.78 GiB total capaci

    报错RuntimeError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 9.78 GiB total capacity; 8. ...

  5. golang 引入包报错package xxx is not in GOROOT

    记录最近自学 golang 遇到的坑: $GOROOT = /opt/go $GOPATH = /root/goproject 问题: 当引入gopath目录下的包, 报错: package go_c ...

  6. vscode 报错package xxx is not in GOROOT(path) 或者go: to add module requirements and sums: go mod tidy

    看了很多帖子然而解决不了问题,我自己多次实践,最终得到了解决 开启项目前本人配置了两个环境变量: 1. 2. 一开始遇到的问题: 1. 这里的问题是:我打开一个文件夹hello_go ,hello_g ...

  7. 【Linux部署】第一次部署ZooKeeper启动两次报错问题解决 Could not find or load main class+Failed to bind to /0.0.0.0:8080

    使用 zkServer.sh start-foreground 启动可以看到报错信息,使用的时候还是用 zkServer.sh start 来启动服务. 1.第一次安装报错 安装包(apache-zo ...

  8. 本地上传文件到FastDFS命令上传报错:ERROR - file: connection_pool.c, line: 142, connect to server 192.168.0.197:221

    root@ubuntu:/etc/fdfs# /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /etc/a.jpg [2019-12-03 11:38: ...

  9. LaTeX minted报错Package minted Error: Missing Pygments output

    在确认已使用pip install Pygments命令安装好Pygments包并在 TEX 文件的开头添加了 \usepackage[utf8]{inputenc} \usepackage[engl ...

  10. @override报错_C++ 多态性:C++11:override 与 final(学习笔记:第8章 09)

    C++11:override 与 final[1] override 多态行为的基础:基类声明虚函数,继承类声明一个函数覆盖该虚函数 覆盖要求: 函数签名(signature)完全一致 函数签名包括: ...

最新文章

  1. Fedora 7 播放器totem
  2. Kubernetes-dashboard安装
  3. N个数依次进栈,求所有可能的出栈方式
  4. RxSwift之UI控件Label扩展的使用
  5. 游戏类型区分(做游戏的朋友可以看看)
  6. Spark Streaming源码分析 – DStream
  7. 【Python学习】 caffe-master 之 mnist 详解
  8. 计算机网络攻防技术的分析与研究
  9. 自动控制原理知识点整合归纳(韩敏版)
  10. 三、基础的Serializer序列化器
  11. 【学习笔记】SAP资产模块
  12. javascript的ActiveXObject造成“Automation服务器不能创建对象”
  13. python中查看相对路径_python提取相对路径
  14. 单片机的组成、工作原理、分类、特点以及发展趋势
  15. 【ELL】ell学习之__builtin_expect(likely-unlikely)
  16. 【Python网络爬虫】百度贴吧/豆瓣小组
  17. 购买价格与商品价格和SKU价格的关系
  18. python解决换零钱问题_多种解法解决“零钱兑换”问题
  19. 【CF768G】The Winds of Winter(启发式合并)(二分答案)
  20. Windows程序设计第五版源代码---LINEDEMO

热门文章

  1. css三角形三条边全攻略
  2. 系统配置:修改DNS 解决网络访问部分网站速度慢的一种方法
  3. windows - 屏幕抓取技术总结
  4. 众为兴机械手与上位机交互调试
  5. 手机上颜值测试软件,颜值测试软件大全 测试颜值的软件推荐
  6. MATLAB 分析FIR 滤波器的相位特性和幅度特性
  7. 知乎问答:如果你去摆地摊,卖什么商品最合适?
  8. 银联接口对接demo测试
  9. 计算机快速启动栏在哪,快速启动栏,教您怎么显示快速启动栏
  10. DELL服务器显示0xc000021a,win10系统蓝屏0xc000021a错误怎么修复