OPERATING SYSTEMSOS Linux

How to install ns3 in Ubuntu | NS-3.38

Join this channel to get access to the perks:
https://www.youtube.com/channel/UCSckTbBIf39jf2dIbruS32A/join

My other Channel – https://www.youtube.com/tspradeepkumar1​
My Tech Blog – https://www.nsnam.com/
My Personal webiste – https://www.pradeepkumar.org ​
______________________________

About this video:
#ns3 #ubuntu #installation
In this video, we are going to install ns3.38 in Ubuntu 22.04 OS
After the fresh installation of Ubuntu, perform the following command to run the updates

$ sudo apt update
$ sudo apt install g++ python3 cmake ninja-build git gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 tcpdump wireshark sqlite sqlite3 libsqlite3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools openmpi-bin openmpi-common openmpi-doc libopenmpi-dev doxygen graphviz imagemagick python3-sphinx dia imagemagick texlive dvipng latexmk texlive-extra-utils texlive-latex-extra texlive-font-utils libeigen3-dev gsl-bin libgsl-dev libgslcblas0 libxml2 libxml2-dev libgtk-3-dev lxc-utils lxc-templates vtun uml-utilities ebtables bridge-utils libxml2 libxml2-dev libboost-all-dev

All these packages are not compulsorily needed, but install these things, else there may be some bugs that prohibit your code to run.. Hence let’s install all these packages.

Step 2:
Now unzip or untar the ns-allinone-3.38.tar.bz2 to the home folder. in my case, it is
/home/pradeepkumar

Now successfully extracted.

Step 3:
Now we need to install it by running the command
Open a new terminal

$ cd ns-allinone-3.38/
$ ./build.py –enable-examples –enable-tests

Follow me on,
Instagram – https://www.instagram.com/tspradeepkumar
Facebook – https://www.facebook.com/tspradeep​
Twitter – https://twitter.com/tspradeepkumar​
________________________________

source

ubuntu

15 thoughts on “How to install ns3 in Ubuntu | NS-3.38

  • hallo sir, can you help me? when i want to install ns3, the terminal said that "./build.py: Permission denied" do you have any solution?

  • [14-Nov-23]

    yes!
    I would like to thank you for this, this video is really helpful.
    Thank You sir.

  • hello sir, how to install the openflow and ofswitch13 into NS-3.38 in ubuntu 2022TLS?

  • Hello Sir,

    I would like to thank you for this, this video is really helpful.

    I would also request you to please make a video Precision time protocol (1588 PTP)

  • these commands will work for ns3.39 also
    or any changes needed?

  • hallo sir, I'm zack, I have a question, when I run to install ninja-build its said "Package ninja-build is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package 'ninja-build' has no installation candidate"
    Can you explain me, why I got the error message?? thanks in advance

  • Waiting for cache lock:could not get lock is shown when i installed sudo apt install build-essential autoconf automake libxmu-dev. Please helo me to install.

  • hello please can you help me run OSPF on ns-3.39 please can you help me with a link or a source code thank you

  • Unable to locate package error is displayed while running sudo apt install in step 1, please help, do i need to install something in my ubuntu 22.04?

  • Did the "sudo apt install build-essential autoconf auto make libmux-dev" and it said it was unabe to locate the package auto and libmux-dev. I don't know if it's because I just installed ubuntu or what? And I'm not familiar with the OS.

  • Please can you share how to compile and run a script on NS 3.38?

  • sir can you please update the FANET video for the new version of ns3 it would be of great help
    Thanks

Comments are closed.