当我输入命令时make
,输出为
/Downloads/gkrellmbgchg2-0.1.11$ make
cc -Wall -fPIC `pkg-config gtk+-2.0 --cflags` -I/usr/local/include -c -o gkrellmbgchg.o gkrellmbgchg.c
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
In file included from /usr/include/gkrellm2/gkrellm.h:41:0,
from gkrellmbgchg.h:5,
from gkrellmbgchg.c:30:
/usr/include/gkrellm2/log.h:37:18: fatal error: glib.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'gkrellmbgchg.o' failed
make: *** [gkrellmbgchg.o] Error 1
我也曾尝试过make install
,但并没有改变。我也知道我在正确的目录中。
如错误消息所示
No package 'gtk+-2.0' found
您需要gtk+-2.0
从您最喜欢的包管理器中或通过使用以下命令的命令行安装开发标头和库:
sudo apt install libgtk2.0-dev
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句