如何在ubuntu 14.04上安裝NS 2.35?

如何在ubuntu 14.04上安裝NS 2.35?

我嘗試在 ubuntu 14.04 上安裝 ns-2.35。

In file included from /home/mouli/ns-allinone-2.35/tk8.5.10/unix/../generic/tkInt.h:19:0,
                 from /home/mouli/ns-allinone-2.35/tk8.5.10/unix/../generic/tk3d.c:14:
/home/mouli/ns-allinone-2.35/tk8.5.10/unix/../generic/tk.h:76:23: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.5.10 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
mouli@ubuntu:~/ns-allinone-2.35$ ^C
mouli@ubuntu:~/ns-allinone-2.35$ 

答案1

你應該安裝libx11.運行以下命令:

sudo apt-get install libx11-dev

該套件提供了 X Window 系統的客戶端接口,也稱為Xlib.它為視窗系統的基本功能提供了完整的API。

相關內容