我在17.04,gtk和所有依赖包上安装了ubuntu软件的glade,我发现安装的gtk +(2.24)版本与glade Gtkbuilder格式不兼容,但gtk +(3.20)+是。 所以我从.tar-gz文件手动安装它,它完成没有错误,当我运行
dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]'
显示
ii libgtk-3-0:amd64 3.22.25-0ubuntu0.1 amd64 GTK+
graphical user interface library
ii libgtk-3-bin 3.22.25-0ubuntu0.1 amd64
programs for the GTK+ graphical user interface library
ii libgtk-3-common 3.22.25-0ubuntu0.1 all
common files for the GTK+ graphical user interface library
ii libgtk-3-dev:amd64 3.22.25-0ubuntu0.1 amd64
development files for the GTK+ library
ii libgtk-3-doc 3.22.25-0ubuntu0.1 all
documentation for the GTK+ graphical user interface library
ii libgtk2-perl 2:1.24992-1build1 amd64 Perl
interface to the 2.x series of the Gimp Toolkit library
ii libgtk2.0-0:amd64 2.24.31-2ubuntu1 amd64 GTK+
graphical user interface library
ii libgtk2.0-bin 2.24.31-2ubuntu1 amd64
programs for the GTK+ graphical user interface library
ii libgtk2.0-common 2.24.31-2ubuntu1 all
common files for the GTK+ graphical user interface library
ii libgtk2.0-dev 2.24.31-2ubuntu1 amd64
development files for the GTK+ library
我猜这意味着我安装了3.20+(虽然我安装了3.20.10 idk,为什么它显示3.22.25)当我使用gtkBuilder glade格式(./test)编译并运行任何.hs文件时说
test: test.glade: required gtk+ version 3.20, current version is 2.24
有没有理由认为林间空地没有读取我的3.20.10安装?或以任何方式卸载2.24