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.
Hi , i desinstall ns2.34 and i want to reinstall again so i was follow your step
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ patch -p0 < lwx+LTE+dccp+MPTCP.patch
$ export CC=gcc41 CXX=g++41 && ./install
and with this patch i add another patch for wimax "wimax-awg26_ns235.patch"
but when i install ns2.34 this erreur was showen
common/packet.h: In static member function ‘static void p_info::initName()’:
common/packet.h:402: error: ‘PT_WIMAXBS’ was not declared in this scope
make: *** [common/scheduler.o] Error 1
Ns make failed!
* I guess that `wimax-awg' would be critical,
doesn't work together with some other protocols.
So I tested with :
$ ./ns test-be-mod.tcl 1 2 http//www.tivoli.dk 500
.. Looks OK, out_mod_2.res 2.2MB was created.
.. The others, LTE, DCCP, MPTCP are for you to test .. .
So I tested with :
$ ./ns test-be-mod.tcl 1 2 http//www.tivoli.dk 500
.. Looks OK, out_mod_2.res 2.2MB was created.
.. The others, LTE, DCCP, MPTCP are for you to test .. .
-
where can i find this example of wimax that you tested ?
I will test the ather protocols think you very much
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← #7.
After doing ....
$ cd ns-allinone-2.34/
$ ...
$ zcat Wimax.awg+lte+dccp+mptcp_ns234.patch.gz | patch -p0
.. then you have ns-allinone-2.34/ns-2.34/test-be-mod.tcl
.. and ns-allinone-2.34/ns-2.34/tcl/wimax/{more simulation}
I also tested some { DCCP, LTE, MPTCP } simulation :
They are working OK,
with the executable 'ns-Wimax.awg+lte+dccp+mptcp'.
I'm also make sure that ather perotocols working well .
But when i execute test-be-mod.tcl the file out_mod_2.res was not created and this message was showen on terminal
Wrong Number of Arguments! No arguments in this topology
Syntax: ns test-be.tcl seed diuc dl/ul distance
expected integer but got "(1)"
while executing
"exit (1)"
invoked from within
"if {$argc != 4} {
puts ""
puts "Wrong Number of Arguments! No arguments in this topology"
puts "Syntax: ns test-be.tcl seed diuc dl/ul dis..."
(file "test-be-mod.tcl" line 35)
enven i execute one of the examples under wimax . i simulate wimax1.tcl the out.res file was created but it's umpty
can you tell me where isthe problem please ?
Last edited by nassou19891; 11-05-2014 at 04:08 PM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← #11 .
Quote:
invalid command name "Mac/802_16"
? Are you doing $ ns file.tcl ?
You are supposed to do either of 1) and 2) :
1) In the Wimax.awg+lte+dccp+mptcp_ns234.patch.gz patched ns-2.34/:
$ ./ns file.tcl
Or 2) $ ns-new.name file.tcl
Please read my posts : ./ns
.. and
$ cp ns ns-Wimax.awg+lte+dccp+mptcp
$ sudo cp ns-Wimax.awg+lte+dccp+mptcp /usr/local/bin/
.. to do $ ns-Wimax.awg+lte+dccp+mptcp file.tcl
I.e. when you already have one 'ns',
then another one must be named ns-<any-name>.
Remark : You are not supposed ever to add any "ns2" *PATH to .bashrc.
That's meant only for a "University Computer".
(Or "other computer", where you have no write permissions to /usr/).
P.S. : I just repeated #6, with another new ns-allinone-2.34 :
$ ./ns test-be-mod.tcl 1 2 http//www.tivoli.dk 500 : No issues !
-
You cannot execute a text-file.tcl.
Tcl files are interpreted by the executable 'ns* '.
-
Please can you explain to me this point !!!
also , when i try to execute this command $ patch -p0 < otcl_ns234_gcc-4.4.patch
this message was showen
patching file _p0
Hunk #1 FAILED at 13.
1 out of 1 hunk FAILED -- saving rejects to file _p0.rej
is it mean that is not patched or what ?
I follow the steps that you are mention but when i execute the final step this message was showen
bash: export: `=g++-4.4': not a valid identifier
I do the command to instal g++-4.4 $ sudo apt-get install g++-4.4
it tell me that is already the newest verion
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++-4.4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 651 not upgraded
what should i do please ??
Last edited by nassou19891; 11-06-2014 at 09:23 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.