HomeEducationRelated VideosMore From: Hitesh Choudhary

installation of ns3 and solving problems

193 ratings | 89227 views
installation of ns3 and solving problems. Make sure that you watch next video too before installation because there is a shortcut way to install ns3 in next video. By installing just 1 library. command: sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml www.hiteshChoudhary.com www.newdemy.com
Category: Education
Get embed code!
Text Comments (80)
Adnan Saghir (13 days ago)
Hello and hope that you are well. Can you make a video or some instruction on how to use Matlab or python in NS 3 for machine learning solution for VANETS.. Really would appreciate it
Mahrukh Tauseef (3 months ago)
I had trouble building ns-3.20 so I tried building ns-3.26 instead and it worked just fine.
Highlight Links (5 months ago)
./build.py --enable-examples --enable-tests,, My this command is running in ubuntu 18. Desktop version , flow the issue, like this /usr/bin/env: ‘python’: No such file or directory
Information Technology World (8 months ago)
Hi Sir , i'm facing this error please help me to fix this problem "bash: ./build.py: Permission denied"
Information Technology World (7 months ago)
@prasanna Thank you so much, i have solved the problem
prasanna (7 months ago)
I 'm no expert but try running the command with sudo,this will allow you to run the cmd as an administrator.
IStandAlone Roronoa Zoro (8 months ago)
Hitesh Choudhary when I try to build.py the file ns-3.29 my screen frozes whenever I get closer to finish Compiling from 0/1990. Why???
swetha gadde (7 months ago)
While I am using ./bulid.py --enable-examples --enable-tests it is just showing 'python' no such file or directory.. can any one please help me with this?
nalin raj (1 year ago)
hey there for all those who are using ubuntu 16.04 and above can get this ERROR: "Note, selecting 'libgsl-dev' instead of 'libgsl0-dev' Package 'libgsl0ldbl' is not available, but is referred to by another package." To FIX it Just replace 'libgsl0ldbl' with 'libgsl23' and remove "python-pygoocanvas" ,"libgoocanvas-dev" libraries in the end ->because "python-pygoocanvas" ,"libgoocanvas-dev" are removed from the python library so may not find it ->then finally hit enter OR simply copy paste this code which i have modified the above changes down below Modified Command: sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl23 flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygccxml
Naseem Ahmad (1 month ago)
I am using 3.29 but when I run above commands for update it runs most of the commands but shows below: Package graphviz 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 Package gcc 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 Package python 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 Package texinfo 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 However the following packages replace it: install-info info Package bzr 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 'gcc' has no installation candidate E: Package 'python' has no installation candidate E: Unable to locate package python-dev E: Unable to locate package mercurial E: Package 'bzr' has no installation candidate E: Unable to locate package valgrind E: Unable to locate package gsl-bin E: Unable to locate package libgsl0-dev E: Unable to locate package libgsl23 E: Unable to locate package flex E: Unable to locate package bison E: Unable to locate package sqlite E: Unable to locate package sqlite3 E: Unable to locate package libsqlite3-dev E: Unable to locate package libgtk2.0-dev E: Couldn't find any package by glob 'libgtk2.0-dev' E: Couldn't find any package by regex 'libgtk2.0-dev' E: Unable to locate package uncrustify E: Unable to locate package doxygen E: Package 'graphviz' has no installation candidate E: Unable to locate package texlive E: Unable to locate package texlive-latex-extra E: Unable to locate package texlive-generic-extra E: Unable to locate package texlive-generic-recommended E: Package 'texinfo' has no installation candidate E: Unable to locate package dia E: Unable to locate package texlive E: Unable to locate package texlive-latex-extra E: Unable to locate package texlive-extra-utils E: Unable to locate package texlive-generic-recommended E: Unable to locate package texi2html E: Unable to locate package python-pygraphviz E: Unable to locate package python-kiwi E: Unable to locate package python-pygccxml
Afra'a Aakel (8 months ago)
thank you
김종신 (11 months ago)
This helped but I made it by splitting does command like $ sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl23 $ sudo apt-get install flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev $ sudo apt-get install libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended $ sudo apt-get install texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygccxml btw Thanks :)
nalin raj (11 months ago)
@taimooR ejaz bro the above process is same for any Ubuntu version above 16.04
taimooR ejaz (11 months ago)
my ubuntu is 18.04.1 please pleas please help me
Krishna reddy (1 year ago)
heloo i am getting error Note, selecting 'libgsl-dev' instead of 'libgsl0-dev' Package libgsl0ldbl 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 However the following packages replace it: libgsl2 libgsl2:i386 E: Package 'libgsl0ldbl' has no installation candidate
Esubalew Alemneh (11 months ago)
This video also explains how to install ns3. I am able to install it (ns3 version 3.28) successfully . https://www.youtube.com/watch?v=xwD4RbJBVRc&t=9s
Krishna reddy (11 months ago)
@Esubalew Alemneh i am trying learn ns3 on my own ,I checked online courses but I couldn't found any course about ns 3 , I want some other help so plzz understand
Krishna reddy (11 months ago)
@Esubalew Alemneh send me a message on what's app plzzzzz
Esubalew Alemneh (11 months ago)
Delete libgsl0ldbl and run the command again
Krishna reddy (11 months ago)
@Esubalew Alemneh haaaa thanks
Sumitra Devi (1 year ago)
ns2, ns3 is available in Ubuntu repository. Just type "sudo apt install ns3". Easy !
yughi magic (11 months ago)
hello. the next step to use NS3? i am beginner
Siddharth Gupta (1 year ago)
I am getting the error: E: Package 'libgsl0ldbl' has no installation candidate E: Unable to locate package python-pygoocanvas E: Unable to locate package libgoocanvas-dev I already tried finding answers to this on google but no luck
yughi magic (9 months ago)
I fixed it by guiding of tutorial on nsnam.org.
yughi magic (11 months ago)
hello. did you solve your problems? can you help me? i have the same problems .
Quốc Nguyễn Văn (1 year ago)
Can you tutorial install ns-3.8. This is new and install different with ns-3.19 :( difficult to install this with more error appear and dont know how to fix it.
Sanchit Sood (1 year ago)
Same here..
Alireza Ansaripour (1 year ago)
I'm trying to install on ubuntu 16.04 but I get the following error: The following package have unmet dependencies: libgtk2.0-dev : ..... can someone help me with this error plz??
deepa belavigi (1 year ago)
I installed all the libraries in ubuntu 16.04lts. while trying to build it ,i am having error like this: AttributeError: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "./build.py", line 170, in <module> sys.exit(main(sys.argv)) File "./build.py", line 161, in main build_ns3(config, build_examples, build_tests, args, build_options) File "./build.py", line 80, in build_ns3 run_command(cmd) # waf configure ... File "/home/deepa/Desktop/ns-allinone-3.20/util.py", line 24, in run_command raise CommandError("Command %r exited with code %i" % (argv, retval)) util.CommandError: Command ['/usr/bin/python', 'waf', 'configure', '--enable-examples', '--enable-tests', '--with-pybindgen', u'../pybindgen-0.17.0.868'] exited with code 2
E.N. BHARGAVA (1 year ago)
I am getting build error like Build failed -> task in 'ns3-wifi' failed (exit status 1): and more........... what to do now.... anybody could please help
Saad Haseeb (1 year ago)
I'm facing below mentioned error....if you know kindly help me over here to resolve that error. Thanks. E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Lokesh Ratusaria (1 year ago)
i have installed 17.10 version of ubuntu and it's giving this error: E: Package 'libgsl2' has no installation candidate
Neethi Ramaiah (1 year ago)
Sir, I am unable to build ns-3, the following error is displaying when i give ./build.py as build failed as task in 'ns-3 wimax' failed and when i give ./build.py --enable-examples --enable-tests compilation of different examples failing with respect to wifi examples in wireless folder( like wifi-tcp.cc.27. and wifi -spectrum-saturation-examples) and one more problem i face is i have installed ubuntu in virtual box and only system file exists, but on download ns-3 and compilation it shows there is less space, even if i want to clear some memory and make space.. i am unble to do since all are system files, and sir is compilation of examples or building process failing due to lack of memory?
Niyati Shah (1 year ago)
src/core/model/object-ptr-container.cc.1.o: file not recognized: Bad value collect2: error: ld returned 1 exit status Waf: Leaving directory `/home/ns3/Desktop/ns-allinone-3.20/ns-3.20/build' Build failed how shall i resolve this?
Juan Camilo Baquero Bustos (1 year ago)
Hi, i need to install PyBindGen version 0.17.2.post57+nga6376f32f2 because when i do sudo ./waf configure it doesn't enable Python bindings and PyViz visualizer. Can you help me?
inzimam ul hassan (2 years ago)
When i run that command bigger one it shows me an error like ..libgslOldbl has no installation candidate and unable to locate package dai....can you plz help me in this
Jhilmit Asri (1 year ago)
sudo apt-get install libgsl23 libgslcblas0:i386 libgsl23:i386 libgslcblas0 Run this command. the four packages replaces the one libgslOldbl.
Manju Gangwar (2 years ago)
thanku sir ...this vdo helped me a lot...at the end i had a problem .which is compiling was stop after compiling 2013 files out of 2308....please hepl me out.
abhishek khare (2 years ago)
I am getting an error E: Package 'libgsl0ldbl:i386' has no installation candidate kindly help me .
arslan rasheed (1 year ago)
Try this one sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl2 flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml
RENUKA PATIL (2 years ago)
Video is very helpful..Thank you very much... I got an error and it says as; [ 897/2571] cxx: scratch/temp.cc -> build/scratch/temp.cc.4.o ../scratch/temp.cc: In function ‘int main()’: ../scratch/temp.cc:10:2: error: ‘cout’ was not declared in this scope cout << " Hello World " << endl; ^ ../scratch/temp.cc:10:29: error: ‘endl’ was not declared in this scope cout << " Hello World " << endl;
vaibhav garg (2 years ago)
is command similar for Fedora?
bhanu prakash (2 years ago)
I am not able to install "libgsl0-dev libgsl0ldbl" libs.with out this i am able to install all the remaining libs please help me out
Krishnapriya S (2 years ago)
I installed all the libraries in ubunut16.04lts version. While trying to build it. i am having error like this. File "/home/krishnapriya/Desktop/ns-allinone-3.21/ns-3.21/bindings/python/wscript", line 283, in configure gccxml_version = m.group(1) AttributeError: 'NoneType' object has no attribute 'group' Traceback (most recent call last): File "./build.py", line 170, in <module> sys.exit(main(sys.argv)) File "./build.py", line 161, in main build_ns3(config, build_examples, build_tests, args, build_options) File "./build.py", line 80, in build_ns3 run_command(cmd) # waf configure ... File "/home/krishnapriya/Desktop/ns-allinone-3.21/util.py", line 24, in run_command raise CommandError("Command %r exited with code %i" % (argv, retval)) util.CommandError: Command ['/usr/bin/python', 'waf', 'configure', '--enable-examples', '--enable-tests', '--with-pybindgen', u'../pybindgen-0.17.0.876'] exited with code 2
bharti holi (1 year ago)
thanks alot Nezgi..this fixed!
nezgi (1 year ago)
Probably gccxml program is different than what is written in the script. Open the script that has the problem (wscript). Replace line 281 to < gccxml_version_line = os.popen(gccxml + ".real --version").readline().strip()> and run the command again. Hopefully it works
Zaina Hamid (2 years ago)
Hey I'm trying to work with openflow and NS3 and make some modifications to get basic simulation results, would you have some input?
Ahmed Ali (2 years ago)
sorry I am a beginner and I already started with ubuntu server, so my question is how to download the .tar file into ubuntu server
unknown ! (1 year ago)
You can convert online your any file into tar file.
Mohammad Umar Sattar (2 years ago)
Getting This Error.. Any Guide About This... Thanks in Early... E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
taimur ali khan (2 years ago)
sudo -i
Ahmedou Jreivine (3 years ago)
Hi I have installed VMWare and created a VM based on ubuntu. But haw to move to ubuntu screen as Hitesh said at 2.22 minutes? Anybody can help me please?
Avishka Kodippilli (3 years ago)
hi i get this error when I'm trying run C++ script "cognitive-module.h:no such file or directory"???
yamtar (3 years ago)
good job bro thanks for the help.
Gone Neelakantam (3 years ago)
Hi Brother, I am glad that I am following your Tutorial. Please can you make a tutorial for running the modules.....
Manali Roy (3 years ago)
I followed as per your guidelines on ubuntu16.04 lts ,but regarding the long command in the description box it shows, after a few steps: E: Package 'libgsl0ldbl' has no installation candidate." Is this an error? Please help
Vimal Sheoran (1 year ago)
Ok here's the problem your package installer is dead in the water you could do the following AT YOUR OWN RISK as this might frag the whole damn system sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock
Himanshu joshi (1 year ago)
You just encountered one of the OS concept. May be restart ur system.
Saad Haseeb (1 year ago)
Hi, Did your above mentioned issue was resolved ? kindly i need help in installing this. Plz contact me. E-mail: saadhaseeb123@gmail.com
Pauwels Gnanih (1 year ago)
It also work for me. Merci
laugh or dead (1 year ago)
its working thanks...
Daniel Anadu (3 years ago)
I couldn't get through the sudo apt-get update. It says unable to lock administration directory
Alistair Borthwick (3 years ago)
Hi Hitesh, I really like the fact that you are delivering free content. Good man. But I must tell you that you have a problem with this site http://newdemy.com/courses/ns3-tutorials It is not possible to unlock the NS3 videos, I have signed up, logged in and pressed the unlock button but it just returns to the previous page on a loop. Also, your list of packages to install, libgsl0ldbl is not in MAIN, it has been updated to libgsl2. Thank you and much respect.
KHRISTIXNOP (3 years ago)
Hello, please i need your help, in the video in the minute 7:15 you have enabled PyViz Visualixer and Pyhton bindigs, but i dont have enabled these features, can you help me to enabled that?
Fella FH (3 years ago)
I follow all the steps but this error figure out when i istalled NS3(3.15) : "ns3 Network failed (exit statut 1)". i don't know how to fix it. any suggestions please !
Benkerdagh Saliha (3 years ago)
you're welcome :)
Fella FH (3 years ago)
+Benkerdagh Saliha it works, thank you
Benkerdagh Saliha (3 years ago)
+Fella FH Hi Fella, you can try with a new version, it may work. 3.24 works fine.