Saturday, March 20, 2010

Installing ns-2.34 in ubuntu 9.10

Many of you must be facing problems in installing NS-2.34 in Ubuntu 9.10. I believe that you already know how to install NS on Ubuntu's previous versions, if you do not know read here and than come back to this site for further instructions about installing ns in the new karmic(9.10). For the rest the problem lies with the version of 'GCC' compiler used in this version of Ubuntu( i.e 9.10). It uses GCC 4.3. The NS installation stops at OTCL installation. We need to make the following simple changes to make the installation successful:


  1. Install GCC 4.3 through Synaptic package manager.
    or write in terminal: "sudo apt-get install gcc-4.3"
  2. Make the following change in Makefile.in in OTCL folder after unzipping NS-2.34
    Then in the very first line of Makefile.in instead of "CC= @CC@" write "CC= gcc-4.3."
  3. Then install it normally as you do in the previous versions( to learn how to install in previous versions visit http://www.techquark.com/2009/09/install-ns-2-on-ubuntu-904.html.


Hope this solves the installation problem of ns 2.34 in ubuntu 9.10

1 comment:

  1. Useful information. I hope it would help with NS2 simulation to a
    greater extend. I am planning to install NS2 in Ubuntu. Thanks for the
    post!

    http://www.eexploria.com/

    ReplyDelete