我想從 git 編譯並安裝一些用於 reddit 的東西。
當我使用 ./configure.ac 時,它顯示以下錯誤。
./configure: line 5088: GLIB_GSETTINGS: command not found
./configure: line 5089: syntax error near unexpected token `1.42.0'
./configure: line 5089: `GOBJECT_INTROSPECTION_CHECK(1.42.0)'
當我在 stackoverflow 中搜尋時,它顯示 GLIB_GSETTINGS 在 libglib2.0-dev 中找到,但當我嘗試透過安裝它時
sudo apt-get install libglib2.0
它再次拋出以下錯誤
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libglib2.0-0-refdbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-tests' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-bin' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-doc' for regex 'libglib2.0'
Note, selecting 'libglib2.0-data' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0' for regex 'libglib2.0'
libglib2.0-0 is already the newest version (2.48.1-1~ubuntu16.04.1).
libglib2.0-data is already the newest version (2.48.1-1~ubuntu16.04.1).
libglib2.0-bin is already the newest version (2.48.1-1~ubuntu16.04.1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libglib2.0-0-dbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
libglib2.0-0-refdbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
libglib2.0-dev : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
Depends: libglib2.0-bin (= 2.48.0-1ubuntu4)
我一個月前已將系統從 14.04 升級到 16.04,是我錯過了什麼還是我現在做錯了什麼。
reddit git 來源的東西在這裡。https://github.com/samdroid-apps/something-for-reddit 您也可以在這裡檢查所有依賴項,軟體包詳細資訊:something-for-reddit-git 0.1-1
答案1
答案是降級。
當我在 stackoverflow 中再次搜尋時,我發現其他人也面臨著同樣的問題,建議他們使用以下命令降級相應的庫。
sudo apt-get install libglib2.0-0=2.48.0-1ubuntu4
sudo apt-get install libglib2.0-dev
現在我陷入了下一個問題,即./configure: line 5089
:GOBJECT_INTROSPECTION_CHECK(1.42.0)
'