The steps to be followed are:. Download the AntHocNet patch for NS-2.34 from the following link. Modify the makefile because the entries for anthocnet were missing in the patch. Compile the patch using:./configure. make clean.
WordPress Shortcode. Ns-2.35 Installation. 51,928 views. Its not working! I have installed w32api package in cygwin but when i try to install ns 2.35-rc3 w32api is not detected. 5 years ago Reply. Dec 16, 2014 - implement the protocols ZRP in NS2.33 for VANETname file: ns-allinone-2.33_ZRP.tar.gz.
![Zrp Patch For Ns2.33 Zrp Patch For Ns2.33](/uploads/1/2/5/5/125502078/553481216.jpg)
make. make install. Now, you run example files with routing protocol as ' AntHocNet' The common errors:. trace/cmu-trace.o: In function `AntBasicPacket::access(Packet const.)':cmu-trace.cc:(.text.ZN14AntBasicPacket6accessEPK6PacketAntBasicPacket::access(Packetconst.)+0x7): undefined reference to `AntBasicPacket::offset'collect2: ld returned 1 exit status make:. ns Error 1. The home directory of NS-2.34 is “/home/ns2/ns-allinone-2.34″ 1.
![Zrp Patch For Ns2.33 Zrp Patch For Ns2.33](/uploads/1/2/5/5/125502078/883244081.jpg)
Download the package “ ns-234-leach.tar.gz” into the directory “ /home/ns2/ns-allinone-2.34/ns-2.34″. Download the bash file “ leach-setup.sh” into the directory “ /home/ns2/ns-allinone-2.34/ns-2.34″. If the home directory of your “ NS-2.34″ is other than “ /home/ns2/ns-allinone-2.34″, then you need to find “ ns-allinone-2.34″ and replace with “yourpath/ns-allinone-2.34″ for the file “ leach-setup.sh”. Move to the directory “/home/ns2/ns-allinone-2.34/ns-2.34″ and patch the file “leach-setup.sh” by run this command: [email protected]:$ cd /home/ns2/ns-allinone-2.34/ns-2.34/ [email protected]:/home/ns2/ns-allinone-2.34/ns-2.34$ bash leach-setup.sh If the home directory of your “ ns-2.34″ is other than “ /home/ns2/ns-allinone-2.34″, then you need to find “ /ns-allinone-2.34″ and replace with “yourpath/ns-allinone-2.34″ for the following two files: ” Makefile”: found in the directory “/home/ns2/ns-allinone-2.34/ns-2.34″.
“ Makefile.in”: found in the directory “/home/ns2/ns-allinone-2.34/ns-2.34″. Edit both “ Makefile” & “ Makefile.in” as following: CC = gcc-4.3 CPP = g-4.3 5. TCL compilation error: /home/ramakrishna/ns2/ns-allinone-2.34/tcl8.4.18/library:/usr/lib /home/ramakrishna/ns2/ns-allinone-2.32/lib/tcl8.4 /home/ramakrishna/ns2/ns-allinone-2.34/tcl8.4.18/library:/usr/lib /home/ramakrishna/ns2/ns-allinone-2.34/tcl8.4.18/library:/usr/tcl8.4 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 /usr/local/library /usr/library /usr/tcl8.4.15/library /tcl8.4.15/library /home/ramakrishna/ns2/ns-allinone-2.32/lib/tcl8.4 This probably means that Tcl wasn't installed properly. 1) cd ns-allinone-2.34/tcl8.4.18/ && ln -s lib/ library 2) Reinstall ns-allinone-2.34 OR 1. Go to location root-usr-local-bin by giving following command in terminal cd /usr/local/bin 2. There you would find the ns file. We just need to remove it by giving following command rm ns 3.
Thats it, you are done. Now your ns starts running successfully.