编译安装软件总出问题
Tofloor
poster avatar
angelbeak
deepin
2013-05-11 20:13
Author
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
---------该怎么解决,我只要编译安装就出问题。。
Reply Favorite View the author
All Replies
jhkwei
deepin
2013-05-12 22:06
#1
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
---------该怎么解决,我只要编译安装就出问题。。
上面的错误写的很明白,要设置PATH,PKG_CONFIG,GTK_CFLAGS,GTK_LIBS
这些设置你要看一下你的 readme
一般是这个设置的,
export PATH=$PATH:/xxx/xxx/xxx/
export PKG_CONFIG=/xxx/xxx/xxx/
每个变量都要设置一下,/xxx/xxx/xxx/指向你正确的位置
如果要常用就把上面的东西,加到~/.bashrc 的最后面
Reply View the author