我正在安裝嘗試安裝需要 gtk+ 3.16 的擴展,但我目前的版本是 Debian Jessie 8 上的 3.14。
gtkbuilder: required gtk+ version 3.16, current version is 3.14
我正在透過突觸包管理器查看是否可以找到該包,但我沒有任何運氣。我做了一些搜索,發現了這個 gnome ftp https://ftp.gnome.org/pub/gnome/sources/gtk+/3.16/
我下載了這個包,解壓縮它,sudo tar xf gtk+-3.16.4.tar.xz
然後我運行./configure
它運行了一段時間,直到它擊中
Requested 'glib-2.0 >= 2.43.4' but version of GLib is 2.42.1
Requested 'atk >= 2.15.1' but version of Atk is 2.14.0
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.
我是否應該繼續逐一安裝每個依賴項,直到它向我拋出錯誤為止,或者是否有一種方法可以輕鬆安裝它,而不必安裝每個依賴項錯誤。通常,一個依賴項依賴一堆其他依賴項,這可能非常耗時。任何提示或建議將不勝感激。
更新:
我目前正在安裝我安裝的每個依賴項路由atk 2.15.1
,並且glib 2.43.4
它編譯得很好,沒有錯誤。但是當我嘗試./configure
在 gtk+-3.16-4 上運行時,出現以下錯誤。
*** 'pkg-config --modversion glib-2.0' returned 2.43.4, but GLIB (2.42.1)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.43.4 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.
我運行pkg-config --modversion glib-2.0
並輸出2.43.4
這意味著我安裝了正確的 glib 版本,錯誤訊息提到如果發生這種情況,則設置“PKG_CONFIG_PATH 以指向正確的配置文件”的環境變量,但我不知道它應該指向哪個文件或者這個文件的路徑是什麼。