Skip to main content

PyTorch Code for Simple Neural Networks for MNIST Dataset

Installing ns-2.35 in Ubuntu 12.04 LTS

As you know Ubuntu 12.04 launched on 26th April 2012 and it is a Long Term Support OS.  To install ns2 in Ubuntu 12.04, it refers the same step as done in 11.10 OS.  For new users, here are the steps to install ns2.35

  1. Download NS-23.5 from http://www.isi.edu/nsnam/ns/
  2. Go to terminal and install the necessary updates using the command “sudo apt-get update”  (without Quotes)
  3. Then install the ns2 required libraries using the command “sudo apt-get install build-essential autoconf automake libxmu-dev” (without quotes)
  4. Untar the downloaded ns-allinone-xxx.tar.gz file using the command “tar zxvf ns-allinone-2.35.tar.gz”
  5. execute the commands one by one as given below

cd ns-allinone-2.35

./install

(You get the PATH information if the installation was successful, upon succeeding set the PATH in the relevant file .bashrc)

Type ns and see a  % symbol indicates that the installation of ns2 is successful and also try the command  nam so that a network animator will be opened.

For any doubts, please raise a comment in the following column. I am there to help you. If you try to install ns2 which comes along with the synaptic package manager, you cannot write new modules and recompile it. In that case, you need to use the above method of installation

Comments

  1. Hi there,
    After installing ns2.35 allinone I got the following error when I type ns:
    "Segmentation fault(Core dumped)" apparently nam is running how could i resolve this
    thanks

    ReplyDelete
  2. make failed! exiting.....
    how to solve?

    ReplyDelete
  3. i hv installed ns2 in 12.04 by "sudo apt-get install ns"....now how to find the version no. of ns2 .is it latest????plz help me sir

    ReplyDelete
  4. how to set LD_LIBRARY_PATH environment variable.

    ReplyDelete
  5. /home/NS2/ns-allinone-2.33/otcl-1.13/otcl.c:495: undefined reference to `__stack_chk_fail_local'
    otcl.o: In function `Otcl_Init':
    /home/NS2/ns-allinone-2.33/otcl-1.13/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
    ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
    ld: final link failed: Bad value
    make: *** [libotcl.so] Error 1
    otcl-1.13 make failed! Exiting ...

    ReplyDelete
  6. I had installed ubuntu 12 LTE but how to install NS-2 on the same. Since T am unable to start internet on ubuntu or access pendrive or cd-rom plzz, help

    ReplyDelete
  7. I receive the following error while installing ns 2.35 (sudo ./install) in ubuntu.

    config.status: creating Makefile
    rm -f libotcl.a otcl.o
    gcc -V 4.5 -c -g -O2 -DNDEBUG -DUSE_SHM -DHAVE_UNISTD_H=1 -I. -I/home/arya/ns-allinone-
    2.35/include -I/home/arya/ns-allinone-2.35/include -I/home/arya/ns-allinone-
    2.35/include -I/include otcl.c
    gcc: error: 4.5: No such file or directory
    gcc: error: unrecognized option ‘-V’
    make: * [libotcl.a] Error 1
    otcl-1.14 make failed! Exiting ...

    I changed the Makefile.in in /ns-allinone-2.35/otcl-1.14
    CC = @CC@ -V 4.6.3
    where -V 4.6.3 represents the gcc version.
    How to remove this error. Help Please Could not find any related help in google.

    ReplyDelete
  8. Hello My friend, thanks for your help.
    Would please tell me how to install tracegraph on Ubuntu 12.04?
    Thanks.

    ReplyDelete
  9. how to set envirenment variable in ubuntu after installation it takes something like LD_LIBRARY_PATH

    ReplyDelete
    Replies
    1. put the following line in the file (/home//.bashrc)
      export LD_LIBRARY_PATH=/path/to/file

      Delete
  10. working gr8...thanx for the info

    ReplyDelete
  11. Hi Padeep I got following error after ./install on ubuntu 12.10

    Installing libtcl8.5.a to /home/gaurav/Desktop/ns-allinone-2.35/lib/
    cp: cannot create regular file `/home/gaurav/Desktop/ns-allinone-2.35/lib/#inst.7299#': Permission denied

    rm: cannot remove `/home/gaurav/Desktop/ns-allinone-2.35/lib/libtcl8.5.a': Permission denied
    mv: cannot stat `/home/gaurav/Desktop/ns-allinone-2.35/lib/#inst.7299#': No such file or directory
    ranlib: could not create temporary file whilst writing archive: No more archived files
    make: *** [install-binaries] Error 1
    tcl8.5.10 installation failed.
    Tcl is not part of the ns project. Please see www.Scriptics.com
    to see if they have a fix for your platform.
    gaurav@gaurav-Inspiron-N5010:~/Desktop/ns-allinone-2.35$

    ReplyDelete
    Replies
    1. hi gaurav,

      even i am getting the same error..

      did ur pblm solved....if yess plz do tell me...

      Delete
    2. try deleting the ns-allinone-2.35 folder and do it from scratch. Dont put anywhere as sudo.

      Delete
  12. how many packages will install normally?

    ReplyDelete
  13. hi, when i am trying to install ns-2 2,35 on ubuntu 12.4, with following steps
    $ sudo apt-get update
              $ sudo apt-get install build-essential autoconf automake libxmu-dev 
    $ tar -zxvf ns-allinone-2.35.tar.gz
             $ cd ns-allinone-2.35
             $ ./install
      
    i get the following error.....


    DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1 /home/msit123/ns-allinone-2.35/tcl8.5.10/unix/../unix/tclAppInit.c
    gcc -O2 -pipe -Wl,--export-dynamic tclAppInit.o -L/home/msit123/ns-allinone-2.35/tcl8.5.10/unix -ltcl8.5 -ldl -lieee -lm \
    -Wl,-rpath,/home/msit123/ns-allinone-2.35/lib -o tclsh
    tcl8.5.10 make succeeded.
    Installing libtcl8.5.a to /home/msit123/ns-allinone-2.35/lib/
    cp: cannot create regular file `/home/msit123/ns-allinone-2.35/lib/#inst.14705#': Permission denied
    rm: cannot remove `/home/msit123/ns-allinone-2.35/lib/libtcl8.5.a': Permission denied
    mv: cannot stat `/home/msit123/ns-allinone-2.35/lib/#inst.14705#': No such file or directory
    ranlib: could not create temporary file whilst writing archive: No more archived files
    make: *** [install-binaries] Error 1
    tcl8.5.10 installation failed.
    Tcl is not part of the ns project. Please see www.Scriptics.com
    to see if they have a fix for your platform.
    msit123@msit123-Studio-1435:~/ns-allinone-2.35$
    plz help me i am fed of it know....

    ReplyDelete
    Replies
    1. it says that permission denied. so possibly you would have untar the file using sudo and trying to install using ordinary user.
      So do all the things using an ordinary user.

      Delete
    2. i tried again and gave the coomand as
      $ tar -zxvf ns-allinone-2.35.tar.gz
      $ cd ns-allinone-2.35
      $ ./install
      i am still getting the same error.

      NGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1 /home/msit123/ns-allinone-2.35/tcl8.5.10/unix/../unix/tclAppInit.c
      gcc -O2 -pipe -Wl,--export-dynamic tclAppInit.o -L/home/msit123/ns-allinone-2.35/tcl8.5.10/unix -ltcl8.5 -ldl -lieee -lm \
      -Wl,-rpath,/home/msit123/ns-allinone-2.35/lib -o tclsh
      tcl8.5.10 make succeeded.
      Installing libtcl8.5.a to /home/msit123/ns-allinone-2.35/lib/
      cp: cannot create regular file `/home/msit123/ns-allinone-2.35/lib/#inst.6908#': Permission denied
      rm: cannot remove `/home/msit123/ns-allinone-2.35/lib/libtcl8.5.a': Permission denied
      mv: cannot stat `/home/msit123/ns-allinone-2.35/lib/#inst.6908#': No such file or directory
      ranlib: could not create temporary file whilst writing archive: No more archived files
      make: *** [install-binaries] Error 1
      tcl8.5.10 installation failed.
      Tcl is not part of the ns project. Please see www.Scriptics.com
      to see if they have a fix for your platform.
      msit123@msit123-Studio-1435:~/ns-allinone-2.35$


      Is it possible for u to provide ur contact no....coz i am fed up with it could no do it

      Delete
  14. ~$ tar -zxvf ns-allinone-2.35.tar.gz
    tar (child): ns-allinone-2.35.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    dell@ubuntu:~$
    sir i got this info from my ubunto 12.10
    what should i suppose to do

    ReplyDelete
  15. after the % symabol has come i typed nam then the error is

    wrong # args: should be "namespace subcommand ?arg ...?"
    %
    please get me out from here....

    ReplyDelete
  16. Sir
    I have installed ns2.35 in ubuntu 11.10 using the steps given by you.
    after running the command /.validate
    it displayed :
    validate overall report: all test passed.
    then also when writing ns it gives error ns currently not installed.

    I have checked the .bashrc and .profile files for environment variables.

    Please help me now what should I do?

    ReplyDelete
  17. sir,
    i tried to install ns2 in ubuntu 12.04...but i got errors like tc 8.5.10 make failed exiting!!!!i tried the steps u gave above..but i am getting errors..pls can anyone help me out of trouble???

    ReplyDelete
  18. Thankyou very much for the post..... i got my ns-2.35 validated, after which i write "ns" but it says,"The program 'ns' is currently not installed. You can install it by typing:
    sudo apt-get install ns2"
    I must be wrong at some point but could not find out where!!!!! any kind of help is welcomed...

    ReplyDelete
  19. Sir, i am working on ubuntu for aodv project , and i am getting the problem to installing ns2 as "archive manager not supported" .
    my installing procedure is
    -sudo apt-get update
    -sudo apt-get install ns2
    -sudo apt-get install nam
    -sudo apt-get install xgraph
    but i am getting problem.... plz sir give me solution... thanking you ...

    ReplyDelete
  20. Hi there,
    After installing ns2.35 allinone I got the following error :
    /home/ubuntu/ns-allinone-2.35/tk8.5.10/unix/../generic/tk.h:76:23: fatal error: X11/Xlib.h: No such file or directory
    compilation terminated.
    make: *** [tk3d.o] Error 1
    tk8.5.10 make failed! Exiting ...

    ReplyDelete

Post a Comment

Popular posts from this blog

Installing ns3 in Ubuntu 22.04 | Complete Instructions

In this post, we are going to see how to install ns-3.36.1 in Ubuntu 22.04. You can follow the video for complete details Tools used in this simulation: NS3 version ns-3.36.1  OS Used: Ubuntu 22.04 LTS Installation of NS3 (ns-3.36.1) There are some changes in the ns3 installation procedure and the dependencies. So open a terminal and issue the following commands Step 1:  Prerequisites $ sudo apt update In the following packages, all the required dependencies are taken care and you can install all these packages for the complete use of ns3. $ sudo apt install g++ python3 python3-dev pkg-config sqlite3 cmake python3-setuptools git qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 openmpi-bin openmpi-common openmpi-doc libopenmpi-dev autoconf cvs bzr unrar gsl-bin libgsl-dev libgslcblas0 wireshark tcpdump sqlite sqlite3 libsqlite3-dev  libxml2 libxml2-dev libc6-dev libc6-dev-i386 libclang-dev llvm-

Installation of NS2 (ns-2.35) in Ubuntu 20.04

Installation of NS2 (ns-2.35) in Ubuntu 20.04 LTS Step 1: Install the basic libraries like      $] sudo apt install build-essential autoconf automake libxmu-dev Step 2: install gcc-4.8 and g++-4.8 open the file using sudo mode $] sudo nano /etc/apt/sources.list Include the following line deb http://in.archive.ubuntu.com/ubuntu bionic main universe $] sudo apt update $] sudo apt install gcc-4.8 g++-4.8 Step 3:  Unzip the ns2 packages to home folder $] tar zxvf ns-allinone-2.35.tar.gz $] cd ns-allinone-2.35/ns-2.35 Modify the following make files. ~ns-2.35/Makefile.in Change @CC@ to gcc-4.8 change @CXX@ to g++-4.8 ~nam-1.15/Makefile.in ~xgraph-12.2/Makefile.in ~otcl-1.14/Makefile.in Change in all places  @CC@ to gcc-4.8 @CPP@ or @CXX@ to g++-4.8 open the file: ~ns-2.35/linkstate/ls.h Change at the Line no 137  void eraseAll() { erase(baseMap::begin(), baseMap::end()); } to This void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); } All changes made Step 4: Open a new termi

Installation of NS2 in Ubuntu 22.04 | NS2 Tutorial 2

NS-2.35 installation in Ubuntu 22.04 This post shows how to install ns-2.35 in Ubuntu 22.04 Operating System Since ns-2.35 is too old, it needs the following packages gcc-4.8 g++-4.8 gawk and some more libraries Follow the video for more instructions So, here are the steps to install this software: To download and extract the ns2 software Download the software from the following link http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz/download Extract it to home folder and in my case its /home/pradeepkumar (I recommend to install it under your home folder) $ tar zxvf ns-allinone-2.35.tar.gz or Right click over the file and click extract here and select the home folder. $ sudo apt update $ sudo apt install build-essential autoconf automake libxmu-dev gawk To install gcc-4.8 and g++-4.8 $ sudo gedit /etc/apt/sources.list make an entry in the above file deb http://in.archive.ubuntu.com/ubuntu/ bionic main universe $ sudo apt update Since, it&#