LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   add new patch in ns2 error (https://www.linuxquestions.org/questions/linux-software-2/add-new-patch-in-ns2-error-4175494924/)

morzana 02-14-2014 11:48 AM

add new patch in ns2 error
 
Dear all;
i try to install fhmip patch in ns2 which is correctly installed and also works correctly with me ; the problem is ... when i install the patch then make clean ; make . it seems ok .but ns xxx.tcl gives error (wrong node routing agent) . i try different patches with different versions of ns but failed . i really need help .

i do not know where is the error because all above steps did not give me error message at all!!!

i download this patch from www.pudn.com

knudfl 02-14-2014 12:57 PM

FHMIP info http://www.linuxquestions.org/questions/tags/fhmip/

Other patches #3 http://www.linuxquestions.org/questi...-4175479853/#3

A few patches can be installed to the same ns2. But most will conflict.
Or must be edited to be used together in one ns2.

The good news : You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But : Do not add any *PATH text to .bashrc .

If you want answers for your errors, you will have to specify OS + ns2 version(s)
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
I.e. OS Name / version / architecture : $ uname -m <Enter>
.. And the full name of the patches to be added, like "ns2.31_fhmip.patch.gz" etc.

-

morzana 02-14-2014 11:31 PM

fatma@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"
=====
fatma@ubuntu:~$ uname -a
Linux ubuntu 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux
====
ns-2.31 installed
&&&&&
the other versions is :
zahra@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.04
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="Ubuntu 13.04"
=====
zahra@ubuntu:~$ uname -a
Linux ubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
=====
ns-2.31 installed

&&&&&&&
i have installed fhmip with two ways
1)manually using FHMIP1.3.1 file i have downloaded from www.pudn.com
2)ns2.31_fhmip.patch.gz

shazadahmed89 02-15-2014 02:12 AM

i am new in linux kindly help me. how can i install vlc player with the help of rpm. (not yum)

shazadahmed89 02-15-2014 02:34 AM

how to mount nfts files in linux

knudfl 02-15-2014 02:42 AM

Posts #4 and #5, @shazadahmed89.

Please do not use a thread started by another LQ member to ask your off topic questions.
Read the rules http://www.linuxquestions.org/linux/rules.html
"ensure that what you're posting is on-topic and relevant to the thread."

Start a new thread http://www.linuxquestions.org/questions/linux-newbie-8/ > New Thread.

-

knudfl 02-15-2014 03:17 AM

@morzana.

The file ns-2.31/tcl/ex/fhmip/fhmip_simula.tcl, from ns2.31_fhmip.patch.gz
.. will work OK : $ ns fhmip_simula.tcl
.. when the executable 'ns' is built with ns-2.31 / ns2.31_fhmip.patch.
Files created from fhmip_simula.tcl: traffic.nam 47MB and traffic.tr 33MB.
$ nam traffic.nam : OK.

A random file xxx.tcl (ref. post #1) may not work at all.

-

knudfl 02-15-2014 06:42 AM

# 3 .
Quote:

I have installed fhmip with two ways
1)manually using FHMIP1.3.1 file i have downloaded from www.pudn.com
2)ns2.31_fhmip.patch.gz
Which patch in which OS ?
Or were both patches added to both OS ? ( They may conflict.)

About "pudn FHMIP1.3.1" : Please make a folder with the files,
and upload the folder.tar.gz to 'Google Drive', and post a link.


About post # 3 :
You can watch here how simple and elegant the text will be, when you use the two commands,
a) cat /etc/issue
b) uname -m
#7 http://www.linuxquestions.org/questi...-4175494785/#7
..... No reason to post a lot of output, that nobody cares to read.
Name + version + architecture will do.

-

morzana 02-15-2014 12:11 PM

results reached fhmip
 
@knudfl
i follow all your advice . the result is fhmip_simula.tcl works but after hashing # the following commands and give me nam and trace
#[$PAR set regagent_] priority 3
#[$NAR set regagent_] priority 4

#$ns_ attach-mapagent $MAP
#$ns_ connection-monitor 1 $MN

what to do???????

perl fhmip_plot_seq.pl traffic.tr
after executing the above command it give 8 identical graphs recv1.log

does it mean noah installed without hmip

morzana 02-15-2014 12:14 PM

results reached
 
traffic.nam 70.5MB
traffic.tr 49.9MB
after hashing commands as said before in the brevious post

morzana 02-21-2014 11:44 AM

after the last result i mention before i got result then i try to re run again but it does not work ... what should i do?????
i really need this project
the second question >> how to disable or enable code in mip-reg.cc

thanks in advance

morzana 02-21-2014 11:46 AM

[QUOTE=knudfl;5118146]# 3 .

please knudfl help me in tis project tell me what to do

morzana 02-21-2014 12:14 PM

export CC=gcc34 CXX=g++34


how to install gcc34 on ubuntu
from downloading to install i'm new to linux

knudfl 02-21-2014 12:50 PM

# 13 .

The most used for Ubuntu 12.10 - i686 is gcc41 / g++41
( export CC=gcc41 CXX=g++41 )
The gcc34/g++34 is primarily used in Fedora, as it is in the repo.

Ubuntu 12.10 , post #3 here
http://www.linuxquestions.org/questi...-4175450625/#3
.. and post # 47 here
http://www.linuxquestions.org/questi...532/page4.html
$ sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb

Why do you want gcc34/g++34 ? ?


Remark, ref. post #8 : Please uload the "pudn FHMIP1.3.1" code.


-

morzana 02-21-2014 01:56 PM

here is the link ..

but i'm sorry i did not read the link you quire to upload till today , i did not know i cause latency to my self
https://drive.google.com/#my-drive

the reason i use gcc is (export CC=gcc34 CXX=g++34) this in the link you have sent to me

http://www.linuxquestions.org/questi...s2-4175461377/

also when install an error message arise regarding gcc


All times are GMT -5. The time now is 03:35 PM.