不滿足套件要求 (x11)(設定環境變數)

不滿足套件要求 (x11)(設定環境變數)

所以今天我從 01.org 去安裝,Mesa - 9.0.1但不確定如何編譯它,所以我找到了一個網站,說你可以.tar.gz使用 Alien 將文件內容轉換為 .debs。所以我把它轉換並去安裝它。它看起來安裝得很好,但沒有安裝,當我後來去套件管理器時,它說套件目錄已損壞,需要修復。但它不會修復。

dpkg: error processing /var/cache/apt/archives/libglapi-mesa_9.0.1-0ubuntu1~precise7.3_amd64.deb (--unpack):  './usr/share/doc/libglapi-mesa/changelog.Debian.gz' is different from the same file on the system dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe) 
dpkg-deb: error: subprocess <decompress> returned error exit status 2 Unpacking libgl1-mesa-glx (from .../libgl1-mesa-glx_9.0.1-0ubuntu1~precise7.3_amd64.deb) ... 
dpkg: error processing /var/cache/apt/archives/libgl1-mesa-glx_9.0.1-0ubuntu1~precise7.3_amd64.deb (--unpack):  './usr/share/doc/libgl1-mesa-glx/changelog.Debian.gz' is different from the same file on the system dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe) 
dpkg-deb: error: subprocess <decompress> returned error exit status 2 Errors were encountered while processing:  /var/cache/apt/archives/libglapi-mesa_9.0.1-0ubuntu1~precise7.3_amd64.deb /var/cache/apt/archives/libgl1-mesa-glx_9.0.1-0ubuntu1~precise7.3_amd64.deb Error in function:

所以我進入突觸包管理器,它告訴我係統上有 22 個包損壞。它們都依賴libgl1-mesa-glxlibglapi-mesa。所以我去重新安裝它/他們修復它/無論如何,但它不起作用,因為套件管理器不會讓我安裝任何東西,因為這兩個文件也依賴其他文件。

嘗試過:

sudo apt-get -f install

sudo dpkg --configure -a

sudo apt-get purge libgl1-mesa-glx libglapi-mesa

sudo apt-get -f autoremove

sudo apt-get remove libgl1-mesa-glx libglapi-mesa

sudo apt-get clean

等遵循其他網站的建議但沒有運氣。

所以我去編譯原始Mesa - 9.0.1資料夾並運行./configure,我應該首先做什麼,它告訴我我安裝的其他依賴項,但現在它告訴我我沒有x11,但我很確定我必須做:

checking for X11... no configure: error: Package requirements (x11) were not met:

No package 'x11' 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 X11_CFLAGS and X11_LIBS to avoid the need to call pkg-config.

請您告訴我如何「設定環境變數 X11_CFLAGS 和 X11_LIBS 以避免呼叫 pkg-config」。 ?

答案1

這是因為您沒有 xorg 開發庫,很簡單:

sudo apt-get install xorg-dev

應該修復該錯誤訊息。我建議使用:

sudo apt-get install build-dep mesa

相反,以確保安裝所有依賴項。

相關內容