I tried to install ns 2.34 following the steps given:
# installation
Steps:-
1. Install some important files
$ sudo apt-get install g++-4.4
2. After the end of the update open you folder(Direct)
enter the command (To enter the directory)
$ cd project (Say the directory name is project)
check for the two zip files (NS2 and Nam) by the command - ls
3. Decompress the NS2 file with command prompt
enter the command (Unzip the NS2 file available in your directory name - project)
$ tar xvfz ns-allinone-2.34.tar.gz
4. Enter into the fresh directory comes after Unzip
$ cd ns-allinone-2.34
5. Make a Ptach of the downloaded OTCL
$ patch -p0 < otcl_ns234_gcc-4.4.patch
download from
https://drive.google.com/file/d/0B7S...Z2X09ZYzg/view and save the file in
ns-allinone-2.34 folder.
6. Use this command for Installing GCC files
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
After this i got this error message
#
from /home/jd/project/ns-allinone-2.34/tk8.4.18/unix/../generic/tk3d.c:16:
/home/jd/project/ns-allinone-2.34/tk8.4.18/unix/../generic/tk.h:81: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.4.18 make failed! Exiting ...
For problems with Tcl/Tk see
http://www.scriptics.com
PLEASE HELP..