linux 安装报错:pkg-config not found
2023-09-11 14:22:41 时间
linux 安装报错:pkg-config not found
使用编译安装时,在执行./configure时报如下错误:
... ... checking for pkg-config... no pkg-config not found configure: error: Please reinstall the pkg-config distribution
提示,配置错误,请重新安装pkg配置分发。
解决方法,根据提示,安装pkg-config:
sudo apt-get install pkg-config
扩展知识:
关于pkg-config的简介:
pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line so an application can use gcc -o test test.c `pkg-config --libs --cflags glib-2.0` for instance, rather than hard-coding values on where to find glib (or other libraries). It is language-agnostic, so it can be used for defining the location of documentation tools, for instance.
翻译:
PKG CONFIG是编译应用程序和库时使用的辅助工具。它帮助您在命令行中插入正确的编译器选项,以便应用程序可以使用gcc-o test test.c'pkg-config--libs--cflags glib-2.0',例如,而不是硬编码在哪里找到glib(或其他库)的值。它是语言不可知的,因此它可以用来定义文档工具的位置。
相关文章
- centos linux安装python 3.7.4步骤和报错以及PaddlePaddle dockerfile安装python 3.7.4
- Linux安装 微信开发者工具(deepin linux ubt)
- linux编译esp8266
- Linux CentOS7.x 升级内核的方法
- Linux MISC 驱动实验
- 如何使用 SSHFS 通过 SSH 挂载远程的 Linux 文件系统或者目录
- ubuntu 18.04上执行buildman安装了交叉工具链之后编译报错"aarch64-linux/7.3.0/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory"如何处理?
- Linux安装Jenkins(图文解说详细版)
- 分享Kali Linux 2016.2第42周镜像文件
- Linux 内核探测和去连接的细节
- wkhtmltox 在Linux上安装
- linux安装mydumper软件包以及报错解决
- 简单实例讲解linux的module模块编译步骤
- Linux下Mongodb安装和启动配置
- linux服务器安装nodeJS步骤及踩坑记录(解决node -v报错cannot execute binary file: Exec format error的问题 - 在Linux中安装适用于arm64位的nodejs)以及node环境项目部署
- linux 下安装apache 快速教程
- linux 环境安装Flutter
- Linux (centos8)安装 MySQL 8 数据库(图文详细教程)
- Linux学习杂谈
- Linux学习笔记(13)linux软件安装rpm与yum--理论篇
- Linux安装weblogic报错“u01/app/oraInventory/“ cannot read/execute
- linux安装mysqlclient报错
- Linux-ubuntu安装软件报错E: Sub-process /usr/bin/dpkg returned an error code (1)解决办法
- Manjaro Linux无备份迁移home目录
- mysql-8.0.27-linux版本安装手册,让你一路畅通无阻,2分钟就完成安装
- Linux安装