error in leach installation in ns2.35

825 views
Skip to first unread message

Sreelakshmi T R

unread,
Mar 29, 2017, 12:56:25 PM3/29/17
to Network Simulator 2 (NS2)
i have installed leach (MIT uAMPS) in ns2.35 as in http://www.nsnam.com/2015/05/leach-protocol-installation-in-ns2-ns.html.
But i got errors as
 

 Installing libtcl8.5.a to /home/user/Documents/ns-allinone-2.35/lib/
cp: cannot create regular file ‘/home/user/Documents/ns-allinone-2.35/lib/#inst.4936#’: Permission denied
rm: cannot remove ‘/home/user/Documents/ns-allinone-2.35/lib/libtcl8.5.a’: Permission denied
mv: cannot stat ‘/home/user/Documents/ns-allinone-2.35/lib/#inst.4936#’: 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.
user@user-Satellite-C660:~/Documents/ns-allinone-2.35$ 


.Anybody know the solution ??

knudfl

unread,
Mar 29, 2017, 2:43:06 PM3/29/17
to Network Simulator 2 (NS2)
Hi.

Your errors :
Looks like you unpacked ns-allinone.2.35.tar.gz by using 'sudo tar xvf ns-allinone.2.35.tar.gz'.
( 'sudo' will prevent the build / the install :
No user write access to ns2 files, folders : Permission denied.)
.. Or may be you used a Windows© tool for the unpack ? Will also create an impossible situation.


* The MIT Leach ( The Pradeepkumar update ) : The build example  is in post #11 here ...
http://www.linuxquestions.org/questions/linux-software-2/issue-in-leach-protocol-installation-invalid-command-name-resource-energy-4175556129/#11
A well tested patch is used, an updated version of ns-allinone.2.35 is used !

* The script that converts 'leach.alive' to an Xgraph file :  post #9 ....
http://www.linuxquestions.org/questions/linux-software-2/issue-in-leach-protocol-installation-invalid-command-name-resource-energy-4175556129/#9

$ awk -f leach__nodes-alive.awk leach.alive >> leach.alive.txt

$ xgraph leach
.alive.txt -bg white


------------------

knudfl

unread,
Mar 29, 2017, 2:49:01 PM3/29/17
to Network Simulator 2 (NS2)
A comment to your off topic questions in other threads ...

The MIT Leach source code can be found in the 'mit/' folder.

-------------------------------------------------------------------------


On Wednesday, March 29, 2017 at 6:56:25 PM UTC+2, Sreelakshmi T R wrote:

Sreelakshmi T R

unread,
Mar 29, 2017, 3:04:12 PM3/29/17
to ns-u...@googlegroups.com
sir,
 Thank you so much for your reply. But as i am new to ns2, am not much aware of these commands. What can i do next for clear this error?

--
You received this message because you are subscribed to a topic in the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-users/L5M2vwuybLU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.



--
THANKS AND REGARDS 
     SREELAKSHMI T R

knudfl

unread,
Mar 29, 2017, 3:37:50 PM3/29/17
to Network Simulator 2 (NS2)
Hi.

A failed build of ns-allinone.2.35 :  Not to be used any more, please delete → →
sudo rm -rf ns-allinone.2.35/
( sudo is suggested in case you unpacked with 'sudo'.)


... And please follow the new instructions
 tar xvf ns-allinone-2.35_gcc482.tar.gz
 https
://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing
(ns-allinone-2.35_gcc482 is the Oct 2014 update, for all gcc/g++ versions 4.4 - 5.2)
 cd ns
-allinone-2.35/
 tar xvf leach_ns235_Oct2015
.tar.gz
 
( Or : $ patch -p0 < leach_ns235-Jun2015.patch )
 
./install
 cd ns
-2.35/
 sudo make install
 
./leach_test

  •  Warning :
  • The latest compilers from Ubuntu may not work with ns2, i.e. g++-6 and the latest update of g++-5.


-------------------------------------------------------
To unsubscribe from this group and all its topics, send an email to ns-users+u...@googlegroups.com.

To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.

Sreelakshmi T R

unread,
Mar 30, 2017, 1:24:03 AM3/30/17
to ns-u...@googlegroups.com
can anybody give me the steps to install leach in ns2.35

To unsubscribe from this group and all its topics, send an email to ns-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.

knudfl

unread,
Mar 30, 2017, 1:20:42 PM3/30/17
to Network Simulator 2 (NS2)
@Sreelakshmi T R :    

 ? What is your issues with this procedure ...
http://www.linuxquestions.org/questions/linux-software-2/issue-in-leach-protocol-installation-invalid-command-name-resource-energy-4175556129/#11

One information is missing from you : Your OS name and version.
( The Pradeepkumar Leach requires a 64bits Linux OS.)

------------------------

Sreelakshmi T R

unread,
Mar 30, 2017, 1:36:43 PM3/30/17
to ns-u...@googlegroups.com
sir,
  My ubuntu version is 64 bit  14.04
Am having the doubt that whether i have to un install the current ns2.35 and install the file as your reply.


To unsubscribe from this group and all its topics, send an email to ns-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.

knudfl

unread,
Mar 30, 2017, 2:22:48 PM3/30/17
to Network Simulator 2 (NS2)
@Sreelakshmi T R :      OK, Ubuntu 14.04 - 64bits.

It's a little more complicated to use the old 2011 version of ns-allinone.2.35 :
... Older compilers must be installed, and a more complex "install command" used.

The later ns-allinone-2.35_gcc482.tar.gz can use the system g++/gcc.
So it is simply ....
./install

Conclusion : Please use ns-allinone-2.35_gcc482.tar.gz .

------------------------------------

knudfl

unread,
Apr 1, 2017, 12:47:40 PM4/1/17
to Network Simulator 2 (NS2)
@Sreelakshmi T R : 

Ref. your questions in other threads.  Which issues have you got ?

Note : You will of course have to copy the patch to ns-allinone-2.35/ , to use it.
(ref. http://www.linuxquestions.org/questions/linux-software-2/issue-in-leach-protocol-installation-invalid-command-name-resource-energy-4175556129/#11 ).

-------------------------------------

Shabeer Ahmad

unread,
Jan 21, 2018, 3:33:26 AM1/21/18
to Network Simulator 2 (NS2)
Hii  Sir Knud Larsen

I m facing problems in  executing the attached tcl for sensor using leach protocol in ns-2.35
test.tcl
mannasim error.PNG

knudfl

unread,
Jan 21, 2018, 7:59:16 AM1/21/18
to Network Simulator 2 (NS2)
@Shabeer Ahmad ,   Hi.             MannaSim

Please do never show text as an image.
I guess you know how to copy-paste a text to a file / to an empty file / to this very editor.

Your error : Just a couple of guess...
? May be you found the only OS that cannot do ns2 / mannasim ?
Or you could have a failed build ?

$ ns235-mannasim Sha_leach-test.tcl
Initializing MannaSim Script...
.
.
Node 19 sending 100 data to BS at time 1.992005
Error: Meta size 4064 too large (max = 1000).
... The file trace.tr 2.1MB is created.

The full text output (47988 lines) is here ....
https://drive.google.com/file/d/1n0KZDFlfUnEWhJlnT6nBXF12FvI_B2ic/view?usp=sharing

My tests were done with four OS.  Same text output from all. Trace file smaller with Ubuntu 10.10.
64bit :  PCLinuxOS 2017 - 64
64bit :  Ubuntu 16.04 - amd64
32bit :  Ubuntu 16.04 - i386
32bit :  Ubuntu 10.10 - i386

Files created with MannaSim will often have to be edited.
* Meta size 4064 too large :   Please edit "some setting".

Mannasim Howto, example : paultsr version
tar xvf ns-allinone-2.35-mannasim-patched.tar.gz
https
://drive.google.com/file/d/1106o4dL_QrS27KG48k8wpckzwe4gSocs/view?usp=sharing
cd ns
-allinone-2.35/
./install
cd ns
-2.35/
cp ns ns235
-mannasim
sudo cp ns235
-mannasim /usr/local/bin/

Note : test.tcl is a generic name. Please use a unique name for a new file.
All ~3000 names.tcl https://drive.google.com/file/d/0B7S255p3kFXNWUxzQ09uclA4TjQ/view?usp=sharing
Tree  https://drive.google.com/drive/folders/0B7S255p3kFXNSmRYb2lGcDRUdWs?usp=sharing

Jyoti Rungta

unread,
Jan 23, 2018, 2:43:38 PM1/23/18
to Network Simulator 2 (NS2)
Hi,

Just wanted to follow up on your post on network group.

We are professional in devloping NS2, Ns3, Matlab, Java, and .Net project. Below are the few video link sample for ns2 project for your reference

https://www.youtube.com/user/TechnoZonk

Let us know if you want to develop project

thanks
jy...@technozonk.com
Message has been deleted

ikram ikramou

unread,
Nov 20, 2018, 1:49:01 PM11/20/18
to Network Simulator 2 (NS2)
Dear Knudfl,

I encounter huge difficulties to patch GPSR for ns 2.35 ubuntu 12.04 knowing that I have followed several tutorial including yours and this for over a month, I am completely blocked.

and at the same time tell me how many files must be generated in the directory gpsr (after the patch) because on my side I managed to have only gpsr.cc and gpsr.h? and when I run an example gpsr.tcl several errors appear ...

if I turned to you it is because you are my last chance to solve this problem. your help will help me to catch up on all this delay that I am undergoing and to advance in my implementation, I still have plenty of work to do. help me please, I really need it!

Hoping to have a positive echo from you, with all my anticipated thanks.
yours faithfully

CHERIFI Ikram
email: cherif...@outlook.com
 tel : +213552 35 44 55
4.PNG
Capture.PNG
Capture 2.PNG
Capture 3.PNG
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages