How to install NS2 in linux

Thread Starter

nobitavn89

Joined Mar 7, 2010
14
Hi everyone!
Does any one show me the way to install NS2 in linux? I am a beginner with linux, so i hope u can show me step by step and clearly. I am using ubuntu 10.04, lucid.
Thanks
 

shteii01

Joined Feb 19, 2010
4,644
http://www.isi.edu/nsnam/ns/ns-build.html

  • Fetch the source code as described above.
  • Unpack OTcl, TclCL and ns source into the same top level directory.
  • build OTcl, TclCL and ns
    • cd into the OTcl directory
    • run ./configure
    • run make
    • cd into the TclCL directory
    • run ./configure
    • run make
    • cd into the ns directory
    • run ./configure
    • run make
    For Unix, a simple ./configure will try to auto-detect the packages ns needs to build. Auto-detection searchs sensible places (like /usr/local) and the directory above current direcory. If you have packages installed elsewhere you can explicitly tell ns where something is with options like --with-tcl=/your/path/to/tcl. Run ./configure --help for a complete list of options. code
  • Verify that it built correctly and runs:
    • ./validate
 

Thread Starter

nobitavn89

Joined Mar 7, 2010
14
"run make". Do you mean run the Makefile which has created by ./configure? when i try it: "-bash: ./Makefile: Permission denied". Can u help me?
Thanks alot
 

nerdegutta

Joined Dec 15, 2009
2,684
If this is on a single user system, and you are the sys adm, then you could try to run the program as a superuser or root.
 
Last edited:
Top