一次在linux下从源码编译pkg-config的过程

下载: wget --no-check-certificate https://pkg-config.freedesktop.org/releases/pkg-config-0.28.tar.gz

解压: tar xzvf pkg-config-0.28.tar.gz

进入 pkg-config-0.28目录,生成makefile: ./configure

出现错误:

configure: error: Either a previously installed pkg-config or "glib-2.0 >= 2.16" could not be found. Please set GLIB_CFLAGS and GLIB_LIBS to the correct values or pass --with-internal-glib to configure to use the bundled copy.

似乎是glib的版本问题,不想去弄了,于是: ./configure --with-internal-glib

这次没有报错。编译: make

安装: make install

结束。

--------------------------------------------------------------------------------

参考:https://blog.csdn.net/malin0523/article/details/80328587

你可能感兴趣的:(Windows/Linux使用)