How to add Multiple protocol patches for ns2 2.35 in same directory ?
I want more protocols than the default protocols provided in ns2.Already patch ns2 2.35 with olsr protocol now i want to patch ns2 with ZRP,CBRP protocols
How to add new protocols to the existing ones ? Do i have to patch the ns2 individually for every patch? |
Why do you want all the extra protocols in the same ns-2.35/ ?
You can have as many ns-allinone-2.xx as you want, installed at the same time. But : Do not add any *PATH text to .bashrc : Not required. Some extra protocols will conflict. OLSR + ZRP + CBRP might be possible. P.S. : You can find the current patches with multiple extra protocols here https://drive.google.com/drive/folde...00?usp=sharing And https://drive.google.com/file/d/12OS...ew?usp=sharing → /usr/local/bin/{ 92 executable 'ns*' } - |
Why do you want all the extra protocols in the same ns-2.35/ ?
I want to compare their performance for a certain scenario You can have as many ns-allinone-2.xx as you want, installed at the same time. Does that mean i can install two ns2 2.35 in different directories with different patches ? if it so , then how i give the terminal command to execute the tcl files? just typing ns filename.tcl would be enough? |
Re #3
As you can see from https://drive.google.com/file/d/12OS...ew?usp=sharing ... I currently have ~90 different ns-allinone-2.xx in use, mostly 64bit. ( When ns2 was used most a few years ago I had ~200 32bits installs.) ( Space used for every "cleaned ns-allinone-2" is about 10MB.) https://drive.google.com/file/d/1g33...ew?usp=sharing So you can easily have a few. ... Example Code:
/home/name/ns2/cbrp/ns-allinone-2.35/ ... I can create a patch with the extra protocols, if no conflicts. Example: "zrp+cbrp_for-OLSR-patched_ns235.patch". - |
Space used for every "cleaned ns-allinone-2" is about 10MB. that's a good idea :)
ns2 is a 32 bit software right ? then how can you use 64 bit installs? when i try to patch ns2 2.35 (after clean install of ns2 2.35 ubuntu mate 16.04 64 bits)for cbrp protocol i use the CBRP+LTE_ns235.patch and followed these commands cd /home/arone/programs/ns-allinone-2.35 i already copy patch to ns-allinone-2.35 patch -p0 < CBRP+LTE_ns235.patch then sudo ./install but it gives the errors like this in terminal. what should i do ?? what's the mistake i made ? Code:
In file included from cbrp/cbrpagent.h:27:0, |
Re #5. Please put the error output in code Tags :
[code]code text[/code] → The 'Edit' button in post #5. ns2 : Most protocols can run with a 64bits OS. A few of the older protocols can only use a 32bits OS. Not all simulations can run with a 64bits OS: A 32bits executable ns* is required. But usually no problem, as the 32bits application packages can be installed to the 64bits OS https://drive.google.com/drive/folde...FE?usp=sharing About the CBRP errors : The old cbrp code must be compiled with g++34. Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz Is the OS 32 or 64bits ? Note : It's './install', not 'sudo ./install' → sudo will change the permissions! - |
Links to gcc34, g++34 (gcc-3.4.6) : is the links are missing ??
when i install the old gcc does it cause conflicts with other software ? |
Re #7.
You will get link information when you tell if your Ubuntu 16.04 is 32 or 64bits (i386 or amd64). This command will reply with i686 or x86_64 : $ uname -m You can have as many gcc versions as you want installed at the same time. Default Ubuntu 16.04 gcc / g++ : g++ (=g++-5.4.0), g++-4.7, g++-4.8, g++-4.9 - |
i already mention its 64 bit , when i edited post #5 i also included it
i use ubuntu 16.04 64 bit version cp ns ns235-cbrp-lte sudo cp ns235-cbrp-lte /usr/local/bin/ above two steps are necessary ? // Stops with errors. Edit the Makefile to g++ make after make command do i have to type ./install again ?? or cbrp already installed ??? |
Re #9. See #6.
The text says ./install $ cd ns-2.35/ .... edit Makefile $ make .... edit Makefile $ make Quote:
That's what you do with $ sudo cp ns235-cbrp-lte /usr/local/bin/ "./install" is the build command. Meant to take care of all ./configure and 'make'. - |
Thank you for your help,can i get get some cbrp specific examples?
|
Links, gcc34 and g++34
compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb ( Ubuntu 12* ... 17* - 64 ) https://drive.google.com/file/d/0B7S...ew?usp=sharing compat-gcc-34-c++_3.4.6-20_amd64.deb ( All 64bit Ubuntu versions ) https://drive.google.com/file/d/0B7S...ew?usp=sharing Download, and install : Code:
cd Downloads/ cbrp-examples-2.tar.gz https://drive.google.com/file/d/1Bs7...ew?usp=sharing - |
Code:
ns: finish: couldn't execute "nam": no such file or directory |
Re #13.
Install a NAM package for your OS https://www.linuxquestions.org/quest...-4175524760/#2 . https://drive.google.com/file/d/0B7S...ew?usp=sharing Download, and install ... sudo gdebi Downloads/nam_1.15-10-ubuntu14_amd64.deb - |
Thank you for your help :)
|
All times are GMT -5. The time now is 12:55 PM. |