Вы находитесь на странице: 1из 38

2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.

04 (in 4 easy steps)

9   More    Next Blog»

Install With Me !

Google+ Badge How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps) Policies

Privacy Policy

Disclaimer / Terms 
 ? 

In this DIY we will learn how to install Network Simulator (NS)‐2.35 in Ubuntu 13.10 OR Ubuntu
14.04. If you found yourself here then I assume you already know about the NS, so I will skip
the introduction part. And if you don't then you may want to follow this link. 

Dhyan Singh
google.com/+DhyanSingh_a
vailable_her… Step 1: Setting up the Prerequisites 
Shoot down your troubles.
1. First of all, download Network Simulator (NS‐2.35) from here.I assume you have downloaded
Follow
it into your '/home/user_name/Documents' directory. 

2 [Optional]. Now we have to update the Ubuntu with its latest components. Open up a
terminal and run these commands: 

1 sudo apt­get update
2 sudo apt­get dist­upgrade
3 sudo apt­get update

Make sure that your Ubuntu is fully updated ( i.e. there should be no pending updates in your
Ubuntu Software Center and in Software Updater). 

3. Before installing the NS we have to install some essential packages required by the NS. So
run the following commands: 

1 sudo apt­get install build­essential autoconf automake
2 sudo apt­get install tcl8.5­dev tk8.5­dev
3 sudo apt­get install perl xgraph libxt­dev libx11­dev libxmu­dev
4 sudo apt­get install gcc­4.4

Popular Posts

How to Install NS­2
Step 2: Extract and Install NS 
Ubuntu­13.10 / 14.0
steps)
1. Extract the downloaded NS package either using the right click context menu "Extract here"
or using the following commands from a terminal:  How to Install Cloud
Windows (in 3 easy

1 cd /home/user_name/Documents How to Install NS­2
Ubuntu­12.04 (in 4 
2 tar ­xvzf ns­allinone­2.35.tar.gz
How to Integrate M
My Profiles 2. After extracting the "ns‐allinone‐2.35" folder, open up the file "/ns‐allinone‐2.35/ns‐ NS­2.35
2.35/linkstate/ls.h" in an editor. You can do it either from the terminal or from the file
How to Install Hado
explorer (Nautilus). We have to make some changes in the ls.h file else it will show an error (Single­Node Clust
while installing the NS. Once you have opened the file move to the line 137 and replace the Ubuntu­12.04, with
erase (image 1) with this—>erase (image 2) and save the file. 

Older Posts

▼  2014 (11)
http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 1/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

My Papers ►  October 

LevelSync­ A Hierarchical Time ▼  May 
Synchronization Mechanism for How to Integr
Wireless Sensor Networks Mannasim w
NS­2.35
Virtual Clock Rate Based Time
Synchronization for Wireless How to Install
Sensor Networks 2.35 in Ubu
13.10 / 14.0
Total Pageviews How to Install
2.35 in Ubu
12.04 (in 4 
1 5 4 5 2 2
►  April 
►  March 
Image 1. Replace erase.

Image 2. With this­>erase.

NOTE: If you don't make the above stated change then you will see an error while installing
the NS (image 3). 

Image 3. Error (Please Follow the Previous Step).

3. Now its time to finally install the NS. Open up a terminal and move to the directory where
you have extracted the package, in our case its '/home/user_name/Documents' and install NS
using the following commands (image 4): 

1 cd /home/user_name/Documents/ns­allinone­2.35
2 sudo ./install

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 2/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

It will take around 15 minutes so have patience. 

Image 4. Installation in Progress.

Step 3: Set the Environment Variables 

1. Assuming everything went well in the previous step and you have successfully installed your
NS. Now that NS is installed, there are some environment variables that need to be added to
your profile. This can be done by editing the .bashrc file. Open a new terminal and open the
file using: 

1 sudo gedit .bashrc

NOTE: You may want to create a backup of the .bashrc before editing, the easiest way is to
copy the file to a different location. Later you can replace the edited .bashrc with the copied
one in case something goes sideways or if you want to remove the NS. 

2. Add the following lines AT THE END of the file. Be sure to change "/path_to" to the path of
where you have extracted the NS (e.g. '/home/user_name/Documents'). 

# LD_LIBRARY_PATH
OTCL_LIB=/path_to/ns­allinone­2.35/otcl­1.14/
NS2_LIB=/path_to/ns­allinone­2.35/lib/
USR_Local_LIB=/usr/local/lib/
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$USR_Local_LIB 

# TCL_LIBRARY
TCL_LIB=/path_to/ns­allinone­2.35/tcl8.5.10/library/
USR_LIB=/usr/lib/
export TCL_LIBRARY=$TCL_LIBRARY:$TCL_LIB:$USR_LIB 

# PATH
XGRAPH=/path_to/ns­allinone­2.35/xgraph­12.2/:/path_to/ns­allinone­
2.35/bin/:/path_to/ns­allinone­2.35/tcl8.5.10/unix/:/path_to/ns­allinone­
2.35/tk8.5.10/unix/
NS=/path_to/ns­allinone­2.35/ns­2.35/

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 3/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
NAM=/path_to/ns­allinone­2.35/nam­1.15/
export PATH=$PATH:$XGRAPH:$NS:$NAM

Save the file and restart the system, alternatively you can just reload the .bashrc as: 

1 source ~/.bashrc

Step 4: Validate the Installation 

You need to validate NS to check if everything is OK but keep in mind that it will take a lot of
time (about 1:30 hrs). Open up a terminal and move to the directory
‘/home/user_name/Documents/ns‐allinone‐2.35/ns‐2.35/' and run: 

1 ./validate

And That is it ! You can now run ns from a terminal window by executing: ns 
If you received the "%" sign, it means that NS is running (image 5). Congratulations !! 

Image 5. Installation Successful.

* Uninstalling the NS 

If you want to remove the NS from your system then follow these steps: 

1 Delete the directory 'ns­allinone­2.35'.
2 Delete the ns related files from '/user/local/bin'.
Edit the '.bashrc file' and remove the paths that you have added during the
3
installation.
4 Restart the system and run following commands one by one:
5 sudo apt­get autoremove
6 sudo apt­get clean

* Some Common Problems 

1. Many people are getting the following error when they run the ns after the installation: 

Image 6. Error: 'ns' is currently not installed.

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 4/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

If you get this error then kindly ensure that you have set the path (as in step 3) correctly and
try restarting the system. If the error persists then try running the ns from '/ns‐allinone‐
2.35/ns‐2.35/bin/'.

You can start working on NS now, the standard Marc Greis' tutorial on NS can be found here.
Another tutorial is 'NS by example' by Jae Chung and Marc Claypool, and is available here. 

P.S. 

I am not working on ns anymore, if you face any problems then feel free to contact, comment
but it's guaranteed that I would be able to help you. Also go through the comments before
making your query. Thank you! 

Have Fun !! 


— * — * — * — * —

Posted by Dhyan Singh    +9   Recommend this on Google

173 comments:

Senthil Kumar K Friday, October 10, 2014 6:52:00 PM
You  Man!  Superb  and  clear  cut  steps.  It  works  like  charm!  Thank  You  so  much!  keep
writing!
Reply

Parag Naik Friday, October 17, 2014 10:01:00 AM
Thanx bro... you write very well about ns2 installation.. keep writing bro... i get more idea
about installation
Reply

Hien Nguyen Sunday, October 19, 2014 2:28:00 PM
hello,  i  had  a  mistake  when  i  typed  'nam'  on  terminal  like  that:  segmentation  fault  (core
dumped), how can i solve it. Please help me as soon as possible. 
Thanks in advance 
Reply

Replies

Dhyan Singh Sunday, October 19, 2014 4:59:00 PM
Hello...would you please share the screenshot of your problem, and explain what
did you do when u got that error ??

Hien Nguyen Tuesday, October 28, 2014 7:25:00 AM
yeah, i did all above steps, but error 'segmentaion fault (core dumped) 
after some times 'sudo get ­ apt remove ns', 'sudo get ­ apt remove nam', 
it still appear '%' when i write 'ns' :)  
then i type 'sudo get­apt autoremove' 2 times 
luckily, 'nam' is run,  
i dont know what happen. 
sorry that i reply later. 
thanks,

Shehu Muhammad Tuesday, November 17, 2015 9:13:00 PM

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 5/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
Hi, 
I  install  ns­allinone­2.35  successfully  but  when  I  type  nam  and
error(segmentation fail(core dumped)) is displayed. 
what is my problem and how can I solve it plz. 
shehu

Reply

Deepthi Monday, October 20, 2014 5:30:00 PM
Hii.. 

I  followed  the  steps  mentioned  above  to  install  NS2.  But  after  validating,  if  i  give  "ns"
command in my terminal i get the below message, 

"The program ns is currently not installed , you can install it by sudo apt­get install ns2" 

Can you please provide some suggestion on the same 

Thanks...!!!
Reply

Deepthi Monday, October 20, 2014 5:34:00 PM
hii

I would like add couple of screen shots o the same regarding my installation and validation
report.. But i am not sure of how i can add the screen shots here..  
Reply

Deepthi Monday, October 20, 2014 5:55:00 PM
Hii...

The solution to the mentioned error is 
"" 
thats  the  message  you  get  when  your  ns  installation  is  not  complete.  You  can  write  the
following command and run it. 

sudo apt­get install ns2 nam xgraph 
Provide the password. It will download some packaged online and install ns2. 

You surely need internet connectivity for that. Otherwise, your problem cannot be resolved.
"" 

Thank  you  very  much  for  posting  the  steps  in  this  Blog..  I  was  able  to  install  NS2  really
fast.. :)
Reply

Deepthi Wednesday, October 22, 2014 4:07:00 PM

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 6/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
Hiii' 

Any time I try to run the nam executable I get a segmentation fault: 

$> nam 
Segmentation fault (core dumped) 

when i searched for this issue, one website had mentioned  

to copy nam­1.15 directory from /home//Documents/ns­allinone­2.35 to /usr/local/bin  

and restart the terminal. 

i did it , but i m still getting the same error.. 

Do u have any suggestions on the same.. 

Thanks and regards, 
Deepthi
Reply

Replies

Dhyan Singh Wednesday, October 22, 2014 9:24:00 PM
Hii 

You can try this 

1. Update your nam version  
$ sudo apt­get install ­­reinstall nam libotcl1 libtclcl1 

if it still shows error please follow following steps: 

a) Delete the nam­1.15/ folder and any other / folder. 
b) $ sudo apt­get remove nam 

download the following nam and install 
https://drive.google.com/file/d/0B7S255p3kFXNUkx0LVU1NnFVQTA/view 

hope this will help. Goodluck :)

Reply

Deepthi Thursday, October 23, 2014 11:46:00 AM
Hii, 

thanks for the the quick reply.. i have downloaded nam patch from the link u specified and 
i tried to extract it using command 

sudo dpkg ­i  

it has created a nam* file in /usr/local/bin directory. 

when i run the executable nam .i,e, $nam 
it give the below message, 

bash: /usr/local/bin/nam : No such file or directory  

i am not sure of how to install nam patch.. 

should i use the  
"sudo apt­get install nam" command to install the nam pacth. 

can u please suggest on the same.. 
http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 7/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

Thanks and Regards, 
Deepthi
Reply

Replies

Dhyan Singh Friday, October 24, 2014 1:01:00 AM
Hello... 

Its  a  deb  package  it  will  install  on  its  own  you  just  need  to  open  it  by  double
clicking. 

Reply

Deepthi Friday, October 24, 2014 4:56:00 PM
I am getting the folowing message when i tried to install by clicking on the file, 

The Package is of Bad Quality 
The installation of a package which violates the quality standards isn't allowed. This could
cause serious problems on your computer. Please contact the person or organisation who
provided this package file and include the details beneath. 

Details ­> 
Lintian  check  results  for  /home/deepthi/Documents/ns­allinone­2.35/nam_1.15­
10_i386.deb: 
perl:warning:setting locale failed. 
perl:warning:please check that your locale settings: 
Language=(unset), 
LC_ALL=(unset), 
LANG ="en_IN.ISO8859­1" 
are supported and installed on your system. 
perl:warning:Falling back to the standard locale("C"). 
E: nam: wrong­file­owner­uid­or­gid usr/ 1000/1000 
E: nam: wrong­file­owner­uid­or­gid usr/local/ 1000/1000 
E: nam: wrong­file­owner­uid­or­gid usr/local/bin/ 1000/1000 
E: nam: wrong­file­owner­uid­or­gid usr/local/bin/lib 1000/1000 
E: nam: wrong­file­owner­uid­or­gid usr/local/bin/nam 1000/1000 
E: nam: wrong­file­owner­uid­or­gid usr/local/lib/ 1000/1000 
E: nam: wrong­file­owner­uid­or­gid usr/local/lib/nam­1.15 1000/1000 
E: nam: wrong­file­owner­uid­or­gid usr/local/lib/nam­1.15/bin 1000/1000 
E: nam: wrong­file­owner­uid­or­gid usr/local/lib/nam­1.15/bin/tclsh8.5 1000/1000 
E: nam: wrong­file­owner­uid­or­gid usr/local/lib/nam­1.15/bin/wish8.5 1000/1000 

goes on and on and on... 

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ 
to get rid of pearl error i tried to do the following and tried to reinstall nam­1.15­10 but it
again popped up the same error mentioned above during the installation, 

# locale­gen en_US en_US.UTF­8 hu_HU hu_HU.UTF­8 

# dpkg­reconfigure locales 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ 

If  ignore  the  error  and  go  ahead  with  the  installation,  and  it  appears  to  install  correctly.
However,  I  do  not  see  any  nam  folder  created  in  /home/deepthi/Documents/na­allinone­
2.35/ directory. but nam* file is created in /usr/local/bin 

i tried to install the pacth manually by using command ­­> sudo dpkg ­i nam_1.15­10*.deb 
but  still  did  not  work  ,  it  does  not  show  any  error  but  no  folders  of  nam  are  created  as
required .. 

when i run the executable nam .i,e, $nam 
http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 8/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
it gives the below message, 

bash: /usr/local/bin/nam : No such file or directory 

but i see some folders and file in /usr/local/lib/nam­1.15 of today's date and time 

i am not sure if it is of old installation or the new nam pacth one. 

i tried to creat a link from /usr/local/bin/nam to /usr/local/lib/nam­1.15,  

but it did not help since when i again run the executable nam .i,e, $nam 
it give the below message, 

bash: /usr/local/bin/nam : is a directory. 

Any help would be appreciated..!!! 

Also please let me know how to upload screen shots , it will help me to explain better.. 

Thanks.. 
Reply

Shabeer Ahmad Monday, October 27, 2014 1:36:00 AM
i have done all the steps above but receiving the following error at the end
The program 'ns' is currently not installed. You can install it by typing: 
sudo apt­get install ns2 
Reply

Replies

Dhyan Singh Wednesday, October 29, 2014 12:39:00 PM
Please do not try to install ns by 'sudo apt­get install ns2'. First of all you have to
undo  all  the  changes  you  have  made  so  far.  So  delete  the  'ns­allinone­2.35'
directory,  remove  the  path  you  have  set  in  the  .bashrc  file  restart  your  system
and run the following commands one by one 
1. sudo apt­get upgrade 
2. sudo apt­get update 
3. sudo apt­get autoremove 
4. sudo apt­get clean 

Again restart your system and install the ns from the beginning. You may want to
look at the next comment by "Deepthi" for more information. 

Goodluck.

Deepthi Thursday, October 30, 2014 12:45:00 AM
@ Shabeer  
check  if  u  have  set  ur  enivnoment  variables  properly  in  .bashrc  file  and  make
sure you have executed source ~/.bashrc after changing, 

if u r still facing problem after doing the above step 

try again by adding  
export TCL_LIBRARY=$TCL_LIBRARY$TCLIB:$USRLIB 

insted of  

export TCL_LIBRARY=$TCLIB:$USRLIB 
in ur .bashrc file and load it by "source ~/.bashrc" command. 

if the problem still persist. 
http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 9/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
make  sure  ur  ubuntu  has  all  the  softwares  updated  (  i.e,  there  should  be  no
pending software update in you Appstore), also execute sudo apt­get update and
sudo­apt get upgrade 

do  not  install  ns2  by  typing  sudo  apt­get  insatll,  for  me  this  created
segementaton fault (core dump) error when executing nam 

Reply

Deepthi Monday, October 27, 2014 7:12:00 PM
hii, 

Thanks for the reply 
i am finally able to run the nam executable ... !!!! :) :) 

This is what i did, 
I unistalled ns2 , 
since i was running ubuntu on a virtual machine. i deleted ubuntu and reinstalled it on my
VM ware  

i updated ubuntu software from the app store ­ it took some time. 

i also executed sudo apt­get upgrade,sudo apt­get update, as u suggested.. 

then  as  suggested  in  link  ­>  http://askubuntu.com/questions/467901/segmentation­fault­


core­dumped­in­ns2­ubuntu­14­04 
i  downloaded  ns2­2.35  again  from  the  link  ­>
http://garr.dl.sourceforge.net/project/nsnam/allinone/ns­allinone­2.35/ns­allinone­
2.35.tar.gz. 

for installation of ns2 ­ i followed the similar steps as u mentioned 

this time i did not execute "sudo apt­get install ns2 nam xgraph" from terminal since i was
able to run ns and nam command after updating .bashrc file.  
As  per  the  link  mentioned  above  ,  i  suppose  segmentaion  fault  error  was  because  i
installed it by terminal using command "sudo apt­get install ns2 nam xgraph" . 

and also updating ubuntu before ns2 installation also helped i suppose. 

Thank You for ur suggestions. 

Best Regards, 
Deepthi 

Reply

Replies

sachin srinivasan Monday, November 07, 2016 2:10:00 PM
what did you update in the .bashrc file..?

Reply

Tiru A Tuesday, October 28, 2014 4:01:00 PM
hi  
i m installing ns2.35 on ubuntu 14.04 lts  
i have got error BACKWORD COMPATIBILITY MODE while executing command ./validate 
what solution will you suggest for this.
Reply

Replies

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 10/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

Dhyan Singh Wednesday, October 29, 2014 12:47:00 PM
It seems that you have some problem with your installation. You may consider to
re­install your ns from the beginning. For instruction on removal of ns and other
steps to follow pls have a look at previous comments. 

Good luck.

Reply

Deepthi Thursday, October 30, 2014 12:51:00 AM
FYI.. 

The uninstallation process is pretty simple. Please follow these steps: 

1. Delete the directory 'ns­allinone­2.35'. 
2. Delete the ns related files from /user/local/bin 
3. Edit the .bashrc file and remove the paths that you have added during the installation. 
4. restart the system and run following commands one by one 
5. sudo apt­get autoremove 
6. sudo apt­get clean 
7. sudo apt­get upgrade 
8. sudo apt­get update 

After these restart your system and proceed the installation as usual. 

Reply

Replies

Dhyan Singh Saturday, November 01, 2014 9:59:00 AM
Thats better ! Thank you. :)

Reply

Anonymous Thursday, October 30, 2014 12:52:00 PM
error is shown when ./install 
permission denied
Reply

Replies

Dhyan Singh Saturday, November 01, 2014 10:18:00 AM
You  should  change  to  permission  of  the  ns  directory  for  your  current  user.  You
may use chown or chmod command to do so.

Reply

Anonymous Thursday, October 30, 2014 2:34:00 PM
)\)  ­DTCL_SHLIB_EXT=\".so\"  ­DTCL_CFG_OPTIMIZED=1  ­DTCL_CFG_DEBUG=1  ­
D_LARGEFILE64_SOURCE=1  ­DTCL_WIDE_INT_TYPE=long\  long  ­
DHAVE_STRUCT_STAT64=1  ­DHAVE_OPEN64=1  ­DHAVE_LSEEK64=1  ­
DHAVE_TYPE_OFF64_T=1  ­DHAVE_SYS_TIME_H=1  ­DTIME_WITH_SYS_TIME=1  ­
DHAVE_INTPTR_T=1  ­DHAVE_UINTPTR_T=1  ­DHAVE_PW_GECOS=1  ­
DTCL_NO_DEPRECATED /home/rajveer/ns­allinone­2.35/tk8.5.10/unix/../generic/tk3d.c 
In file included from /home/rajveer/ns­allinone­2.35/tk8.5.10/unix/../generic/tkInt.h:19:0, 
from /home/rajveer/ns­allinone­2.35/tk8.5.10/unix/../generic/tk3d.c:14: 
/home/rajveer/ns­allinone­2.35/tk8.5.10/unix/../generic/tk.h:76:23:  fatal  error:  X11/Xlib.h:
No such file or directory 

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 11/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
# include  

compilation terminated. 
make: *** [tk3d.o] Error 1 
tk8.5.10 make failed! Exiting ... 
For problems with Tcl/Tk see http://www.scriptics.com 

help me to resolve this error
Reply

yuga varman Friday, October 31, 2014 8:39:00 AM
hi  i  have  installed  ns2  on  my  ubuntu  14.04lts  by  steps.  but  while  validating  it  gives  this
error.. 

Running test quiescent_500ms_coarse: 
../../ns test­suite­tcp.tcl quiescent_500ms_coarse QUIET 
Guide: Tahoe TCP after a quiescent period, coarse­grained timer, tcpTick_ 0.5. 
ns: _o4 cleanup file5 quiescent_500ms_coarse(EnblRTTCtr__1): Can't locate getopts.pl in
@INC  (@INC  contains:  /etc/perl  /usr/local/lib/perl/5.18.2  /usr/local/share/perl/5.18.2
/usr/lib/perl5  /usr/share/perl5  /usr/lib/perl/5.18  /usr/share/perl/5.18  /usr/local/lib/site_perl  .)
at ../../bin/raw2xg line 37. 
while executing 
"exec  $PERL  ../../bin/set_flow_id  ­s  all.tr  |  $PERL  ../../bin/getrc  ­s  2  ­d  3  |  $PERL
../../bin/raw2xg ­s 0.01 ­m 90 ­t $file > temp.rands" 
(procedure "_o4" line 3) 
(TestSuite finish line 3) 
invoked from within 
"$self finish $testname" 
(procedure "_o4" line 11) 
(TestSuite cleanup line 11) 
invoked from within 
"_o4 cleanup file5 quiescent_500ms_coarse(EnblRTTCtr__1)" 
Test output differs from reference output 
Diagnose  with:  diff  test­output­tcp/quiescent_500ms_coarse.test  test­output­
tcp/quiescent_500ms_coarse 
Or see URL "http://www.isi.edu/nsnam/ns/ns­problems.html".
Reply

Replies

jko Monday, February 16, 2015 12:05:00 AM
Hi there, I am facing the same issue. Please could you tell me in case you have
solved it. Any help would be highly appreciated.

Sabari Rajan Saturday, February 21, 2015 12:21:00 AM
try installing perl using 
sudo apt­get install perl

Reply

Anonymous Friday, October 31, 2014 7:40:00 PM
in these lines,  

# LD_LIBRARY_PATH 
OTCLLIB=/path/to/ns­allinone­2.35/otcl­1.14 
NS2=/path/to/Documents/ns­allinone­2.35/lib 

here  above  in  ns2=  path/to/______  you  have  written  documents  again,  we  have  to  do  it
that way or its a mistake??
Reply

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 12/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

Replies

Dhyan Singh Saturday, November 01, 2014 10:26:00 AM
Hey..thank  you  for  pointing  it  out.  Its  a  mistake,  you  dont  have  to  add  the
'Documents'.

Anonymous Sunday, November 02, 2014 5:22:00 AM
My extracted files are in "Downloads" folder... 
What do i have to replace "path/to" with?  

1. my_user_name/Downloads 

or 

2. my_user_name/to 

Thank you...

Reply

Dhyan Singh Sunday, November 02, 2014 2:13:00 PM
my_user_name/Downloads/
Reply

Sameer Badami Friday, November 07, 2014 7:04:00 PM
hey i installed ns­2.34 according to steps given here, 
when i run the tcl script nam file will be generated but not able to get output.
Reply

Replies

Dhyan Singh Friday, November 07, 2014 10:24:00 PM
Not  able  to  get  output  ?  As  in  nam  file  in  empty  or  nam  file  is  not  running
automatically  ?  If  its  not  running  automatically  then  you  have  to  include  'exec
nam namefile.nam' in your tcl script.

Anonymous Tuesday, November 11, 2014 12:06:00 PM
i also have the same problem  
plz tell me if u solved it ..... thx

Reply

Sameer Badami Saturday, November 08, 2014 8:37:00 AM
hey i included "exec nam out.nam &" in tcl but then also not able to get output. 
(nam file generated is not empty,i think its not running automatically)
Reply

Replies

Dhyan Singh Saturday, November 08, 2014 12:54:00 PM
Ok. please try to run your file manually from the terminal, it will ensure whether
you have a properly installed nam or not.

Reply

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 13/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

sush Sunday, November 09, 2014 8:00:00 PM
Thank you so much....becz of u im able 2 install ns2 successfully....tnx again #Dhyan
Reply

Shabeer Ahmad Sunday, November 09, 2014 9:34:00 PM
after installation i set my library paths 

# LD_LIBRARY_PATH 
OTCL_LIB=/home/shabeer/ns­allinone­2.35/otcl­1.14 
NS2_LIB=/home/shabeer/ns­allinone­2.35/lib 
USR_LOCAL_LIB=/usr/local/lib 
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$USR_LOCAL_LIB 
# TCL_LIBRARY 
TCL_LIB=/home/shabeer/ns­allinone­2.35/tcl8.5.10/library 
USR_LIB=/usr/lib 
export TCL_LIBRARY=$TCL_LIB:$USR_LIB 
# PATH 
XGRAPH=/home/shabeer/ns­allinone­2.35/bin:/your/path/ns­allinone­
2.35/tcl8.5.10/unix:/home/shabeer/ns­allinone­2.35/tk8.5.10/unix 
NS=/home/shabeer/ns­allinone­2.35/ns­2.35/ 
NAM=/home/shabeer/ns­allinone­2.35/nam­1.15/ 
export PATH=$PATH:$XGRAPH:$NS:$NAM 

and save it and after that i give the following command
shabeer@shabeer­Aspire­5742:~/ns­allinone­2.35$ source ~/.bashrc 
it give the following error what can i do now plz give me quick reply 

bash:  2.35/tcl8.5.10/unix:/home/shabeer/ns­allinone­2.35/tk8.5.10/unix:  No  such  file  or


directory 
Reply

Replies

Dhyan Singh Tuesday, November 11, 2014 1:20:00 PM
hey....look at the path for the XGRAPH variable you forgot to replace '/your/path/'
with '/home/shabeer/'. Correct it and it should run fine. Goodluck !!

Reply

Manwendra Tiwari Monday, November 10, 2014 4:24:00 PM
thanx bro ...it really helpful for me....
Reply

Divya Prabha Wednesday, November 12, 2014 2:03:00 PM
hello sir 

after installation of ns2.35 when i tried to run some tcl file it gives following error 

divya@divya­hp­dv6:~$ cd ns2\ files/ 
divya@divya­hp­dv6:~/ns2 files$ ns nodes.tcl 
divya@divya­hp­dv6:~/ns2 files$ Can't find a usable init.tcl in the following directories:  
/home/divya/NS/ns­allinone­2.35/tk8.5.10/library:/usr/lib  /home/divya/ns­allinone­
2.35/lib/tcl8.5 ./lib/tcl8.5 ./lib/tcl8.5 ./library ./library ./tcl8.5.10/library ./tcl8.5.10/library 

This probably means that Tcl wasn't installed properly. 

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 14/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

i removed tcl and reinstalled again..but again it shows the same error.
Reply

Replies

Dhyan Singh Wednesday, November 12, 2014 2:17:00 PM
Hello...  

It  seems  like  there  is  some  problem  with  the  path  that  you  have  set,  kindly
ensure that you have set the path correctly. Also are you getting a '%' when you
simply run the 'ns' ?

Divya Prabha Wednesday, November 12, 2014 2:21:00 PM
yes... its showing % when i run the "ns"

amit rajan Thursday, December 04, 2014 1:11:00 PM
I  am  getting  the  same  error.I  have  entered  the  path  correctly.How  to  solve  it??
Do reply

Dhyan Singh Thursday, December 04, 2014 8:18:00 PM
Pls  double  check  your  locations  and  paths  that  you  are  giving.  In  the  case  of
Miss Divya she has missed some path variables.

Reply

Anonymous Thursday, November 13, 2014 9:10:00 AM
i follow all the above steps but when i write command (ns) i get this messages 
segmentation fault(core dumped) 
and appers the fault window (sorry, the application nam has stopped unexpectedly)
Reply

Replies

Dhyan Singh Thursday, November 13, 2014 1:12:00 PM
It  happens  sometimes.  Pls  uninstall  the  ns,  follow  the  following  steps  and  start
the installation from the beginning 

1. Delete the directory 'ns­allinone­2.35'. 
2. Delete the ns related files from /user/local/bin 
3.  Edit  the  .bashrc  file  and  remove  the  paths  that  you  have  added  during  the
installation. 
4. restart the system and run following commands one by one 
5. sudo apt­get autoremove 
6. sudo apt­get clean 
7. sudo apt­get upgrade 
8. sudo apt­get update

Anonymous Monday, November 17, 2014 1:35:00 PM
i am unable to uninstall ns2 
i del the drc 
no files were in usr/local/bin 
edit .bashrc 
restart system and run autoremove and clean cmds 
but still when i type ns it shows % 
plz help.......................

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 15/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
Dhyan Singh Monday, November 17, 2014 9:33:00 PM
Seems  like  ns  executables  are  still  in  your  system.  pls  run  this  command  on  a
terminal  

locate ­i "ns.*" 

it will return the every location which contains a ns executable file. delete these
files and proceed further.

Reply

Shabeer Ahmad Monday, November 24, 2014 8:21:00 AM
where cAN I FIND TCL SCRIPTS FOR TCP VARIANTS ????????
Reply

Replies

Dhyan Singh Monday, November 24, 2014 5:19:00 PM
Pardon me I don't understand, TCP Variants for what ?

Shabeer Ahmad Thursday, November 27, 2014 8:17:00 AM
tcp  variants  like  vegas  ,  reno  ,  new  reno  ,  tcp  door  ,  tcp­f  ,  to  check  tcp
performance...on diferrent variants

Dhyan Singh Saturday, November 29, 2014 10:25:00 PM
Try this: 

https://sites.google.com/a/seecs.edu.pk/network­technologies­tcp­ip­
suite/home/performance­analysis­of­tcp­variants­for­wireless­networks­using­ns­

Reply

arjun Monday, November 24, 2014 10:13:00 AM
hi.. when i try to do this command"sudo gedit .bashrc" getting like this, 
arjun@arjun­HP­2000­Notebook­PC:~/sanju/ns­allinone­2.35$ sudo gedit .bashrc 

(gedit:26982):  Gtk­WARNING  **:  Calling  Inhibit  failed:


GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 
arjun@arjun­HP­2000­Notebook­PC:~/sanju/ns­allinone­2.35$  

Reply

arjun Monday, November 24, 2014 10:26:00 AM
hi.. in new terminal bash file is opening.. after editing that when i save it.. im getting like
this... 

arjun@arjun­HP­2000­Notebook­PC:~$ sudo gedit .bashrc 
[sudo] password for arjun:  

(gedit:27739):  Gtk­WARNING  **:  Calling  Inhibit  failed:


GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 

(gedit:27739):  Gtk­WARNING  **:  Calling  Inhibit  failed:


http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 16/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 

Reply

arjun Monday, November 24, 2014 10:31:00 AM
arjun@arjun­HP­2000­Notebook­PC:~/sanju/ns­allinone­2.35$ nam 
Segmentation fault (core dumped) 
arjun@arjun­HP­2000­Notebook­PC:~/sanju/ns­allinone­2.35$ source ~/.bashrc 
Does: command not found 
bash:  allinone­2.35/tcl8.5.10/unix:/sanju/ns­allinone­2.35/tk8.5.10/unix:  No  such  file  or
directory 
the: nothing found ­­ skipped. 
file: nothing found ­­ skipped. 
and: nothing found ­­ skipped. 
restart: nothing found ­­ skipped. 
the: nothing found ­­ skipped. 
system,: nothing found ­­ skipped. 
alternatively: nothing found ­­ skipped. 
you: nothing found ­­ skipped. 
can: nothing found ­­ skipped. 
just: nothing found ­­ skipped. 
reload: nothing found ­­ skipped. 
the: nothing found ­­ skipped. 
.bas: nothing found ­­ skipped. 
done. 
Reply

Arjun Bhaskar Monday, November 24, 2014 10:46:00 AM
hello friend i hv a doubt that ... i save my file in home/sanju/.... but when i type a command
cd home it showiing "such a file or directory not found", so in bash file which path should i
give?  
1) home/sanju/ns..... 
2)sanju/ns.... 
3)arjun/sanju/ns...
Reply

Replies

Dhyan Singh Monday, November 24, 2014 5:18:00 PM
you should give the complete path to, at which you have your 'ns­allinone­2.35'
folder.

Arjun Bhaskar Wednesday, November 26, 2014 8:29:00 AM
thanu u...

Arjun Bhaskar Wednesday, November 26, 2014 10:22:00 AM
im getting this error after ./validate 

validate overall report: some tests failed: 
./test­all­tcp  ./test­all­testReno  ./test­all­newreno  ./test­all­sack  ./test­all­
tcpOptions  ./test­all­tcpReset  ./test­all­testReno­full  ./test­all­testReno­bayfull
./test­all­sack­full  ./test­all­tcp­init­win  ./test­all­tcpVariants  ./test­all­LimTransmit
./test­all­aimd  ./test­all­rfc793edu  ./test­all­rfc2581  ./test­all­rbp  ./test­all­tcpLinux
./test­all­frto  ./test­all­ecn  ./test­all­ecn­ack  ./test­all­ecn­full  ./test­all­quickstart
./test­all­manual­routing ./test­all­red ./test­all­adaptive­red ./test­all­red­pd ./test­
all­rio  ./test­all­vq  ./test­all­rem  ./test­all­gk  ./test­all­pi  ./test­all­cbq  ./test­all­
schedule ./test­all­links ./test­all­oddBehaviors 

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 17/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
to re­run a specific test, cd tcl/test; ./test­all­TEST­NAME 

Dhyan Singh Wednesday, November 26, 2014 12:29:00 PM
Its allright....are you getting the "%" sign >

Reply

Arjun Bhaskar Wednesday, November 26, 2014 10:54:00 PM
ya dude im getting when i typed as "ns". 
tnq 4 ur response dude:)
Reply

Obi Muhammad Baihaqi Wednesday, November 26, 2014 11:32:00 PM
hi sir. 

i  already  follow  the  step  for  install  ns  2.35  on  ubuntu  14.04  but  there's  missing  .bashrc  .
how to solve this problem?
Reply

Replies

Dhyan Singh Saturday, November 29, 2014 10:30:00 PM
hello... 

Plz refer the following link: 

http://superuser.com/questions/584540/no­bashrc­file­in­my­home­directory

Reply

Arjun Bhaskar Thursday, November 27, 2014 8:01:00 AM
Hello frnd... while executing ns2 prgrm, which file extension we hv to use and what is the
command to obtain output or run the program?should we write program in editor window
i.e by typing vi .... .... or in the starting terminal wr v get % symbol?
Reply

Replies

Dhyan Singh Friday, November 28, 2014 5:40:00 PM
Hello...Plz  go  through  the  tutorials  first.  Links  are  given  in  the  Step  4,  after  the
screenshot.

Arjun Bhaskar Saturday, November 29, 2014 12:47:00 PM
thank u ... u helped me lot... just now i run my 1st ns2 prgrm :)

Reply

Shabeer Ahmad Tuesday, December 02, 2014 8:56:00 AM
Thanx for your kind information......
Reply

nausheen Tuesday, December 02, 2014 10:54:00 AM

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 18/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
thank you :) it was easy to install ns throuh your tutorial
Reply

Anonymous Friday, December 05, 2014 10:50:00 PM
hey  bro,  after  installing  ns2  and  validating,  when  i  type  'ns'  it  says  ns  is  not  currently
installed. 
what should i do? should i re install?
Reply

Replies

Dhyan Singh Saturday, December 06, 2014 4:49:00 PM
You should reinstall it. It happens sometimes reasons unknown.

Tarek Ben Slama Saturday, January 17, 2015 10:24:00 PM
hey  Dhyan  ,  should  i  remove  ns  first  and  reinstalla  it  ?  or  enter  :  sudo  apt­get
install ns2 directly ?

Dhyan Singh Saturday, January 17, 2015 10:35:00 PM
Hello, You should remove it first and then reinstall it. Please don't use sudo apt­
get install ns2, it will not work.

Reply

Anonymous Wednesday, December 10, 2014 4:15:00 AM
thank you :) tutorial very well done
Reply

elhabib elmansour Friday, December 12, 2014 10:19:00 AM
how to applying the SCTP patch to NS2 package,
Reply

Replies

Dhyan Singh Friday, December 12, 2014 2:14:00 PM
Please refer the following link: 

http://www.linuxjournal.com/article/5929 

Hope it helps. Goodluck :)

Reply

priyanka jadhav Friday, December 12, 2014 6:43:00 PM
is this ns 2.35 compatible to 64 bit?
Reply

Replies

Dhyan Singh Friday, December 12, 2014 7:02:00 PM
Yeah, it can be installed in both x86 and x64

Reply

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 19/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

priyanka jadhav Friday, December 12, 2014 9:25:00 PM
thank u so mch sir........ its working .....
Reply

shivanshu singh Saturday, January 10, 2015 1:01:00 PM
I got following validation report and error  

validate overall report: some tests failed: 
./test­all­tcp  ./test­all­testReno  ./test­all­newreno  ./test­all­sack  ./test­all­tcpOptions  ./test­
all­tcpReset ./test­all­testReno­full ./test­all­testReno­bayfull ./test­all­sack­full ./test­all­tcp­
init­win  ./test­all­tcpVariants  ./test­all­LimTransmit  ./test­all­aimd  ./test­all­rfc793edu  ./test­
all­rfc2581 ./test­all­rbp ./test­all­tcpLinux ./test­all­frto ./test­all­ecn ./test­all­ecn­ack ./test­
all­ecn­full  ./test­all­quickstart  ./test­all­manual­routing  ./test­all­red  ./test­all­adaptive­red
./test­all­red­pd  ./test­all­rio  ./test­all­vq  ./test­all­rem  ./test­all­gk  ./test­all­pi  ./test­all­cbq
./test­all­schedule ./test­all­links ./test­all­oddBehaviors 
to re­run a specific test, cd tcl/test; ./test­all­TEST­NAME 

root@ubuntu:/home/shivanshu/ns­allinone­2.35/ns­2.35# ns 
ns:  error  while  loading  shared  libraries:  libtcl8.5.so.0:  cannot  open  shared  object  file:  No
such file or directory 

please help....
Reply

Replies

Miguel Chavarín Tuesday, February 17, 2015 8:18:00 AM
Did you manage to solve this problem? 

Dhyan Singh Wednesday, February 18, 2015 3:47:00 PM
Try this: 

TCLIB=/path/to/ns­allinone­2.35/tcl8.5.10/library  
instead of 
TCLIB=/path/to/ns­allinone­2.35/tk8.5.10/library

seeyousoon Wednesday, May 27, 2015 8:12:00 PM
Problem remain the same unfortunately. Are there any other suggestion to solve
it?

Shahid anwer Monday, July 27, 2015 6:39:00 PM
Hello Mr. Dhyan 
After  validation  I  found  the  same  problem  TCLIB=/path/to/ns­allinone­
2.35/tcl8.5.10/library already there in .bashrc file. would you please advise ?

Reply

ARULRAJ Tuesday, January 20, 2015 9:55:00 AM
When i am doing step 2, at "sudo apt­get upgrade" i got interrupted and saying "dpkg was
interrupted, you must manually run 'sudo dpkg ­­configure ­a' to correct the problem."  
What should i do now?
Reply

Dhyan Singh Tuesday, January 20, 2015 4:33:00 PM

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 20/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
This problem is related to your ubuntu configuration. Kindly run the command suggested
by the system i.e. sudo dpkg ­­configure ­a
Reply

Anonymous Tuesday, January 20, 2015 5:24:00 PM
can ns2.35 run LTE projects ?
Reply

Replies

Dhyan Singh Tuesday, January 20, 2015 9:22:00 PM
You may try these links: 

1.  http://naveenshanmugam.blogspot.in/2014/02/lte­long­term­evaluation­
network­in­ns2.html 
2.
https://www.academia.edu/5258157/Traffic_Modeling_of_LTE_Mobile_Broadban
d_Network_Based_on_NS2_Simulator

Reply

ARULRAJ Wednesday, January 21, 2015 11:07:00 AM
3. Before installing the NS we have to install some essential packages required by the NS.
So run the following commands: 

1 sudo apt­get install tcl8.5­dev tk8.5­dev 
For the above step i'm getting error message as 
"E: Unable to fetch some archives, maybe run apt­get update or try with ­­fix­missing?" 
What to do? 
Reply

Replies

Dhyan Singh Wednesday, January 21, 2015 1:45:00 PM
You may try to run: 

1. sudo apt­get update ­­fix­missing 
2. sudo dpkg­reconfigure ­all

Reply

Anonymous Friday, January 23, 2015 3:43:00 PM
Dhyan...when i tried to validate, the terminal shows "permission denied"...what can i do? 
Reply

Dhyan Singh Saturday, January 24, 2015 2:18:00 PM
Please  make  sure  that  you  the  admin  of  the  system  or  have  necessary  rights  to  run  the
command. You can also try "sudo ./validate".
Reply

Anonymous Wednesday, January 28, 2015 5:26:00 PM
thank you works for me exactly!
Reply

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 21/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

Anonymous Wednesday, February 04, 2015 2:25:00 AM
TCLIB=/path/to/ns­allinone­2.35/tcl8.5.10/library 
instead of 
TCLIB=/path/to/ns­allinone­2.35/tk8.5.10/library
Reply

Replies

Dhyan Singh Wednesday, February 25, 2015 10:56:00 AM
Thanx for pointing it out. :)

Reply

pothalaiah Wednesday, February 18, 2015 5:54:00 PM
after success full installation ns 2.34 in ubuntu 14.04  
adding  path  using  gedit  .barshrc  ir=t  works  well  and  close  terminal  and  again  type  ns  it
says "ns currently not installed"  
i add path at proper location no doubt  
can help me
Reply

Replies

Dhyan Singh Thursday, February 19, 2015 12:50:00 PM
Did you tried reloading the .bashrc using 'source ~/.bashrc' or tried restarting the
system ? 
Also  check  your  .bashrc  and  ensure  that  your  changes  have  been  saved
successfully.

Reply

Anonymous Thursday, February 19, 2015 3:52:00 PM
i have ah problem on during installation. i followed your steps it will perfectly working untiil
the validation 
process  after  i  validate  it  shows  "  some  test  failed"  after  i  type  ns  means  "ns  is  not
currently installed" this will be displayed plz hlp me go ahead
Reply

Replies

Dhyan Singh Wednesday, February 25, 2015 10:56:00 AM
I  have  modified  the  procedure,  please  uninstall  the  NS  first  then  start  from  the
1st step. Also let me know if it helps.

Reply

Archit Singla Saturday, February 21, 2015 7:35:00 PM
ns installed successfully 
but when in run nam 
it gives 
bash /usr/local/bin/nam no such file or directory 
please help
Reply

Replies

Dhyan Singh Wednesday, February 25, 2015 10:58:00 AM

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 22/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
I have modified the procedure, please set the environmental variables again and
follow the procedure from 3rd step. Let me know if it helps.

Reply

Anonymous Monday, February 23, 2015 1:25:00 PM
i got % symbol after the installation but while i type nam means "segmentation fault (core
dumped)" this error will be suited plz help me
Reply

Replies

Dhyan Singh Wednesday, February 25, 2015 10:56:00 AM
I  have  modified  the  procedure,  please  uninstall  the  NS  first  then  start  from  the
1st step. Also let me know if it helps.

Subramanya S S Monday, March 14, 2016 12:31:00 PM
while uninstalling...how to edit .bashrc file i am not finding what i have edited in
.bashrc file

Reply

science Friday, March 06, 2015 1:17:00 PM
hello sir im facing problem when trying to run tcl file, it said "the program ns currently not
installed, you can install by type sudo apt­get ns2" , but i havent type that command, so
what should i do sir? thank you for your respon
Reply

Replies

Dhyan Singh Sunday, March 08, 2015 1:55:00 PM
Please ensure that you have set the path correctly. Also see the P.S. section of
the above post.

Reply

abhijit das Friday, March 06, 2015 8:52:00 PM
I have followed all the steps but when I run 'ns' in terminal this error is displayed­ 
"The program 'ns' is currently not installed. You can install it by typing: 
sudo apt­get install ns2" 
Reply

Replies

Dhyan Singh Sunday, March 08, 2015 1:55:00 PM
Please ensure that you have set the path correctly. Also see the P.S. section of
the above post.

Balu Narasimha Friday, July 24, 2015 2:12:00 PM
i installed ns2 suceessfully 
but nam was not working 
can u help me out of this

Subramanya S S Monday, March 14, 2016 12:33:00 PM

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 23/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
i also got the same problem ...so i installed it by typing: 
sudo apt­get install ns2"

Reply

boufedah badissi azzouz Wednesday, March 11, 2015 10:22:00 PM
i follow all the above steps but when i write command (ns) it give me % 
but when i write nam i get this messages 
segmentation fault(core dumped) 
when execute scenario tcl it's OK but without nam
Reply

Replies

Dhyan Singh Thursday, March 12, 2015 11:43:00 PM
Try to run the nam from the "ns­allinone­2.35/nam­1.15/bin". Also see if there's a
nam file in "/usr/local/bin". Try to run the both one by one; see whether anyone of
them is working correctly or not.

seeyousoon Friday, May 29, 2015 12:17:00 AM
nam  which  is  in  "/usr/local/bin"  is  working  when  ı  click  double.But  when  ı  write
"nam"  in  terminal,again  ı  got  segmentation  fault  error.Then  what  should  ı  do?
thanks in advance  

Subramanya S S Monday, March 14, 2016 12:38:00 PM
i get ....running nam... but nam animation will not open

Reply

gaurav Wednesday, March 25, 2015 1:38:00 AM
please help removing this error 

gaurav@ubuntu:~$ ns 
ns:  error  while  loading  shared  libraries:  libtcl8.5.so.0:  cannot  open  shared  object  file:  No
such file or directory 
Reply

Mohamed MESNOUA Thursday, March 26, 2015 5:08:00 AM
Dear Dhyan  
i'am a new ns2 my question is how do to integrate a new algorithm of scheduling packets
in MANET by using ns2, please tell me the steps 
thanks
Reply

Jay Mehta Sunday, March 29, 2015 12:15:00 AM
Awesome sequential help! thumbs up bro. keep it up the good work!!!!!
Reply

Saad Mehmood Saturday, April 04, 2015 9:58:00 PM

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 24/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
i hav a problem when calling nam 
child killed: segmentation voilation 
this error arise.. 
i insalled every thing you told above.. 
kindly help to get it working
Reply

vinay kumar M.S. Monday, April 06, 2015 12:30:00 PM
immediately after adding path in .bashrc file i am getting this error in terminal 

(gedit:28544):  Gtk­WARNING  **:  Calling  Inhibit  failed:


GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 
Reply

Abutty Tuesday, April 07, 2015 6:22:00 PM
Hi Dhyan, 

After installation I have tried to run "ns" command which gives me the % which was fine. 
But when I tried to run "nam" command I got the following error: 

abhi@abhi­Inspiron­3521:~/Documents/ns­allinone­2.35$ nam 
nam:  error  while  loading  shared  libraries:  libstdc++.so.6:  cannot  open  shared  object  file:
No such file or directory 
abhi@abhi­Inspiron­3521:~/Documents/ns­allinone­2.35$  

I have gone through all the comments and replies in this page, but didn't helped me out. 

Hope you can help me out. 
Thanks
Reply

vindhya chowdary Monday, April 13, 2015 11:52:00 AM
sir  i  follow  ur  manual  i  git  error  while  i  give  nam  command  error  was  segmentation
fault(core dumped) 
i got % also.pls give suggestion very soon
Reply

Wesley Smith Saturday, April 25, 2015 11:14:00 PM
I  have  following  your  guide  up  to  the  install.  Everything  seems  to  be  running  fine  until  I
reach the "Build OTcl­1.14" section. Specifically, I see the following error: 

checking for X11 header files 
can't find X includes 
otcl­1.14 configuration failed! Exiting ... 

Can you please help me fix this? Thanks in advance.
Reply

Wesley Smith Saturday, April 25, 2015 11:31:00 PM
In regards to my previous question (concerning OTcl­1.14 build), here is that entire section
of the install: 

============================================================ 
* Build OTcl­1.14 
============================================================ 
No .configure file found in current directory 
Continuing with default options... 
http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 25/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
checking build system type... x86_64­unknown­linux­gnu 
checking host system type... x86_64­unknown­linux­gnu 
checking target system type... x86_64­unknown­linux­gnu 
checking for gcc... gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables...  
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts ­g... yes 
checking for gcc option to accept ISO C89... none needed 
checking for g++... g++ 
checking whether we are using the GNU C++ compiler... yes 
checking whether g++ accepts ­g... yes 
checking how to run the C preprocessor... gcc ­E 
checking for grep that handles long lines and ­e... /bin/grep 
checking for egrep... /bin/grep ­E 
checking for ANSI C header files... yes 
checking for sys/types.h... yes 
checking for sys/stat.h... yes 
checking for stdlib.h... yes 
checking for string.h... yes 
checking for memory.h... yes 
checking for strings.h... yes 
checking for inttypes.h... yes 
checking for stdint.h... yes 
checking for unistd.h... yes 
checking for string.h... (cached) yes 
checking for main in ­lXbsd... no 
checking for socket in ­lsocket... no
checking for gethostbyname in ­lnsl... yes 
checking for dcgettext in ­lintl... no 
checking for getnodebyname in ­ldnet_stub... no 
checking that g++ can handle ­O2... yes 
checking standard STL is available... no 
checking for tcl.h... ­I../include 
checking for tclInt.h... ­I../include 
checking for libtcl8.5... ­L../lib ­ltcl8.5 
checking for init.tcl... ../lib/tcl8.5 
checking for http.tcl... ../lib/tcl8.5/http1.0 
checking Tcl http.tcl library... yes 
checking for tclsh8.5.10... no 
checking for tclsh8.5... ../bin/tclsh8.5 
checking for tk.h... ­I../include 
checking for libtk8.5... ­L../lib ­ltk8.5 
checking for tk.tcl... ../lib/tk8.5 
checking for X11 header files 
can't find X includes 
otcl­1.14 configuration failed! Exiting ... 
Please check http://www.isi.edu/nsnam/ns/ns­problems.html 
for common problems and bug fixes. 
Reply

ritu sehgal Monday, May 25, 2015 4:09:00 PM
hi 
I have set the path as per the directions given above in ubuntu 11.10 and reload the bash
file also. During validation following response occurs in the terminal. Plz help why this is
happening. 

Some test failed. 
Mon May 25 15:58:49 IST 2015 
Mon May 25 15:58:51 IST 2015 
*** ./test­all­sack 

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 26/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
Tests: sack1 sack1z sack1a sack1aa sack1b sack1c sack3 sack5 sack5a sackB2 sackB4
sackB4a FalsePipe FalsePipe1 sack_dupacks sack_finiteflow sack_dupacks1 
Running test sack1: 
../../ns test­suite­sack.tcl sack1 QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1z: 
../../ns test­suite­sack.tcl sack1z QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1a: 
../../ns test­suite­sack.tcl sack1a QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1aa: 
../../ns test­suite­sack.tcl sack1aa QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1b: 
../../ns test­suite­sack.tcl sack1b QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1c: 
../../ns test­suite­sack.tcl sack1c QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack3: 
../../ns test­suite­sack.tcl sack3 QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack5: 
../../ns test­suite­sack.tcl sack5 QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack5a: 
../../ns test­suite­sack.tcl sack5a QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sackB2: 
Reply

ritu sehgal Monday, May 25, 2015 4:11:00 PM
Hi 
I am getting the following response during validation. plz help.. 

Some test failed. 
Mon May 25 15:58:49 IST 2015 
Mon May 25 15:58:51 IST 2015 
*** ./test­all­sack 
Tests: sack1 sack1z sack1a sack1aa sack1b sack1c sack3 sack5 sack5a sackB2 sackB4
sackB4a FalsePipe FalsePipe1 sack_dupacks sack_finiteflow sack_dupacks1 
Running test sack1: 
../../ns test­suite­sack.tcl sack1 QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1z: 
../../ns test­suite­sack.tcl sack1z QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1a: 
../../ns test­suite­sack.tcl sack1a QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1aa: 
../../ns test­suite­sack.tcl sack1aa QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1b: 
../../ns test­suite­sack.tcl sack1b QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack1c: 
../../ns test­suite­sack.tcl sack1c QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack3: 
../../ns test­suite­sack.tcl sack3 QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack5: 

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 27/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
../../ns test­suite­sack.tcl sack5 QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sack5a: 
../../ns test­suite­sack.tcl sack5a QUIET 
./test­all­template1: 149: ../../ns: not found 
Running test sackB2: 
Reply

seeyousoon Wednesday, May 27, 2015 12:07:00 PM
Hi; 
I follow all these steps but when I wrote ./validate or sudo ./validate,firstly I saw in terminal
"some test outputs agrees with reference outputs" but after that I saw this and it repeats
for other tests ; 

Running test resetSack1: 
../../ns test­suite­tcpReset.tcl resetSack1 QUIET 
Guide: Sack TCP, resetting a TCP connection. 
ns:  _o4  cleanup  file5  resetSack1:  Can't  locate  getopts.pl  in  @INC  (@INC  contains:
/etc/perl  /usr/local/lib/perl/5.18.2  /usr/local/share/perl/5.18.2  /usr/lib/perl5  /usr/share/perl5
/usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ../../bin/raw2xg line 37. 
while executing 
"exec  $PERL  ../../bin/set_flow_id  ­s  all.tr  |  $PERL  ../../bin/getrc  ­s  2  ­d  3  |  $PERL
../../bin/raw2xg ­s 0.01 ­m 90 ­t $file > temp.rands" 
(procedure "_o4" line 3) 
(TestSuite finish line 3) 
invoked from within 
"$self finish $testname" 
(procedure "_o4" line 11) 
(TestSuite cleanup line 11) 
invoked from within 
"_o4 cleanup file5 resetSack1" 
Test output differs from reference output 
Diagnose with: diff test­output­tcpReset/resetSack1.test test­output­tcpReset/resetSack1 
Or see URL "http://www.isi.edu/nsnam/ns/ns­problems.html". 
Running test resetReno: 
../../ns test­suite­tcpReset.tcl resetReno QUIET 
Guide: Reno TCP, resetting a TCP connection. 
ns: _o4 cleanup file5 resetReno: Can't locate getopts.pl in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.18.2  /usr/local/share/perl/5.18.2  /usr/lib/perl5  /usr/share/perl5
/usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ../../bin/raw2xg line 37. 
while executing 
"exec  $PERL  ../../bin/set_flow_id  ­s  all.tr  |  $PERL  ../../bin/getrc  ­s  2  ­d  3  |  $PERL
../../bin/raw2xg ­s 0.01 ­m 90 ­t $file > temp.rands" 
(procedure "_o4" line 3) 
(TestSuite finish line 3) 
invoked from within 
"$self finish $testname" 
(procedure "_o4" line 11) 
(TestSuite cleanup line 11) 
invoked from within 
"_o4 cleanup file5 resetReno" 
Test output differs from reference output 
Diagnose with: diff test­output­tcpReset/resetReno.test test­output­tcpReset/resetReno 
Or see URL "http://www.isi.edu/nsnam/ns/ns­problems.html". 
Some test failed. 

Could you help me please? thanks.
Reply

VIKRAM K Friday, June 19, 2015 2:37:00 PM
vikram2403@vikram2403­Inspiron­3541:~/vikram/ns­allinone­2.35$ sudo gedit .bashrc 
[sudo] password for vikram2403:  

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 28/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
(gedit:19447):  Gtk­WARNING  **:  Calling  Inhibit  failed:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 

(gedit:19447):  Gtk­WARNING  **:  Calling  Inhibit  failed:


GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 
^Cvikram2403@vikram2403­Inspiron­3541:~/vikram/ns­allinone­2.35$ pwd 
/home/vikram2403/vikram/ns­allinone­2.35 
vikram2403@vikram2403­Inspiron­3541:~/vikram/ns­allinone­2.35$ sudo gedit .bashrc 

(gedit:19499):  Gtk­WARNING  **:  Calling  Inhibit  failed:


GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 

(gedit:19499):  Gtk­WARNING  **:  Calling  Inhibit  failed:


GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 

(gedit:19499):  Gtk­WARNING  **:  Calling  Inhibit  failed:


GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 

(gedit:19499):  Gtk­WARNING  **:  Calling  Inhibit  failed:


GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 

(gedit:19499):  Gtk­WARNING  **:  Calling  Inhibit  failed:


GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files 
Reply

Devanshi Piprottar Tuesday, July 14, 2015 9:54:00 PM
devanshi@devanshi­virtual­machine:~$ ns lab1.tcl 
warning: no class variable LanRouter::debug_ 

see tcl­object.tcl in tclcl for info about this warning. 

devanshi@devanshi­virtual­machine:~$
Reply

ns beginner Thursday, July 23, 2015 12:05:00 AM
hiii dere 
i m new to ns2,,i install ns2 using following commands 
sudo apt­get update 
sudo apt­get install ns2 
sudo apt­get install nam 
sudo apt­get install tcl 
sudo apt­get install Xgraph 

installed successfully,,,,tcl scripts are running smoothly 
but  tutorials  m  following  describes  some  c  files  ,,,  m  not  able  to  search  any  directory  of
such files 
i  search  some  cc  files  of  protocol  but  not  able  to  figure  out  where  to  compile  these  files
and how to link those files with ns2,,, 
please help 
i tried nsallinone for installation of ns2 earlier but all in vain ,,,shows error file not found etc
etc
Reply

Yash Gupta Saturday, July 25, 2015 11:55:00 PM

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 29/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
warning is shown in terminal while editing in bashrc file 
(gedit:27884):  Gtk­WARNING  **:  Calling  Inhibit  failed:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:  The  name
org.gnome.SessionManager was not provided by any .service files
Reply

ns beginner Thursday, July 30, 2015 1:04:00 PM
hiii dere ..i m stucked ,,,file u have mentioned here to modify "erase" .. m not able to fing
dis file ,,not manually not by GUI....what to do please. help...
Reply

Samiran Samanta Friday, August 07, 2015 1:26:00 PM
Hello ! 
I have completed all the instruction as said and got % after entering ns. 
but after entering nam , it says dumped or something like that. How can I resolve ? 
Reply

Replies

moh awad Tuesday, August 25, 2015 9:38:00 PM
dawnload nam_1.15­10_i386

Reply

moh awad Monday, August 10, 2015 1:35:00 AM
thank you very very very much
Reply

moh awad Tuesday, August 25, 2015 9:37:00 PM
i cant remove ns from /user/local/bin 
pemishon denaid 
file protected
Reply

Aadil Agha Monday, September 14, 2015 3:21:00 PM
Hi Dhyan Singh 
I  am  getting  error  "package  gcc­4.4  has  no  installation  candidate"  when  i  entered  the
following command "sudo apt­get install gcc­4.4" 
kindly help me out. 
thanks
Reply

KINJAL SHAH Saturday, October 03, 2015 12:51:00 AM
Hey  
I am getting this error after ./validate 

These messages are NOT errors and can be ignored: 
warning: using backward compatibility mode 
This test is not implemented in backward compatibility mode 

validate overall report: some tests failed: 
./test­all­tcp  ./test­all­testReno  ./test­all­newreno  ./test­all­sack  ./test­all­tcpOptions  ./test­
all­tcpReset ./test­all­testReno­full ./test­all­testReno­bayfull ./test­all­sack­full ./test­all­tcp­
init­win  ./test­all­tcpVariants  ./test­all­LimTransmit  ./test­all­aimd  ./test­all­rfc793edu  ./test­

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 30/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
all­rfc2581 ./test­all­rbp ./test­all­tcpLinux ./test­all­frto ./test­all­ecn ./test­all­ecn­ack ./test­
all­ecn­full  ./test­all­quickstart  ./test­all­manual­routing  ./test­all­red  ./test­all­adaptive­red
./test­all­red­pd  ./test­all­rio  ./test­all­vq  ./test­all­rem  ./test­all­gk  ./test­all­pi  ./test­all­cbq
./test­all­schedule ./test­all­links ./test­all­oddBehaviors 
to re­run a specific test, cd tcl/test; ./test­all­TEST­NAME 

kindly help me out 
thanks
Reply

Bag Tuesday, October 27, 2015 11:43:00 PM
Hi...!! 
im  not  able  to  edit  ls.h  file...its  an  readonly  file  so  what  shall  i  do  to  make  it  writable  to
make necessary changes as stated above?  
Reply

Bouzidi Mustapha Monday, November 09, 2015 11:25:00 PM
Hi! thanks for evry thing ......I have ubuntu 15.10 desktop amd64 and ns2.35 i need help to
install it, so help me please.......THANKS 
Reply

Manju S Monday, November 16, 2015 11:47:00 AM
Can you please share steps to patch DTNAgent to ns2.35 ? Thanks in advance.
Reply

Danish Sameer Thursday, December 10, 2015 1:22:00 AM
Can anybody help me with these errors? This happened when i tried to validate  

validate overall report: some tests failed: 
./test­all­tcp  ./test­all­testReno  ./test­all­newreno  ./test­all­sack  ./test­all­tcpOptions  ./test­
all­tcpReset ./test­all­testReno­full ./test­all­testReno­bayfull ./test­all­sack­full ./test­all­tcp­
init­win  ./test­all­tcpVariants  ./test­all­LimTransmit  ./test­all­aimd  ./test­all­rfc793edu  ./test­
all­rfc2581 ./test­all­rbp ./test­all­tcpLinux ./test­all­frto ./test­all­ecn ./test­all­ecn­ack ./test­
all­ecn­full  ./test­all­quickstart  ./test­all­manual­routing  ./test­all­red  ./test­all­adaptive­red
./test­all­red­pd  ./test­all­rio  ./test­all­vq  ./test­all­rem  ./test­all­gk  ./test­all­pi  ./test­all­cbq
./test­all­schedule ./test­all­links ./test­all­oddBehaviors 
to re­run a specific test, cd tcl/test; ./test­all­TEST­NAME 

Reply

Mona Sayed Tuesday, December 15, 2015 11:56:00 PM
Hi 
I  installed  ns2.35  in  ubuntu  12.04  LTS.  It  works.  I  changed  the  type  of  DSR  cache  from
mobicache(the default cache) to linkcache. then recompile ns2. It gives me the following
error 
dsr/linkcache .cc: fatal error: list.h: no such file or directory. 
I used locate list.h and this is its directory 
/usr/src/linux­headers­3.2.0­29/include/linux/list.h 
I tried to pass this directory then use #include "list.h" but it doesn't work. it gives another
error  
poisson.h no such file or directory 
Please help me  
Reply

krishna kumar Wednesday, January 13, 2016 2:32:00 PM

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 31/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
hi, 
how to add leach protocol for ns2.35 in ubuntu 14.04 64 bit. 
please help 
Reply

Ram B. Agnihotri Thursday, January 14, 2016 9:23:00 AM
ram@ram­Lenovo­E40­70:~/Documents/ns­allinone­2.35/ns­2.35$  ns  mannasim­rede­
plana.tcl 
num_nodes is set 12 
warning: Please use ­channel as shown in tcl/ex/wireless­mitf.tcl 
INITIALIZE THE LIST xListHead 
invalid command name "EnergyModel/Battery" 
while executing 
"EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2" 
invoked from within 
"catch "$className create $o $args" msg" 
invoked from within 
"if [catch "$className create $o $args" msg] { 
if [string match "__FAILED_SHADOW_OBJECT_" $msg] { 
delete $o 
return "" 

global errorInfo 
error "class $..." 
(procedure "new" line 3) 
invoked from within 
"new $energyModel_ $node $initialEnergy_ $l1 $l2" 
invoked from within 
"if [info exists energyModel_] { 
if [info exists level1_] { 
set l1 $level1_ 
} else { 
set l1 0.5 

if [info exists level2_] { 
set l2 $level2_ 
} else {..." 
(procedure "_o3" line 115) 
(Simulator create­wireless­node line 115) 
invoked from within 
"_o3 create­wireless­node"
("eval" body line 1) 
invoked from within 
"eval $self create­wireless­node $args" 
(procedure "_o3" line 23) 
(Simulator node line 23) 
invoked from within 
"$ns_ node" 
(procedure "create_sink" line 8) 
invoked from within 
"create_sink" 
(file "mannasim­rede­plana.tcl" line 350) 
Reply

Pushpendra Kumar Thursday, January 28, 2016 11:41:00 AM
where do we find ./bashrc file?
Reply

Replies

Dhyan Singh Sunday, February 07, 2016 1:24:00 PM
Please refer step 3

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 32/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

Reply

kothapalli navaneetha Wednesday, February 17, 2016 4:49:00 PM
i am getting an error called cant open file or directory.what to do please reply
Reply

Aparna Prahlad Tuesday, March 01, 2016 11:19:00 AM
how can i intergrate realapp patch in ns2.33 
Reply

Mohamed Jaziri Monday, March 07, 2016 3:11:00 PM
after installation i set my library paths 
# LD_LIBRARY_PATH 
OTCL_LIB=/home/jaziri/ns­allinone­2.35/otcl­1.14/ 
NS2_LIB=/home/jaziri/ns­allinone­2.35/lib/ 
USR_LOCAL_LIB=/usr/local/lib/ 
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$USR_Local_LIB 

# TCL_LIBRARY 
TCL_LIB=/home/jaziri/ns­allinone­2.35/tcl8.5.10/library/ 
USR_LIB=/usr/lib/ 
export TCL_LIBRARY=$TCL_LIBRARY:$TCL_LIB:$USR_LIB 
  
# PATH 
XGRAPH=/home/jaziri/ns­allinone­2.35/xgraph­12.2/:/home/jaziri/ns­allinone­
2.35/bin/:/home/jaziri/ns­allinone­2.35/tcl8.5.10/unix/:/home/jaziri/ns­allinone­
2.35/tk8.5.10/unix/ 
NS=/home/jaziri/ns­allinone­2.35/ns­2.35/ 
NAM=/home/jaziri/ns­allinone­2.35/nam­1.15/ 
export PATH=$PATH:$XGRAPH:$NS:$NAM 

and save it and after that i give the following command
source ~/.bashrc 
it give the following error what can i do now plz give me quick reply 
jaziri@jaziri­virtual­machine:~$ source ~/.bashrc 
 : command not found
Reply

Dharmpal Tuesday, March 08, 2016 2:24:00 AM
After Validating I am getting error as follows:­ 

validate overall report: some tests failed: 
./test­all­tcp  ./test­all­testReno  ./test­all­newreno  ./test­all­sack  ./test­all­tcpOptions  ./test­
all­tcpReset ./test­all­testReno­full ./test­all­testReno­bayfull ./test­all­sack­full ./test­all­tcp­
init­win  ./test­all­tcpVariants  ./test­all­LimTransmit  ./test­all­aimd  ./test­all­rfc793edu  ./test­
all­rfc2581  ./test­all­rbp  ./test­all­frto  ./test­all­ecn  ./test­all­ecn­ack  ./test­all­ecn­full  ./test­
all­quickstart  ./test­all­manual­routing  ./test­all­red  ./test­all­adaptive­red  ./test­all­red­pd
./test­all­rio ./test­all­vq ./test­all­rem ./test­all­gk ./test­all­pi ./test­all­cbq ./test­all­schedule
./test­all­links ./test­all­oddBehaviors 
to re­run a specific test, cd tcl/test; ./test­all­TEST­NAME 

What do I do? 
My ubuntu version is 15.10. 
Please do reply and help!
Reply

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 33/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

Isti Dwi Hemawati Tuesday, March 15, 2016 11:07:00 AM
Hello, i have a problem when i run tcl script on ns, there is a text appear  
warning: using backward compability mode 
error when calling clas OldSim: x.tcl 
So, what should i do? Please help me
Reply

Arundhathi T Prabha Monday, March 21, 2016 9:49:00 PM
Worked perfectly on Ubuntu 15.04. Thank you..
Reply

Renita Blossom Monteiro Wednesday, March 23, 2016 2:22:00 PM
Thank you sir.You have explained very well about the installation.The installation worked
perfectly in Ubuntu 14.04 LTS.
Reply

Santosh Kumar Friday, April 08, 2016 8:21:00 PM
hello sir,  
could you please guide me regarding broadcasting in one hop neighbors in mobile ad hoc
networks. 
Reply

Yojana Singh Sunday, April 10, 2016 2:23:00 PM
hi. 
can you please tell me how to run xgraph?
Reply

AKASH GUPTA Monday, April 11, 2016 4:31:00 AM
thanks Mr. Dhyan singh. The steps are very explanatory. It worked really well for me
Reply

adil sheraz Monday, April 18, 2016 7:01:00 PM
Hi Sir, 
I have completed my installation, it gives the final reports which is basically some tests are
failed. the output is below 

These messages are NOT errors and can be ignored: 
warning: using backward compatibility mode 
This test is not implemented in backward compatibility mode 

validate overall report: some tests failed: 
./test­all­tcp  ./test­all­testReno  ./test­all­newreno  ./test­all­sack  ./test­all­tcpOptions  ./test­
all­tcpReset ./test­all­testReno­full ./test­all­testReno­bayfull ./test­all­sack­full ./test­all­tcp­
init­win  ./test­all­tcpVariants  ./test­all­LimTransmit  ./test­all­aimd  ./test­all­rfc793edu  ./test­
all­rfc2581 ./test­all­rbp ./test­all­tcpLinux ./test­all­frto ./test­all­ecn ./test­all­ecn­ack ./test­
all­ecn­full  ./test­all­quickstart  ./test­all­manual­routing  ./test­all­red  ./test­all­adaptive­red
./test­all­red­pd  ./test­all­rio  ./test­all­vq  ./test­all­rem  ./test­all­gk  ./test­all­pi  ./test­all­cbq
./test­all­schedule ./test­all­links ./test­all­oddBehaviors 
to re­run a specific test, cd tcl/test; ./test­all­TEST­NAME 

so how could i fix these failures. 
bundle of thanks!
Reply

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 34/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

Rushyanth Reddy Wednesday, April 20, 2016 9:18:00 PM
hi!! 
im  getting  the  same  error  as  that  is  in  the  screenshot  you  put  above.i  tried  the  things  u
asked me to do.but im still getting the same error 
Reply

‫ ~ﻋـﺑـﻳـﺭ‬Monday, April 25, 2016 11:32:00 AM
I got this error: 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ 
/home/aa/Documents/ns­allinone­2.35/tk8.5.10/unix/../generic/tk.h:76:23:  fatal  error:
X11/Xlib.h: No such file or directory 
compilation terminated. 
make: *** [tk3d.o] Error 1 
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ 
Any ideas?
Reply

aadil yousuf Tuesday, May 03, 2016 1:43:00 PM
rm:  cannot  remove  ‘/home/adil/Documents/ns­allinone­2.35/lib/libtcl8.5.a’:  Permission
denied 
mv:  cannot  stat  ‘/home/adil/Documents/ns­allinone­2.35/lib/#inst.32334#’:  No  such  file  or
directory 
ranlib: could not create temporary file whilst writing archive: No more archived files 
make: *** [install­binaries] Error 1 
tcl8.5.10 installation failed. 
Tcl is not part of the ns project. Please see www.Scriptics.com 
to see if they have a fix for your platform. 

how to overcome this error sir
Reply

mariem ben rekhissa Monday, August 08, 2016 3:23:00 AM
Hello  
I try to integrate mannasim with ns2.35 and when I run the command ./configure it shows
me this error "Installation of tcl seems incomplete orcan't be found automatically" So I fix it
with "./configure ­­with­tcl­ver=8.5" but unfortunetaly when I ran the command "make" I got
this  error  "No  rule  to  make  target  mannasim/accessPointApp.o,needed  by  'ns'.Stop"  So
what should I do? and thanks in advance
Reply

Adnan Jahangir Thursday, August 11, 2016 9:27:00 PM
Please  can  you  guide  me  if  i  want  to  install  some  earlier  release  of  NS­2  that  is  NS­
2.1b4.SO there will be same installation process or any other way please guide me. 
writetooadnan@gmail.com
Reply

Bhumika Parikh Wednesday, August 17, 2016 3:33:00 AM
Hi, 

I have extracted the tar of nsallinone­2.35.  
Downloaded  the  implementation  of  mptcp  from
https://code.google.com/archive/p/multipath­tcp/source/default/source. 
Copied the mptcp and mptcp­full files in ns­2.35/tcp and trace files in ns­2.35/trace. 
Made changes in Makefile accordingly. 

I then build/install the ns­2.35 using ./install command. Confiured and validated; everything

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 35/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
worked perfectly. 

But now when I execute the mptcp script, I get this error 

invalid command name "Agent/TCP/FullTcp/Sack/Multipath" 
while executing 
"Agent/TCP/FullTcp/Sack/Multipath create _o300 " 
invoked from within 
"catch "$className create $o $args" msg" 
invoked from within 
"if [catch "$className create $o $args" msg] { 
if [string match "__FAILED_SHADOW_OBJECT_" $msg] { 
delete $o 
return "" 

global errorInfo 
error "class $..." 
(procedure "new" line 3) 
invoked from within 
"new Agent/TCP/FullTcp/Sack/Multipath" 
invoked from within 
"set tcp0 [new Agent/TCP/FullTcp/Sack/Multipath]" 
(file "mptcp­sample.tcl" line 98) 

Please help me with it !! 

Thank you in advance. 

Reply

Kishalay Bairagi Thursday, October 06, 2016 2:02:00 PM
validate overall report: some tests failed: 
./test­all­tcpLinux 
to re­run a specific test, cd tcl/test; ./test­all­TEST­NAME 

what to do although I am getting the % sign?? 
Reply

Nelofar Aslam Thursday, November 24, 2016 9:34:00 PM
In file included from ./mdart/mdart.h:52:0, 

from ./mdart/mdart_adp.h:51, 

from mdart/mdart_adp.cc:47: 

./mdart/mdart_function.h:230:17:  
note: candidates are: nsaddr_t hash(nsaddr_t) 
inline nsaddr_t hash(nsaddr_t id) { 

^~~~ 
In file included from /usr/include/c++/6.2.1/bits/basic_string.h:5628:0, 

from /usr/include/c++/6.2.1/string:52, 

from /usr/include/c++/6.2.1/bitset:47, 

from ./mdart/mdart_function.h:62, 

from ./mdart/mdart.h:52, 

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 36/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)
from ./mdart/mdart_adp.h:51, 

from mdart/mdart_adp.cc:47: 
/usr/include/c++/6.2.1/bits/functional_hash.h:58:12: note: 
template struct std::hash 
struct hash; 

^~~~ 
Makefile:93: recipe for target 'mdart/mdart_adp.o' failed 
make: *** [mdart/mdart_adp.o]  
Error 1 
Ns make failed! 

I AM FACING ABOVE PROBLEM....
Reply

Nelofar Aslam Thursday, November 24, 2016 9:40:00 PM
In file included from ./mdart/mdart.h:52:0, 

from ./mdart/mdart_adp.h:51, 

from mdart/mdart_adp.cc:47: 

./mdart/mdart_function.h:230:17:  
note: candidates are: nsaddr_t hash(nsaddr_t) 
inline nsaddr_t hash(nsaddr_t id) { 

^~~~ 
In file included from /usr/include/c++/6.2.1/bits/basic_string.h:5628:0, 

from /usr/include/c++/6.2.1/string:52, 

from /usr/include/c++/6.2.1/bitset:47, 

from ./mdart/mdart_function.h:62, 

from ./mdart/mdart.h:52, 

from ./mdart/mdart_adp.h:51, 

from mdart/mdart_adp.cc:47: 
/usr/include/c++/6.2.1/bits/functional_hash.h:58:12: note: 
template struct std::hash 
struct hash; 

^~~~ 
Makefile:93: recipe for target 'mdart/mdart_adp.o' failed 
make: *** [mdart/mdart_adp.o]  
Error 1 
Ns make fail 

I AM FACING THIS PROBLEM....
Reply

Chirag Mishra Tuesday, December 20, 2016 9:21:00 PM
Hello 
while i'm running simple tcl file nam file is not generating 

please help me with this
Reply

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 37/38
2/8/2017 Install With Me !: How to Install NS­2.35 in Ubuntu­13.10 / 14.04 (in 4 easy steps)

rana Monday, January 09, 2017 4:39:00 PM
hii
i  am  not  able  to  copy  nam­1.14  from  desktop  to  usr/local/bin  and  dont  know  how  to  use
comand cdmod or cdowr plz help
Reply

Replies

Shabeer Ahmad Tuesday, January 24, 2017 11:16:00 AM
copying  name  from  desktop  to  your  desired  location  use  cp
/home/user_name/Desktop/nam­1.14 /usr/local/bin 

Reply

shabreen subhan Tuesday, January 10, 2017 3:18:00 PM
i need a package of AES in NS2.35....how can we include that package... pls help me
Reply

shabreen subhan Tuesday, January 10, 2017 3:19:00 PM
how can we include AES package in ns2.35.
Reply

Enter your comment...

Comment as:  Select profile...

Publish
  Preview

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

Copyright © 2017, Dhyan Singh under GNU GPLv2. Ethereal template. Powered by Blogger.

http://installwithme.blogspot.in/2014/05/how­to­install­ns­2.35­in­ubuntu­13.10­or­14.04.html 38/38

Вам также может понравиться