Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Post #30, @yotta15 : Ubuntu 10.10
The correct procedure is in post #26.
So it is not "patch -p1 < .." but p0. And in "ns-allinone-2.33/", please. Not ns-2.33*.
After renaming back to "ns-2.33" you will have : ns-allinone-2.33/ns-2.33/mobiwan/.
And can rebuild ns-2.33/ with :
export CC=gcc41 CXX=g++41 && ./configure && make clean && make
$ ns233-mobiwan simple-mipv6.tcl : Works perfectly.
There is a binary package for Ubuntu 10.10 now : mobiwan-ns-2.33-u1010_i386.deb https://docs.google.com/open?id=0B7S...VdJaVBLdlhqZW8
.. Provides /usr/local/bin/ ns233-orig ns233-mobiwan
( The libraries etc. for the binaries are in /usr/local/lib/mobiwan/** ).
Install : sudo dpkg -i mobiwan-ns-2.33-u1010_i386.deb
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add anything to .bashrc, .bashprofile.
Random example :
Installing two times ns-2.33, ns-2.31, ns-2.34 etc. etc. is no problem.
Yes. Very few ns2 patches can live together.
Solution : Install two times ns-2.33.
The LTE patched ns-2.33 : Save a copy of the binary 'ns' as ns-lte.
The mobiwan patched ... : Save an ns copy as ns-mobiwan.
Then you can use each for the lte / mobiwan dedicated tcl files.
.
is this mean that i cannot make a simulation that run both of mip and LTE simultaneously at one tcl script?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 34 .
Quote:
.. cannot make a simulation that run both of mip and LTE simultaneously
It means that the patches may conflict.
I.e. LTE will make changes to some files : Please read the script 'checkin'.
The unknown <mip>, be it ns-2.33-mobiwan-an-110617.patch, ns2.31_fhmip.patch.gz
or <??.patch> may then undo those changes, or make conflicting changes.
If you have succeeded an install with combined patches,
you may also be able to run some combined simulations.
i try to install mip using ns-233-mobiwan-1.patch
i already follow the step from post #26
but i still got this error messege when try to run simple3_mipv6.tcl
invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple3_mipv6.tcl" line 4)
can anyone help me how to fix it?
oh and when i tried to do make clean and then make again this error messege appear
trace/trace.cc: In static member function "static int Trace::get_seqno(Packet*)':
trace/trace.cc:201: error: 'PT_BU' was not declared in this scope
trace/trace.cc:201: error: 'PT_BU_HA' was not declared in this scope
trace/trace.cc:201: error: 'PT_BU_CN' was not declared in this scope
trace/trace.cc:202: error: 'PT_BU_BS' was not declared in this scope
trace/trace.cc:202: error: 'PT_BACK' was not declared in this scope
trace/trace.cc:202: error: 'PT_BREQ' was not declared in this scope
trace/trace.cc:202: error: 'PT_RADS' was not declared in this scope
make: *** [trace/trace.o] Error 1
i don't really understand it's meaning... what should i do?
Last edited by cio; 05-11-2013 at 03:26 AM.
Reason: adding more error messege that i get
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 36 .
Which OS are you using ? : 1) $ cat /etc/*release* <Enter>
2) uname -m <Enter>
"simple3_mipv6.tcl" : Unknown file. Please attach as simple3_mipv6.tcl.txt :
Attachments : The paper clip tool in the 'Advanced Editor'.
The install command for {ns-2.33 / ns-233-mobiwan-1.patch} is like :
$ cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-233-mobiwan-1.patch
$ cd ../ && export CC=gcc41 CXX=g++41 && ./install
1.) cat: /etc/release: no such file or directory
2.) i686
but in post #31 you said it was p0 not p1
so which one is right? patch p1 or patch p0?
i follow the istalation step from post #26
but it's from ns-2.33-allinone not from ns-2.33
i just don't get it...
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 38 .
Sorry, it's : $ cat /etc/*release* <Enter>
! And : Please answer the question : Which OS are you using ? Name and version, please.
$ patch -p0
$ patch -p1
... It's just two different commands for the two location choices :
ns-allinone-2.33/ or ns-allinone-2.33/ns-2.33/ : Both work OK.
i've tried both of them patch p0 on ns-2.33-allinone and p1 on ns-2.33
but still get this error messege
invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple3_mipv6.tcl" line 4)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 10 : Ubuntu 11.04 ...
Installed in one of the right ways : No errors, simple3_mipv6.tcl.
tar xvf ns-allinone-2.33.tar.gz ; cd ns-allinone-2.33/ns-2.33/ ;
patch -p1 < ns-233-mobiwan-1.patch ; cd ../ ;
export CC=gcc41 CXX=g++41 && ./install
For an existing ns-2.33 : cd ns-allinone-2.33/ns-2.33/ ;
patch -p1 < ns-233-mobiwan-1.patch ; make clean ;
export CC=gcc41 CXX=g++41 && ./configure ; make ;
cp ns ns-mobiwan ( To have a backup, and to be sure the right ns is used.)
$ ./ns-mobiwan simple3_mipv6.tcl : Works perfectly, and nam opens.
The compilers gcc41, g++41 : Post #31.
You can also install the package mobiwan-ns-2.33-u1010_i386.deb (6MB): Post #31.
Providing /usr/local/bin/ ns233-mobiwan ns-orig
.. To do $ ns233-mobiwan simple3_mipv6.tcl : Also perfect.
couldn't read file "/home/c11/Desktop//ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl": no such file or directory
while executing
"source.orig /home/c11/Desktop//ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.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/c11/Desktop//ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl"
(procedure "main" line 6)
invoked from within
"main"
(file "simple3_mipv6.tcl" line 191)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.