SlideShare a Scribd company logo
1 of 24
Installing NS 2.29 on Ubuntu 10.10 
Thejdeep G | 12CO99 
Siddartha L K | 12CO91
Download Instructions 
● For downloading Ubuntu 10.10 Maverick 
Meerkat 
http://old-releases.ubuntu.com/releases/maverick/ 
Select and download appropriate .iso or .torrent – either 
32bit or 64bit 
● For downloading NS 2.29 
http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-Select ns-allinone-2.29.3.tar.gz
First Run 
● Extract the downloaded ns-allinone by - 
tar -zxvf ns-allinone-2.29.3.tar.gz 
z ->unzip , x-> extract , v-> print verbosely, f->filename 
● 'cd' into extracted folder 
● ./install
Some Fatal Errors 
● Ns-allinone- 
2.29/tk8.4.11/unix/../generic/tk.h:96 : fatal error: 
X11/Xlib.h: No such file or directory compilation 
terminated. Make failed. 
Conclusion : Xlib.h is not present 
So, which package contains the file Xlib.h ?
Tool for Installation Issues : apt-file 
● Apt-file is a command in the Advanced Packaging 
Tool that allows you to find which package includes 
a specific file 
● Installation – sudo apt-get install apt-file 
● Once installed, run apt-file update for its database 
to get populated. This command attempts to fetch 
contents<arch>.gz from the remote sources 
specified in /etc/apt/sources.list
The search for Xlib.h 
● Running apt-file search Xlib.h gives me
Installation of libx11-dev 
● Running 'ssuuddoo aapptt--ggeett iinnssttaallll lliibbxx1111--ddeevv'' gives a 
'PPaacckkaaggee NNoott ffoouunndd'' error 
● How about a 'ssuuddoo aapptt--ggeett uuppddaattee'' ?? 
● Running 'ssuuddoo aapptt--ggeett uuppddaattee' in the terminal 
throws many 404's (Not found).
Fixing Package Fetching 
● After support for old ubuntu releases is 
dropped, repositories are removed from main 
servers 
● To get back the repository train, edit your 
//eettcc//aapptt//ssoouurrcceess..lliisstt and replace all instances of 
aarrcchhiivvee..uubbuunnttuu..ccoomm and sseeccuurriittyy..uubbuunnttuu..ccoomm 
with oolldd--rreelleeaasseess..uubbuunnttuu..ccoomm
Fixing Package Fetching 
● The new //eettcc//aapptt//ssoouurrcceess..lliisstt file
Next Steps 
● Now, executing 'ssuuddoo aapptt--ggeett uuppddaattee'' updates all the packages 
● Next, 'ssuuddoo aapptt--ggeett iinnssttaallll lliibbxx1111--ddeevv' to install the Xlib.h 
dependency issue
Second Run 
● Running ..//iinnssttaallll for the second time 
● Error : can't find X includes 
otcl-1.11 configuration failed! Exiting … 
● X libraries are not able to find utility functions 
● Run 'ssuuddoo aapptt--ggeett iinnssttaallll lliibbxxmmuu--ddeevv''
Third Run 
● Running ./install for the third time 
● Error: otcl.o: In function 
`OTclDispatch':/home/thejdeep/Desktop/ns-allinone- 
2.29/otcl-1.11/otcl.c:495: undefined 
reference to `__stack_chk_fail_local' 
● This error is because the linker being used is 
"ld -shared" instead of "gcc -shared". If you edit 
one line in otcl-1.13/configure, and rerun install.
Third Run
Fourth Run 
● Running ./install for the fourth time 
● Error : Tcl.cc: In member function ‘void Tcl::eval(char*)’: 
Tcl.cc:182: warning: deprecated conversion from string 
constant to ‘char*’. Tcl make failed 
● Solution : Go to file tcl.cc and at line no. 564, replace with the 
following 
- char *p =strchr(localName, '('); 
+ char *p =const_cast<char*>( strchr(localName, '('));
Fifth Run 
● Run ./install in the terminal 
● Error : 
./common/packet.h:254:warning:deprecated 
conversion from string constant to 'char*' 
● Solution: Add this flag '-Wno-write-strings' to 
the CCOPT line in the Makefile of ns-2.29 
folder
Sixth Run 
● Run ./install in the terminal 
● Error : queue/red.cc: In member function ‘virtual void 
REDQueue::trace(TracedVar*)’: 
queue/red.cc:874: error: invalid conversion from ‘const 
char*’ to ‘char*’ 
● Solution : In queue/red.cc at 874 line, do the following 
changes 
Replace (p = strstr(v->name(), "ave")) with ((p = 
const_cast<char*>(strstr(v->name(), "ave")))
Seventh Run 
● Run ./install again 
● Similar error as previous with queue/rio.cc 
● Solution: Do the following changes at 
queue/rio.cc and line no. 565 
-if (((p = strstr(v->name(), "ave")) == NULL) && 
+if (((p = const_cast<char*>(strstr(v->name(), 
"ave"))) == NULL)
Eighth Run 
● Run ./install again 
● Similar errors encountered for the following files : 
queue/pi.cc 
queue/vq.cc 
queue/rem.cc 
queue/gk.cc 
● Solutions for these are available at 
http://ramakrishnamundugar.blogspot.in/p/network-simulator-v2.html
Finally
Setting Path Variables
Oops. 
● Executing 'ns' in the terminal now works, gives 
the % symbol. But Nam doesn't. 
● Error : [code omitted because of length] 
: no event type or button # or keysym 
while executing 
“bind Listbox { 
%W yview scroll [expr {- (%D / 120) * 4}] units 
}”
Patching Tk 
● Download tk-8.4-lastevent.patch from 
http://www.linuxquestions.org/questions/attachment.php? 
attachmentid=4166&d=1279693038 
● Place the patch file inside the tk folder 
● Run this in terminal - patch -p0 < tk-8.4- 
lastevent.patch 
● 'cd' back to root dir of ns-allinone 
● ./install again for the last time 
● Ns and Nam works !
Thank You
Patching Tk 
● Download tk-8.4-lastevent.patch from 
http://www.linuxquestions.org/questions/attachment.php? 
attachmentid=4166&d=1279693038 
● Place the patch file inside the tk folder 
● Run this in terminal - patch -p0 < tk-8.4- 
lastevent.patch 
● 'cd' back to root dir of ns-allinone 
● ./install again for the last time 
● Ns and Nam works !

More Related Content

What's hot

How To Manage Services on RHEL 7 or CentOS 7
How To Manage Services on RHEL 7 or CentOS 7How To Manage Services on RHEL 7 or CentOS 7
How To Manage Services on RHEL 7 or CentOS 7VCP Muthukrishna
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7VCP Muthukrishna
 
Session 9 4 alp to display the current system time using dos int 21 h
Session 9  4 alp to display the current system time using dos int 21 hSession 9  4 alp to display the current system time using dos int 21 h
Session 9 4 alp to display the current system time using dos int 21 hDr. Loganathan R
 
Growing Pains: Avoiding Module Hell
Growing Pains: Avoiding Module HellGrowing Pains: Avoiding Module Hell
Growing Pains: Avoiding Module HellPuppet
 
Os Practical Assignment 1
Os Practical Assignment 1Os Practical Assignment 1
Os Practical Assignment 1Emmanuel Garcia
 
Nginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failedNginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failedVCP Muthukrishna
 
A3 sec -_msr_2.0
A3 sec -_msr_2.0A3 sec -_msr_2.0
A3 sec -_msr_2.0a3sec
 
Gearinfive
GearinfiveGearinfive
Gearinfivebpmedley
 
Processes And Job Control
Processes And Job ControlProcesses And Job Control
Processes And Job Controlahmad bassiouny
 
Atmosphere 2014: Lockless programming - Tomasz Barański
Atmosphere 2014: Lockless programming - Tomasz BarańskiAtmosphere 2014: Lockless programming - Tomasz Barański
Atmosphere 2014: Lockless programming - Tomasz BarańskiPROIDEA
 

What's hot (10)

How To Manage Services on RHEL 7 or CentOS 7
How To Manage Services on RHEL 7 or CentOS 7How To Manage Services on RHEL 7 or CentOS 7
How To Manage Services on RHEL 7 or CentOS 7
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7
 
Session 9 4 alp to display the current system time using dos int 21 h
Session 9  4 alp to display the current system time using dos int 21 hSession 9  4 alp to display the current system time using dos int 21 h
Session 9 4 alp to display the current system time using dos int 21 h
 
Growing Pains: Avoiding Module Hell
Growing Pains: Avoiding Module HellGrowing Pains: Avoiding Module Hell
Growing Pains: Avoiding Module Hell
 
Os Practical Assignment 1
Os Practical Assignment 1Os Practical Assignment 1
Os Practical Assignment 1
 
Nginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failedNginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failed
 
A3 sec -_msr_2.0
A3 sec -_msr_2.0A3 sec -_msr_2.0
A3 sec -_msr_2.0
 
Gearinfive
GearinfiveGearinfive
Gearinfive
 
Processes And Job Control
Processes And Job ControlProcesses And Job Control
Processes And Job Control
 
Atmosphere 2014: Lockless programming - Tomasz Barański
Atmosphere 2014: Lockless programming - Tomasz BarańskiAtmosphere 2014: Lockless programming - Tomasz Barański
Atmosphere 2014: Lockless programming - Tomasz Barański
 

Similar to Installing NS2.29 on Ubuntu 10.10

Using cgroups in docker container
Using cgroups in docker containerUsing cgroups in docker container
Using cgroups in docker containerVinay Jindal
 
Add and configure lu ns in solaris
Add and configure lu ns in solarisAdd and configure lu ns in solaris
Add and configure lu ns in solarisAmrita Dey
 
Steps to build and run oai
Steps to build and run oaiSteps to build and run oai
Steps to build and run oaissuser38b887
 
Ansible for Beginners
Ansible for BeginnersAnsible for Beginners
Ansible for BeginnersArie Bregman
 
TechDay - April - Customizing VM Images
TechDay - April - Customizing VM ImagesTechDay - April - Customizing VM Images
TechDay - April - Customizing VM ImagesOpenNebula Project
 
Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!All Things Open
 
Direction of building ns2 using cygwin under windows system
Direction of building ns2 using cygwin under windows systemDirection of building ns2 using cygwin under windows system
Direction of building ns2 using cygwin under windows systemyahyaoui hamdi
 
Docker 原理與實作
Docker 原理與實作Docker 原理與實作
Docker 原理與實作kao kuo-tung
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawnGábor Nyers
 
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebulaOpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebulaOpenNebula Project
 
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsNFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsCumulus Networks
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopLorin Hochstein
 
SiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingSiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingMarian Marinov
 
Migrating KSM page causes the VM lock up as the KSM page merging list is too ...
Migrating KSM page causes the VM lock up as the KSM page merging list is too ...Migrating KSM page causes the VM lock up as the KSM page merging list is too ...
Migrating KSM page causes the VM lock up as the KSM page merging list is too ...Gavin Guo
 
Control your service resources with systemd
 Control your service resources with systemd  Control your service resources with systemd
Control your service resources with systemd Marian Marinov
 
Immutable infrastructure with Docker and containers (GlueCon 2015)
Immutable infrastructure with Docker and containers (GlueCon 2015)Immutable infrastructure with Docker and containers (GlueCon 2015)
Immutable infrastructure with Docker and containers (GlueCon 2015)Jérôme Petazzoni
 
Linuxcon Barcelon 2012: LXC Best Practices
Linuxcon Barcelon 2012: LXC Best PracticesLinuxcon Barcelon 2012: LXC Best Practices
Linuxcon Barcelon 2012: LXC Best Practiceschristophm
 

Similar to Installing NS2.29 on Ubuntu 10.10 (20)

Using cgroups in docker container
Using cgroups in docker containerUsing cgroups in docker container
Using cgroups in docker container
 
Add and configure lu ns in solaris
Add and configure lu ns in solarisAdd and configure lu ns in solaris
Add and configure lu ns in solaris
 
Steps to build and run oai
Steps to build and run oaiSteps to build and run oai
Steps to build and run oai
 
Ansible for Beginners
Ansible for BeginnersAnsible for Beginners
Ansible for Beginners
 
TechDay - April - Customizing VM Images
TechDay - April - Customizing VM ImagesTechDay - April - Customizing VM Images
TechDay - April - Customizing VM Images
 
Kdump
KdumpKdump
Kdump
 
Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!
 
Direction of building ns2 using cygwin under windows system
Direction of building ns2 using cygwin under windows systemDirection of building ns2 using cygwin under windows system
Direction of building ns2 using cygwin under windows system
 
Docker 原理與實作
Docker 原理與實作Docker 原理與實作
Docker 原理與實作
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawn
 
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebulaOpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
 
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsNFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center Operations
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
 
Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
 
SiteGround Tech TeamBuilding
SiteGround Tech TeamBuildingSiteGround Tech TeamBuilding
SiteGround Tech TeamBuilding
 
Migrating KSM page causes the VM lock up as the KSM page merging list is too ...
Migrating KSM page causes the VM lock up as the KSM page merging list is too ...Migrating KSM page causes the VM lock up as the KSM page merging list is too ...
Migrating KSM page causes the VM lock up as the KSM page merging list is too ...
 
Install PostgreSQL on CentOS
Install PostgreSQL on CentOSInstall PostgreSQL on CentOS
Install PostgreSQL on CentOS
 
Control your service resources with systemd
 Control your service resources with systemd  Control your service resources with systemd
Control your service resources with systemd
 
Immutable infrastructure with Docker and containers (GlueCon 2015)
Immutable infrastructure with Docker and containers (GlueCon 2015)Immutable infrastructure with Docker and containers (GlueCon 2015)
Immutable infrastructure with Docker and containers (GlueCon 2015)
 
Linuxcon Barcelon 2012: LXC Best Practices
Linuxcon Barcelon 2012: LXC Best PracticesLinuxcon Barcelon 2012: LXC Best Practices
Linuxcon Barcelon 2012: LXC Best Practices
 

Recently uploaded

Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 

Recently uploaded (20)

Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 

Installing NS2.29 on Ubuntu 10.10

  • 1. Installing NS 2.29 on Ubuntu 10.10 Thejdeep G | 12CO99 Siddartha L K | 12CO91
  • 2. Download Instructions ● For downloading Ubuntu 10.10 Maverick Meerkat http://old-releases.ubuntu.com/releases/maverick/ Select and download appropriate .iso or .torrent – either 32bit or 64bit ● For downloading NS 2.29 http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-Select ns-allinone-2.29.3.tar.gz
  • 3. First Run ● Extract the downloaded ns-allinone by - tar -zxvf ns-allinone-2.29.3.tar.gz z ->unzip , x-> extract , v-> print verbosely, f->filename ● 'cd' into extracted folder ● ./install
  • 4. Some Fatal Errors ● Ns-allinone- 2.29/tk8.4.11/unix/../generic/tk.h:96 : fatal error: X11/Xlib.h: No such file or directory compilation terminated. Make failed. Conclusion : Xlib.h is not present So, which package contains the file Xlib.h ?
  • 5. Tool for Installation Issues : apt-file ● Apt-file is a command in the Advanced Packaging Tool that allows you to find which package includes a specific file ● Installation – sudo apt-get install apt-file ● Once installed, run apt-file update for its database to get populated. This command attempts to fetch contents<arch>.gz from the remote sources specified in /etc/apt/sources.list
  • 6. The search for Xlib.h ● Running apt-file search Xlib.h gives me
  • 7. Installation of libx11-dev ● Running 'ssuuddoo aapptt--ggeett iinnssttaallll lliibbxx1111--ddeevv'' gives a 'PPaacckkaaggee NNoott ffoouunndd'' error ● How about a 'ssuuddoo aapptt--ggeett uuppddaattee'' ?? ● Running 'ssuuddoo aapptt--ggeett uuppddaattee' in the terminal throws many 404's (Not found).
  • 8. Fixing Package Fetching ● After support for old ubuntu releases is dropped, repositories are removed from main servers ● To get back the repository train, edit your //eettcc//aapptt//ssoouurrcceess..lliisstt and replace all instances of aarrcchhiivvee..uubbuunnttuu..ccoomm and sseeccuurriittyy..uubbuunnttuu..ccoomm with oolldd--rreelleeaasseess..uubbuunnttuu..ccoomm
  • 9. Fixing Package Fetching ● The new //eettcc//aapptt//ssoouurrcceess..lliisstt file
  • 10. Next Steps ● Now, executing 'ssuuddoo aapptt--ggeett uuppddaattee'' updates all the packages ● Next, 'ssuuddoo aapptt--ggeett iinnssttaallll lliibbxx1111--ddeevv' to install the Xlib.h dependency issue
  • 11. Second Run ● Running ..//iinnssttaallll for the second time ● Error : can't find X includes otcl-1.11 configuration failed! Exiting … ● X libraries are not able to find utility functions ● Run 'ssuuddoo aapptt--ggeett iinnssttaallll lliibbxxmmuu--ddeevv''
  • 12. Third Run ● Running ./install for the third time ● Error: otcl.o: In function `OTclDispatch':/home/thejdeep/Desktop/ns-allinone- 2.29/otcl-1.11/otcl.c:495: undefined reference to `__stack_chk_fail_local' ● This error is because the linker being used is "ld -shared" instead of "gcc -shared". If you edit one line in otcl-1.13/configure, and rerun install.
  • 14. Fourth Run ● Running ./install for the fourth time ● Error : Tcl.cc: In member function ‘void Tcl::eval(char*)’: Tcl.cc:182: warning: deprecated conversion from string constant to ‘char*’. Tcl make failed ● Solution : Go to file tcl.cc and at line no. 564, replace with the following - char *p =strchr(localName, '('); + char *p =const_cast<char*>( strchr(localName, '('));
  • 15. Fifth Run ● Run ./install in the terminal ● Error : ./common/packet.h:254:warning:deprecated conversion from string constant to 'char*' ● Solution: Add this flag '-Wno-write-strings' to the CCOPT line in the Makefile of ns-2.29 folder
  • 16. Sixth Run ● Run ./install in the terminal ● Error : queue/red.cc: In member function ‘virtual void REDQueue::trace(TracedVar*)’: queue/red.cc:874: error: invalid conversion from ‘const char*’ to ‘char*’ ● Solution : In queue/red.cc at 874 line, do the following changes Replace (p = strstr(v->name(), "ave")) with ((p = const_cast<char*>(strstr(v->name(), "ave")))
  • 17. Seventh Run ● Run ./install again ● Similar error as previous with queue/rio.cc ● Solution: Do the following changes at queue/rio.cc and line no. 565 -if (((p = strstr(v->name(), "ave")) == NULL) && +if (((p = const_cast<char*>(strstr(v->name(), "ave"))) == NULL)
  • 18. Eighth Run ● Run ./install again ● Similar errors encountered for the following files : queue/pi.cc queue/vq.cc queue/rem.cc queue/gk.cc ● Solutions for these are available at http://ramakrishnamundugar.blogspot.in/p/network-simulator-v2.html
  • 21. Oops. ● Executing 'ns' in the terminal now works, gives the % symbol. But Nam doesn't. ● Error : [code omitted because of length] : no event type or button # or keysym while executing “bind Listbox { %W yview scroll [expr {- (%D / 120) * 4}] units }”
  • 22. Patching Tk ● Download tk-8.4-lastevent.patch from http://www.linuxquestions.org/questions/attachment.php? attachmentid=4166&d=1279693038 ● Place the patch file inside the tk folder ● Run this in terminal - patch -p0 < tk-8.4- lastevent.patch ● 'cd' back to root dir of ns-allinone ● ./install again for the last time ● Ns and Nam works !
  • 24. Patching Tk ● Download tk-8.4-lastevent.patch from http://www.linuxquestions.org/questions/attachment.php? attachmentid=4166&d=1279693038 ● Place the patch file inside the tk folder ● Run this in terminal - patch -p0 < tk-8.4- lastevent.patch ● 'cd' back to root dir of ns-allinone ● ./install again for the last time ● Ns and Nam works !