LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-13-2012, 02:14 AM   #16
masju
Member
 
Registered: Mar 2012
Posts: 35

Rep: Reputation: Disabled

Hi Satyaveer thanks a lot.
Hi Knudfl thank you very much.
I have downloaded nam-1.14 for 64-bit as my laptop architecture x86_64. I have run the nam file out.nam using that and it is working. Now I have to analyse the trace file. If I need then I will ask you for further help. Thank you once again for your help.
 
Old 04-16-2012, 07:11 AM   #17
fabe856
Member
 
Registered: Apr 2012
Posts: 99

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Unpack nam-1.14.<arch>.tar.gz, and copy 'nam' to /usr/local/bin/ .
.
i can't find /usr/local.
There are various bin directories.

Also plz tell how to start a new thread in this discussion, as i m new to it.
Thanks.
 
Old 04-16-2012, 07:33 AM   #18
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Dehradun, Uttarakhand, India
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,413

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Quote:
i can't find /usr/local.
There are various bin directories.
There can't be same named bin directories in /usr/local directory. Check again there will be only bin named directory.

Quote:
Also plz tell how to start a new thread in this discussion, as i m new to it.
First click on Forums, then several forums will be listed under Linux Forums section, then you can choose the forum according to your question, like if you want to post software question then you can choose Linux - Software forum, if you want to post a hardware related question then you can choose Linux - Hardware forum, like this.
 
Old 04-16-2012, 07:41 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 17, @fabe856

Fedora : Please use these commands ...
1) su <password>
2) cp nam /usr/local/bin


Starting a new thread :
http://www.linuxquestions.org/questi...ux-software-2/ >>> New Thread

.
 
Old 05-23-2012, 03:02 AM   #20
ilyas3169
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
can anybody tell location of "handler.h" file in ns2.35 hierachy, thank you

@knudfl

I got similar problem to that was faced by masju,, but knudfl suggestion has done the job for me. but i am not able to find location fo 'handler.h' include file in ns2.35 header files hierachy,,, if anybody can guide, thank you ,,, prayers...

i am working on implementing a new energy aware routing protocol in ns2.35 using fedora 16 platform...

ilyas

Quote:
Originally Posted by knudfl View Post
#5 , @masju.

Fedora : # yum install compat-gcc-34-c++


Please start from scratch with a new unpacked ns-allinone-2.33.tar.gz :

cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install

.
 
Old 05-23-2012, 03:37 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 20, @ilyas3169 : Welcome to LQ.
Quote:
.. not able to find location for 'handler.h' include file in ns2.35 header files hierarchy
find ns-allinone-2.35/ -name "*handler.h"
./tclcl-1.20/iohandler.h
./ns-2.35/common/timer-handler.h
...... No "handler.h" in any ns-allinone-2.xx.
Is it common/timer-handler.h , that you want to use ? ?

.
 
Old 05-23-2012, 05:32 AM   #22
ilyas3169
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
attached please find the snapshot of compilation errrors that I get!!

@knudfl,,

thank you


Quote:
Originally Posted by knudfl View Post
# 20, @ilyas3169 : Welcome to LQ.

find ns-allinone-2.35/ -name "*handler.h"
./tclcl-1.20/iohandler.h
./ns-2.35/common/timer-handler.h
...... No "handler.h" in any ns-allinone-2.xx.
Is it common/timer-handler.h , that you want to use ? ?

.

Last edited by ilyas3169; 05-23-2012 at 07:17 AM.
 
Old 06-20-2012, 03:09 AM   #23
jamesjiangqian
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by monikagoyal View Post
hi

Problem is solved
Patch of ns2.33 was implemented successfully.
hls.tcl file is running as required.
Now i have to analyse it.
Does anyone have analysed this file.
I have awk file to generate throughput and end to end delay bt both are not working for this patch.
Hope someone must have done this.
Plz help

Thanks Satyaveer Arya

Hi Monikagoyal,

I am new to ns2 and also want to do some modify work on the gpsr protocl.
However, I can not find the source code and hard to begin.
Could you please send the source code of grsr to me? Thank you.
My email address is: jamesjiangqian@gmail.com
Thank you again.
 
Old 03-16-2013, 01:27 PM   #24
linuxuday
Member
 
Registered: Mar 2013
Posts: 31

Rep: Reputation: Disabled
I am getting same error as in #1 of this thread.
Person who opened this thread had got the solution but didn't tell us how, what exactly she did, what was causing this problem.

If anybody could let me know what to do for this error, it'll be great help.

Thanks.
 
Old 03-16-2013, 02:41 PM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 24 .

Quite simple. The wrong location is being used for applying the patch.

Please show 1) your location : That's the 'pwd' command.
2) The patch command that you used.


Note. For the #1 referred GPSR-hls, please see post # 23 here
http://www.linuxquestions.org/questi...526/page2.html
>>> cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch

-
 
Old 03-17-2013, 05:56 AM   #26
linuxuday
Member
 
Registered: Mar 2013
Posts: 31

Rep: Reputation: Disabled
I don't think I am in wrong directory..
I'm using it as shown below, please let me know what wrong step am I doing here!?

'pwd' gave the following path : /usr/src/ns-allinone-2.33/ns-2.33
(patch file, 'ns-2.33-hls.patch' is present at this location.)

and I am using the command, "patch -p1 < ns-2.33-hls.patch" which is giving the following error output,
Code:
"patch: **** rejecting target file name with ".." component: ../ns-2.33-hls_working/ns-2.33/common/agent.h"
In the downloaded patch file there is another patch file "ns-2.33-hls.Makefile.patch" on running this with same command as above results in,
Code:
patch: **** rejecting target file name with ".." component: ../ns-2.33-hls_working/ns-2.33/Makefile
 
Old 03-17-2013, 07:04 AM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 26 : Which OS are you using ?

Anyway, it's a well known fact that this patch fails on some OS.
Hence the package "hls-files-ns233.tar.gz"
→ #23 → http://www.linuxquestions.org/questi...526/page2.html
>>> https://docs.google.com/open?id=0B7S...alV2SGhJdk1hQQ

So you can just do : $ tar xvf hls-files-ns233.tar.gz,
which will put all the edited/patched files into the right locations.

-

Last edited by knudfl; 03-17-2013 at 07:06 AM.
 
Old 03-17-2013, 01:31 PM   #28
linuxuday
Member
 
Registered: Mar 2013
Posts: 31

Rep: Reputation: Disabled
#27

I am running NS2.33 on Fedora17.

As you said this patch is not working on some OS, not working on Fedora17 but working on older version of fedora. (Fedora7)
I have used the "hls-files-ns233.tar.gz" as you suggested, did not work for me. I get same kind of error. Anyway, I could run it on fedora7.

Thanks for your timely replies.
 
Old 03-17-2013, 02:17 PM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# 28.
Quote:
I am running ns-2.33 on Fedora17.
# yum install gcc-c++ compat-gcc-34-c++


Quote:
I have used the "hls-files-ns233.tar.gz" as you suggested, did not work for me.
The install command is :
cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install

If you reconfigure in ns-allinone-2.33/ns-2.33/, the command is :
export CC=gcc34 CXX=g++34 && ./configure && make clean && make

-
 
Old 04-26-2013, 12:32 PM   #30
soumyabansal
LQ Newbie
 
Registered: Apr 2013
Posts: 23

Rep: Reputation: Disabled
I have installed ns-2.33 on ubuntu 12.04 and while applying the gpsr patch with it this error is coming. I think it is because of 64 bit machine. Please tell me how to make gpsr run on 64 bit ubuntu 12.04. Its very urgent. Please help

In file included from locservices/locservice.h:22:0,
from locservices/ls_queued_timer.cc:23:
./mobile/god.h: In member function ‘void DHeap::copy(DHeap*)’:
./mobile/god.h:196:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
locservices/ls_queued_timer.cc: In member function ‘void QueuedTimer:rintQueue()’:
locservices/ls_queued_timer.cc:307:86: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
locservices/ls_queued_timer.cc: In member function ‘void TimerHeap::removeElem(int)’:
locservices/ls_queued_timer.cc:373:12: warning: statement has no effect [-Wunused-value]
locservices/ls_queued_timer.cc: In member function ‘void TimerHeap:rintTable()’:
locservices/ls_queued_timer.cc:472:69: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
make: *** [locservices/ls_queued_timer.o] Error 1
 
  


Reply

Tags
gpsr, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 01:09 AM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 06:53 PM
Need some ns2 code Raijin Linux - Newbie 3 11-15-2011 06:53 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 04:39 AM


All times are GMT -5. The time now is 07:10 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration