Installing NS2 in Ubuntu 22.04 | Complete Instructions
HTML-код
- Опубликовано: 17 сен 2024
- Join this channel to get access to perks:
/ @tspradeepkumar
#Ubuntu2204 #NS2 #Pradeepkumar
NS-2.35 installation in Ubuntu 22.04
Commands to be used:
$ cat /etc/lsb-release
$ sudo apt update
$ sudo apt install build-essential autoconf automake libxmu-dev
Requirements of ns2
gcc-4.8
g++-4.8
Were avaialble only upto 18.04 which the codename is bionic
$ sudo gedit /etc/apt/sources.list
make an entry in the above file
deb in.archive.ubun... bionic main universe
$ sudo apt update
For any GPG error, include the following command
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
$ sudo apt update
$ sudo apt install gcc-4.8 g++-4.8
Make the changes in the follwing files
@CC@ to be replaced with gcc-4.8
@CPP@ to be replaced with g++-4.8
ns-allinone-2.35/Makefile.in
/home/pradeepkumar/ns-allinone-2.35/otcl-1.14/Makefile.in
nam-1.15/Makefile.in
xgraph-12.2/Makefile.in
In all the above places, change @CC@ to gcc-4.8
and @CPP@ @CXX@ to g++-4.8
Open the file
ns-2.35/linkstate/ls.h
in line number 137, change the line erase to this-erase
Once the installation is over, Set the PATH and LD_LIBRARY_PATH infomration in the file located at
/home/pradeepkumar/.basic
export PATH=$PATH:/home/pradeepkumar/ns-allinone-2.35/bin:/home/pradeepkumar/ns-allinone-2.35/tcl8.5.10/unix:/home/pradeepkumar/ns-allinone-2.35/tk8.5.10/unix
export LD_LIBRARY_PATH=/home/pradeepkumar/ns-allinone-2.35/otcl-1.14:/home/pradeepkumar/ns-allinone-2.35/lib
$ns
$nam
It works well.
My other Channel - / tspradeepkumar1
My Tech Blog - www.nsnam.com/
My Personal webiste - www.pradeepkum...
______________________________
Follow me on,
Instagram - / tspradeepkumar
Facebook - / tspradeep
Twitter - / tspradeepkumar
________________________________
really helpful sir , felt so overwelmed when i saw the swift movement of packets in network animator. ❣❣❣❣❣Thank you for bringing happiness in our life.
I have compiled lots of software from source in Ubuntu, each with their own issues and mising dependencies. I was totally not prepared for the ancient code of NS2, however.
We need it for university reasons, and no source I came across in the 4 hours before finding this video could help me. Who knew that I had to enable Bionic in the sources, download version 4.8 of gcc and g++, change half of the makefiles and fix a bug in the ls.h header file?
After 4 painstaking hours, it finally compiled. Thank you so much. Have a good day.
Thank you and keep watching my videos...
Bro pls help me
thank you sir, I have successfully and quite easily installed nam and ns by following your tutorial
One of the most challenging installation i have witnessed ever in my life🤕
Thank You, sir😄. NS2 was successfully installed in Ubuntu 22.04.1 👏
Great 👍
really helpful even now thank you very much
Thank you very much, sir. NS2 was installed successfully in ubuntu 22.04
You are welcome and keep watching the videos
Please guide me how to install in 22.04 because I have face many problems
@@pratimaupadhyay5197 If you try the instructions given in this video, ns2 surely works....
cant install g++-4.8... i m stucked at this step
@@bhaveshsaini1417 g++-4.8 is available only on the 18.04 aptitude manager, so that has to be included into the 22.04 OS and after adding, you need to do sudo apt update . All instructions are there in the video.
Thank you so much. You saved my day❤❤ Keep it up
really great video sir
Thank you sir NS2 was successfully installed on my Ubuntu 22.04 machine.
Can you please suggest NS2 tutorials for learning and practicing it.
Check my playlist on ns2, you could get many exercises,
@@tspradeepkumar yes sir checking, thank you
Hello, sir. Thank you for such an amazing tutorial.
Do you upload these machines (with these tools installed) on the cloud, so that we can get the VM directly? I'm getting a lot of errors while installing NS2 on 20.04 and 22.04. It is giving me a very tough time.
Yes, soon
jhut matt bol
Thank you sir.
Most welcome
Nam console is not working. Entering nam command shows nam: it is not displaying nam console. what to do?
See my channel on other video on how to enable nam.. because nam package is outdate and which does not support the recent day OS... www.nsnam.com/2015/07/nam-installation-segmentation-fault.html
the saviour
in 3:35 how to save the file?
What file to be saved?
Ctrl + x and then press y and enter to save the file
Below the nano window, there are shortcuts given... Hence as Harshit said, CTL+X and press y and enter.
thank you sir
Most welcome
Sir my program is running succesfully but my GUI of NAM is not opening
what to do ?
same problem
NAM console is not opening in end
lot better explanation
Installation of g++ 4.8 and gcc-4.8 does not work in arm64 architecture. How to install NS2 in arm64 architecture (especially in new MAC M1/M2 architecture?
Its very tedious to use.. I have not tried... I use Intel Mac only
Nam screen is showing just blak screen
How to fix this
After typing ns command it is showing %
And after typing nam it is showing nam:
same here
yes me as well, idk how to fix it, already try multiple solution based on your video reference. How to fix it sir?
What error ? No metnioning of the error. if you get a % while running news command, it installed successfully and if a animation window pop out, nam also installed successfully
sorry, actually after i issuing the nam command the terminal show nam: but then the nam windows dont pop up. hpw to fix it?@@tspradeepkumar
Sir when i type ns it gives % symbol, but when i type nam , nam console doesn't show up instead nam: gets printed in the terminal
Bro have you solve this problem ?...I m also facing same issue
@@suyashmaurya7404 ya so the thing is whenever you run a ns file the nam file wont be run automatically, so you should run nam file seperately thats all .
@@suyashmaurya7404 i am facing the same problem did u solve it ?
@@captainblaze8909 how ? Help please
@@captainblaze8909and how do we do that?
16:25 nam console not showing in my case . any solution ?
Did you change the modification in the Makefile.in within the nam-1.0x folder. if not try as per the description given in the video documentation.
3:35 how to save
unable to install gcc and g++
I an getting an error
Dear Sir "nam" is not working or opening when I run the tcl file .. plz tell me solve this issue
Excuse me sir, I want to ask why if i create "ns wireless", couldn't read file "wireless": no such file or directory sir. Please help me sir
its wireless.tcl
Sir sudo apt install build-essential autoconf automake libxmu-dev command run on my terminal and it's showing some error like unable to locate package build-essential, autoconf,automake, libxmu-dev
Sir How to solve this please guide me
First you try with
sudo apt update
and then you can try
sudo apt install build-essential autoconf automake libxmu-dev
Dont use commas, use blank spaces.
😢 My university still teach this relics, and i using mac m1
worked !
when i exucite nam it gives me nam: i follow all the instruction that you did with the same version of ns2 and the version of ubuntu can you gave me a solution
can you try this command
sudo apt remove nam
or
sudo apt autoremove nam
and then try... It should work.
Hello Sir. While running the command to fix the GPG error I'm getting
"gpg: keyserver failed: no data" error. How can I fix this?
04:03, i have handled the error. dont use the PUBLICKEY from the video, instead, you might have got the key, use that and try....
sir after executing that "keyserver" command, I am getting error "gpg: keyserver receive failed: Network is unreachable"
But I am also connected to internet 😞
please help me.
Is it resolved?
To doing all procedures , when i command nam , it doesn't sho nam window , it writes nam:
@user-mb7it6rj5e I couldn't find a fix, but you can open nam from bin folder and there open the nam file by selecting directory.( a nam file will be created when you run ns command)
Finally done🥵
why does nam only sends nam: with no window popping up?
sir it says permission denied when i runs the install file with the command called "./install " please help!
Never do any application with a sudo command and use the home folder to store, install the applications... if you use folder like /opt, then it asks for permission to install...
At 4:24 I have got the exact same key as yours. And after executing that "keyserver" command, I am getting error "gpg: keyserver receive failed: Network is unreachable"
But I am also connected to internet 😞
Thanks! ns works fine, nam works as well. But xgraph doesn't. "Command 'xgraph' not found" How do I fix this?
Check my channel for other video on Xgraph installation.
@@tspradeepkumar I did but I can't find one for ubuntu 22.04
in my case cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.10
DISTRIB_CODENAME=mantic
DISTRIB_DESCRIPTION="Ubuntu 23.10"
what can i do
How do u save ?
CTrl+X
How?
@@vivekkoul3278use gedit in place of nano
Yes how
i have done everything as it is said but at the last my ns is working but nam is not working and its says to install but the password is creating problem.
I have another video of nam and xgraph installation, please check.
All my steps are followed but iam not getting nam window. what mat be the reason?
Did you modified the Makefile.in as per the format given in the video
@CC@ to be modified as gcc-4.8
if gcc-4.8 is not there, nam wont work,
Hi Sir, please make a video on DSR simulation in NS2.
Will try
Sir please share me your email address, i have research on DSR but i have some issues
please make a video in download tracegraph
it says "unable to open wireless.nam" after "running nam wireless s_mitf.nam" !!
How to save file sir which command used for save file
Sir please guide me
@@pratimaupadhyay5197 Press ctrl + "x", it will ask to choose "Y" or "N". Press "Y". Press "Enter" to exit the editor.
at the bottom side of the window, there are shortcut keys, you can use CTL + X and type "Yes" to save.... "No" to discard the changes...
nam is not working its showing that nam is not installed 🙄
Restart your pc then it will run
Is it working with Apple M1 processor?
There is a separate procedure for M1 processor
How do you save at 3:34
Ctl+X and type "Yes' to save
thanks for your videos...my ns3.35 was working fine but since i updated to 22.04..its giving me pybindgen error while running ./test.py..can ypu please help...thanks a ton again.
Let me check
@@tspradeepkumar thanks a lot ..respect your dedication.
I am on ubuntu 22.04, and during the installation process I am unable to install g++ 4.8,
E: Unable to locate package g++-4.8
E: Couldn't find any package by glob 'g++-4.8'
E: Couldn't find any package by regex 'g++-4.8'
This is the error i am getting
Edit: Thanks in advance!!
Hi sir I followed all the steps but the nam it not run and it show in terminal (nam:)? what can i do
Since NAM is old software and is not compatible with the recent ubuntu, try the following video to install.
ruclips.net/video/G2pIxQOTdos/видео.html
@@tspradeepkumar thank you sir , you mean i must install ubuntu 18.4 for run nam and ns2 right
sir, show in terminal
whereis nam
nam: /usr/bin/nam /home/ebrahim/ns-allinone-2.35/bin/nam /usr/share/man/man1/nam.1.gz
what can i do?
Sir upto 16:31 everything done perfectly..but after all that when i gave the command 'ns' ..it's like ("command not found but can be installed with apt install ns2)
And also 'nam' gave the same message
How can I rectify this issue
How did you do?
This steps can work with 16.04 sir
Yes it will work
Provide the link for ns2 zip file
How to use the xgraph
Can we install it in Ubuntu 22.04.3?
Yes
How can we open xgraph pls tell?
I am in last step ..not finiding /home/pradeepkumar/.bashrc..can anyone help?
You need to find the .bashrc in your home folder
I face some problem kindly explain with detail....
Hi sir ,may i have your contact , i need some course help or some technical info f you can spare some time .
my email is pradeepkumarts and affix gmail at the end.
@@tspradeepkumar hi sir but commande nam wireless-mitf.nam gave me error :Cannot connect to existing nam instance. Starting a new one...
nam: Unable to open the file "wireless-mitf.nam.nam"
can you please give me solution
how can i get your contact pls j
email me at pradeepkumarts with google email
After sudo apt update
I write " $ sudo apt install build...........libxmu-dev"
But error:- unable to locate package build-essential
What to do sir ?
Is this the same process for Ubuntu 20 also
Yea6
Thnsk
when I write "nam" what will appear is "nam:"
what I have to do sir ? :(
Check my other video for solving the nam issues
ruclips.net/video/G2pIxQOTdos/видео.html