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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
03-24-2014, 08:10 PM
|
#1
|
Member
Registered: Mar 2014
Posts: 36
Rep: 
|
LTE Patch for NS-2
Hi guys
I want to run LTE simulations, NS-3 supports it. but for me I'm more familiar with NS-2.
so I read about patch which can solve the issue, so please can anyone answer my questions...
1- this patch is only for ns-2.33 ? (mine is 2.32)
2- can u please tell me how to install this patch (in details)
3- this patch works with both (32 bit & 64 bit)Ubuntu?
4- which version of Ubuntu is better to run LTE model?
5- Any body tried this patch on CentOS?
any help will be very appreciated.
thx a lot.
Last edited by Redsfan86; 03-25-2014 at 04:43 AM.
|
|
|
03-24-2014, 08:47 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Welcome to LQ.
(3) Generally : All ns2 is for a 32bits OS.
However, most versions ns-2.26 .. ns-2.35 will work with a 64bits OS.
But always with an inferior validate result.
Some of the extra added protocols (patches) will work with 64bits →
→ → Not LTE . Conclusion : Use a 32bits OS.
(1+3) LTE has so far only been tested with ns-2.33 .
** Some editing must be done to port LTE to a later version.
About ns-2.32 :
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 :
Never required !
(4) Any 32bits Ubuntu version will work with LTE.
(5) No doubt that LTE will also work with the 32bits CentOS 6.5 .
(2) Please see post #11 here, for a LTE build example ..
http://www.linuxquestions.org/questi...5-a-933953/#11
* For CentOS the export command is : $ export CC=gcc34 CXX=g++34
LTE info at LQ http://www.linuxquestions.org/questions/tags/lte/
-
|
|
|
03-24-2014, 09:43 PM
|
#3
|
Member
Registered: Mar 2014
Posts: 36
Original Poster
Rep: 
|
Thank you for ur warm welcome
and thanks a lot for ur quick response ....
Are DCCP and SCTP for LTE Model supported for this patch ?
again thx a lot
|
|
|
03-26-2014, 01:03 AM
|
#5
|
Member
Registered: Mar 2014
Posts: 36
Original Poster
Rep: 
|
thanks
I will apply ur steps,hopefully everything will go right
thank u very much
|
|
|
03-31-2014, 02:39 AM
|
#6
|
Member
Registered: Mar 2014
Posts: 36
Original Poster
Rep: 
|
something went wrong with me....
I coppied these commands:
**************
--- generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100
+++ generic/tk.h 2008-07-24 08:21:46.000000000 +0200
@@ -635,17 +635,15 @@
*
*---------------------------------------------------------------------------
*/
-#define VirtualEvent (LASTEvent)
-#define ActivateNotify (LASTEvent + 1)
-#define DeactivateNotify (LASTEvent + 2)
-#define MouseWheelEvent (LASTEvent + 3)
-#define TK_LASTEVENT (LASTEvent + 4)
+#define VirtualEvent (MappingNotify + 1)
+#define ActivateNotify (MappingNotify + 2)
+#define DeactivateNotify (MappingNotify + 3)
+#define MouseWheelEvent (MappingNotify + 4)
+#define TK_LASTEVENT (MappingNotify + 5)
#define MouseWheelMask (1L << 28)
-
#define ActivateMask (1L << 29)
#define VirtualEventMask (1L << 30)
-#define TK_LASTEVENT (LASTEvent + 4)
/*
*************
then i put it in new document called: tk-8.4-lastevent.patch
then I put this file in a new folder which I renamed it to:
tk8.4.18
*************
after this I apllied the patch and thats what I've got:
*************
~/ns-2/ns-2.33/allinone/tk8.4.18$ patch -p0 < tk-8.4-lastevent.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- generic/tk.h.orig 2008-02-06 16:31:40.000000000 +0100
|+++ generic/tk.h 2008-07-24 08:21:46.000000000 +0200
--------------------------
File to patch:
*************
so plz .... any help to avoid this error ?
thx a lot
|
|
|
03-31-2014, 03:21 AM
|
#7
|
Member
Registered: Mar 2014
Posts: 36
Original Poster
Rep: 
|
also I read that I have to install subversion and libapache2-svn....
as I understood, this step comes befor patching step...
but also I got this error when I run this command: apt-get install subversion
the error:
***********
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
***********
so any idea for this error & the previous one ?
thanks a lot
|
|
|
03-31-2014, 03:37 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 6 .
"tk-8.4-lastevent.patch" is used when you want to build "nam".
No reason to do that. Install `nam' as a binary (package).
Which OS are you using ? ?
? What's the reply from this command : $ uname -m
? What is the name and version of your OS ?
-
|
|
|
03-31-2014, 04:20 AM
|
#9
|
Member
Registered: Mar 2014
Posts: 36
Original Poster
Rep: 
|
I use ubuntu 12.04 (32 bit)
NS-2.33
? What's the reply from this command : $ uname -m
I don't know which path i should run this command
Last edited by Redsfan86; 03-31-2014 at 04:23 AM.
|
|
|
03-31-2014, 04:24 AM
|
#10
|
Member
Registered: Mar 2014
Posts: 36
Original Poster
Rep: 
|
I tried this method to patch lte:
Steps to patch lte-model into NS2
1) Install subversion and libapache2-svn
apt-get install subversion
apt-get install libapache2-svn
2) Download the patch tk-8.4-lastevent.patch from the next link: http://code.google.com/p/gentoo-chin.../files/?r=1417
3) Put the patch into the directory: ns-allinone-2.33/tk8.4.18/
4) Follow the next instructions
cd ns-allinone-2.33/tk8.4.18/
patch -p0 < tk-8.4-lastevent.patch
cd ../
./install
cd ns-2.33/ && mv ns ns233 && make clean && mv Makefile Makefile.org
svn checkout http://lte-model.googlecode.com/svn/trunk/ lte-model-read-only
mkdir project
cd lte-model-read-only/
sh checkin
cd ../
./configure
make clean
make ()
make install
|
|
|
03-31-2014, 04:41 AM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 10 : Mostly wrong.
If you want a result that works, use {new bullet proof build method}.
Read post #2 → → the link http://www.linuxquestions.org/questi...5-a-933953/#11
-
|
|
|
03-31-2014, 04:45 AM
|
#12
|
Member
Registered: Mar 2014
Posts: 36
Original Poster
Rep: 
|
ok tnaks a lot
Last edited by Redsfan86; 03-31-2014 at 04:55 AM.
|
|
|
03-31-2014, 04:48 AM
|
#13
|
Member
Registered: Mar 2014
Posts: 36
Original Poster
Rep: 
|
but Im really sorry to bother u again
but plz can u tell me the instruction (step by step)
the instruction there is not clear to me
Last edited by Redsfan86; 03-31-2014 at 04:51 AM.
|
|
|
03-31-2014, 04:52 AM
|
#14
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 13 .
Please open a terminal, and type : uname -m
... And then show the reply in a new post.
|
|
|
03-31-2014, 04:56 AM
|
#15
|
Member
Registered: Mar 2014
Posts: 36
Original Poster
Rep: 
|
Quote:
Originally Posted by knudfl
# 13 .
Please open a terminal, and type : uname -m
... And then show the reply in a new post.
|
I got "i686"
|
|
|
All times are GMT -5. The time now is 01:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|