
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 ウィンドウ システム (別名 ) へのクライアント インターフェイスを提供しますXlib
。ウィンドウ システムの基本機能の完全な API を提供します。