HI , i suggest to you install ns2 on any environment related to linux such as ubuntu and there is some steps must be followed to run ns2 , and you must have internet on the pc that download ns2 on it here the steps :- First, we download the ns-2 all-in-one file [54.4 MB]. $ wget http://nchc.dl.sourceforge.net/sourceforge/nsnam/ns-allinone-2.34.tar.gz$ tar -xzvf ns-allinone-2.34.tar.gz$ cd ns-allinone-2.34$ sudo apt-get install build-essential autoconf automake libxmu-dev$ ./install If your ubuntu version is 9.10, you must change the variable of environment CC $ export CC=gcc-4.3 Set environment variables $ gedit ~/.bashrc Add the following lines to the end of the file. Remember replace "/your/path" by the folder where you have stored extracted the ns-2 file (For example, if your Linux account name is purple, and you have extracted the file to your home directory, you have to change /your path to /home/purple) # LD_LIBRARY_PATHOTCL_LIB=/your/path/ns-allinone-2.34/otcl-1.13NS2_LIB=/your/path/ns-allinone-2.34/libX11_LIB=/usr/X11R6/libUSR_LOCAL_LIB=/usr/local/libexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB # TCL_LIBRARYTCL_LIB=/your/path/ns-allinone-2.34/tcl8.4.18/libraryUSR_LIB=/usr/libexport TCL_LIBRARY=$TCL_LIB:$USR_LIB # PATHXGRAPH=/your/path/ns-allinone-2.34/bin:/your/path/ns-allinone-2.34/tcl8.4.18/unix:/your/path/ns-allinone-2.34/tk8.4.18/unixNS=/your/path/ns-allinone-2.34/ns-2.34/NAM=/your/path/ns-allinone-2.34/nam-1.14/PATH=$PATH:$XGRAPH:$NS:$NAM Ensure that it immediately takes effect: $ source ~/.bashrc Note: the previous step is important; else you cannot successfully run ns-2. (Alternatively, you may have to restart your X-windows, that is logout, and then login, or restart your computer.) Now, the installation has been completed. Try: $ ns The "%" symbol appears on the screen. Type "exit" to quit. Validation To run the ns validation suite: $ cd ns-2.34$ ./validate
--- On Fri, 7/8/11, shwta jain <shwe...@sac.isro.gov.in> wrote: From: shwta jain <shwe...@sac.isro.gov.in> Subject: [ns] installation problem To: ns-users@ISI.EDU Date: Friday, July 8, 2011, 6:27 AM Hi Following error is coming during installation of ns-2.34. Can anybody help me regarding this error * Build Stanford GraphBase ============================================================ Making sgb if test -r gb_io.ch; then ctangle gb_io.w gb_io.ch; else ctangle gb_io.w; fi /bin/sh: line 1: ctangle: command not found make: *** [gb_io.c] Error 127 Unable to create sgb library, but it's optional, so continuing... ============================================================ * Build GT-ITM ============================================================ sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing.. ============================================================ * Build zlib ============================================================ Checking for gcc... Building static library libz.a version 1.2.3 with cc. Checking for unistd.h... No. Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf() Checking for snprintf() in stdio.h... No. WARNING: snprintf() not found, falling back to sprintf(). zlib can build but will be open to possible buffer-overflow security vulnerabilities. Checking for return value of sprintf()... No. WARNING: apparently sprintf() does not return a value. zlib can build but will be open to possible string-format security vulnerabilities. Checking for errno.h... No. Checking for mmap support... No. cc -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c make: cc: Command not found make: *** [example.o] Error 127 Zlib make failed, but it's optional Continue ... ============================================================ * Build tcl8.4.18 ============================================================ ./install: line 431: autoconf: command not found loading cache ./config.cache checking whether to use symlinks for manpages... no checking whether to compress the manpages... no checking whether to add a package name suffix for the manpages... no checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH tcl8.4.18 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your platform. [shweta@localhost ns-allinone-2.34]$