LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Code of GPSR for ns2.33 or ns2.35 (https://www.linuxquestions.org/questions/linux-software-2/code-of-gpsr-for-ns2-33-or-ns2-35-a-938857/)

masju 04-13-2012 01:14 AM

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.

fabe856 04-16-2012 06:11 AM

Quote:

Originally Posted by knudfl (Post 4651230)
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.

Satyaveer Arya 04-16-2012 06:33 AM

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.

knudfl 04-16-2012 06:41 AM

# 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

.

ilyas3169 05-23-2012 02:02 AM

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 (Post 4650251)
#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

.


knudfl 05-23-2012 02:37 AM

# 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 ? ?

.

ilyas3169 05-23-2012 04:32 AM

attached please find the snapshot of compilation errrors that I get!!
 
@knudfl,,

thank you


Quote:

Originally Posted by knudfl (Post 4685405)
# 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 ? ?

.


jamesjiangqian 06-20-2012 02:09 AM

Quote:

Originally Posted by monikagoyal (Post 4650031)
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.

linuxuday 03-16-2013 12:27 PM

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.

knudfl 03-16-2013 01:41 PM

# 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

-

linuxuday 03-17-2013 04:56 AM

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

knudfl 03-17-2013 06:04 AM

# 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.

-

linuxuday 03-17-2013 12:31 PM

#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.

knudfl 03-17-2013 01:17 PM

# 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

-

soumyabansal 04-26-2013 11:32 AM

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::printQueue()’:
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::printTable()’:
locservices/ls_queued_timer.cc:472:69: error: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
make: *** [locservices/ls_queued_timer.o] Error 1


All times are GMT -5. The time now is 08:14 PM.