我是 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
希望有帮助。