LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2016, 03:21 AM   #1
dindatasya
LQ Newbie
 
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
Why do i get these error when running leach protocol on ns-2.35? what should i do to fix it?


Hi,

I am trying to run leach protocol on ns2.35 using ubuntu 14.04 as platform.
I get an error when i try to execute the code leach_test in leach.err:

couldn't read file "/home/spc/ns-allinone-2.35/ns-2.35/mit/uAMPS/": illegal operation on a directory
while executing
"source.orig /home/spc/ns-allinone-2.35/ns-2.35/mit/uAMPS/"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /home/spc/ns-allinone-2.35/ns-2.35/mit/uAMPS/"
(file "/home/spc/ns-allinone-2.35/ns-2.35/tcl/mobility/leach.tcl" line 7)
invoked from within
"source.orig /home/spc/ns-allinone-2.35/ns-2.35/tcl/mobility/leach.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source /home/spc/ns-allinone-2.35/ns-2.35/tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)

Why does this happen? and how can i fix this?
Thank you so much in advance

Best Regards,
Dinda

Last edited by dindatasya; 02-14-2016 at 03:28 AM.
 
Old 02-14-2016, 05:02 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Do these files exist?
 
Old 02-27-2016, 08:44 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
couldn't read file "/home/spc/ns-allinone-2.35/ns-2.35/mit/uAMPS/"
Simple : You have a typo in one of the connected configuration files,
which you edited to /home/spc/ns-allinone-2.35/ns-2.35/*/*
 
  


Reply

Tags
leach, leach ns235, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with running leach protocol in ns2.34 leach.er Mohamed69 Linux - Software 14 04-16-2018 07:10 AM
How to solve error in leach.err file while running leach code in ns-2.35? Kausha LinuxQuestions.org Member Intro 1 01-18-2016 03:07 AM
Invalid Command Resource/Energy while running leach protocol on ns2.34 celiajohn Linux - Newbie 1 11-12-2015 05:37 AM
i m getting error while running leach protocol in ns2.34 kunal0807 Linux - Wireless Networking 1 05-08-2014 07:49 AM
[SOLVED] Running leach protocol on ns2 !! errors !! shanky Linux - Networking 6 07-08-2013 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration