我尝试安装 gtk+-3.22.7.tar.gz,但输入后出现以下错误。请求相同的帮助。
./configure result :configure: error: Package requirements (glib-2.0 >= 2.49.4 atk >= 2.15.1 pango >= 1.37.3 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0) were not met:
No package 'glib-2.0' found
No package 'atk' found
No package 'pango' found
No package 'cairo' found
No package 'cairo-gobject' found
No package 'gdk-pixbuf-2.0' 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 BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
And then I type make but result : make: *** No targets specified and no makefile found. Stop.Anyone Can Help me !!!
要搜索:
$ dnf search gtk3*
要安装:
$ sudo dnf install gtk3-devel
Fedora 25 已经提供了 GTK+ 3.22.2,我相信这对于您要做的事情来说应该绰绰有余。只需使用 DNF 包管理器安装 GTK+ 3 的 -devel
包:gtk3-devel-3.22.2
。
另请参阅这个 Fedora 开发者 GTK+ 指南。
只需运行以下命令:
sudo dnf install gtk3-devel