X11開發庫

X11開發庫

我是 ubuntu 新手,我正在使用 ubuntu 13.10,並嘗試安裝 NS-2

在安裝過程中我遇到以下錯誤;

X11/Xlib.h: No such file or directory

然後我嘗試安裝

sudo apt-get install libx11-dev

這次我面臨以下錯誤;

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libx11-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libx11-dev' has no installation candidate

我不知道如何處理,請幫忙提前謝謝

答案1

我也在使用 13.10 但它是 Xubuntu ,無論如何,如果您想安裝 linx11-dev ion 13.10 ,這裡有您需要的軟體包。試試這個方法。

sudo apt-get install libpthread-stubs0 libpthread-stubs0-dev libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev

希望有幫助。

相關內容