Installing ns-2.35 on Mountain Lion, Mavericks, Yosemite and El Capitan (OS X 10.8/10.9/10.10/10.11)


Here i will provide step by step procedure for you to install ns-2.35 on mac OS X 10.8/9/10 which i successfully installed on my mac (fully tested by me and its working)

Credits:- 


  1. Brain Adamson(for great patch) 
  2. Henrique Zelak Leite Bastos for the right help.
  3. APPLE for Mac OS X.(the best a dev. can get)

Step 1. Software Requirements (Pre-requisites).




Step 2. Choose install directory.


  • Place the downloaded ns-allione-2.35.tar.gz file in the location you want to install it. 

Step 3. Extract ns files.

  • Go to location where you have put your downloaded .tar.gz file and run 
  • tar zxvf ns-allinone-2.35.tar.gz 

Step 4.  Get into the Directory.


  • Execute  cd ns-allinone-2.35

Step 5. Download Patch.


  • Extract and put these files in ns-allinone-2.35 directory.

Step 6. Execute install command


  • Execute ./install64 (will give paths after completion. Copy them)

Step 7. Save Paths.



  • So now we save the paths returned by successful execution of install command.
  • This step is the most critical step as requires proper attention.
  • Come back to your user/home directory and run
  • touch ~/.bash_profile (if you don't have a bash_profile file in your home directory).
  • open ~/.bash_profile (opens bash_profile file in textEdit).
  • Now add paths like 
export PATH=$PATH:path1:path2:path3 (paths are separated by colon)
  • similarly add LD Library paths like 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path1:path2 (paths are separated by colon)
  • and add paths also for TCL Library
export TCL_LIBRARY=$TCL_LIBRARY:path
  • Save and Exit.
  • Now run source ~/.bash_profile.
  • Type nam and .... Bingo!!! if you see the nam window (installation successful !!!)
or 
  • else recheck 7th step again as most mistakes are done during this step only (i.e. saving the paths correctly).
38 comments

Popular posts from this blog

Tutorial to implement protoname in ns2.35

Installing ns-2.35 in Ubuntu 12.04, 12.10, 13.04, 13.10 and 14.04