Saturday 1 March 2014

Compiling and Building NS2 project

Hello pals,
                This post comes after long time . This time i would like to tell you about compiling and building Ns-2 project. 

  Reasons for compilation:                     

    1. Added new versions of xgraph , tcl/tk , nam , otcl , perl  etc... to the existing NS-2 project
    2. Made any changes in the C++ files. like .cc files 
    3. Added any patches to the existing NS-2 code 

Steps to be followed for compilation and build process

precondition: 

    1.    Must and should posses C++ compiler (gcc package).

commands:   

    • cd into the Ns-2 directory(for example ~ns-allinone-2.xx/ns-2.xx)
    • run ./configure (./configure  try to auto-detect all the packages ns requires to build. Auto-detection checks sensible places (like /usr/local) and the directory above current direcory.)
    • run make
  • Verification and validation:
    • ./validate

1 comment:

  1. hi sir,
    i am getting error in olsr routing protocol in tcl file as error
    After that I run the olsr tcl file it shows the following error.

    “Agent/OLSR set use_mac_ true”
    (file “olsr_example.tcl” line 44)
    so please help me to sort this error .its urgent

    ReplyDelete