64,660
社区成员
发帖
与我相关
我的任务
分享
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums
Name: GLib
Description: C Utility Library
Version: @VERSION@
Requires.private: @PCRE_REQUIRES@
Libs: -L${libdir} -lglib-2.0 @INTLLIBS@
Libs.private: @G_THREAD_LIBS@ @G_LIBS_EXTRA@ @PCRE_LIBS@ @INTLLIBS@ @ICONV_LIBS@
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include @GLIB_EXTRA_CFLAGS@
上面是glib-2.0.pc中的命令。
红色的命令在环境变量里找不到。
但是我不知道Requires.private 是什么意思。。
有知道这个是什么意思的么?
该怎么解决啊。。
Package @PCRE_REQUIRES@ was not found in the pkg-config search path.
Perhaps you should add the directory containing `@PCRE_REQUIRES@.pc'
to the PKG_CONFIG_PATH environment variable
Package '@PCRE_REQUIRES@', required by 'GLib', not found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GXPS_CFLAGS
and GXPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
这些又是让我干什么啊?
No package 'glib-2.0' found
No package 'gobject-2.0' found
No package 'gio-2.0' found
No package 'cairo' found
No package 'libarchive' found
No package 'freetype2' found
很多开源库从源代码进行编译安装都是这样的步骤:
./configure
make
make install
开源库最快的安装方式就是直接二进制安装,取决于不同的系统,开发库一般是libxxx-dev这样的形式。