Linux - SoftwareThis 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.
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,520
Rep:
Post #1 shows that you are not building "ns-hls".
The build instructions, post #23 here .. http://www.linuxquestions.org/questi...526/page2.html
I.e. for a 32bits Ubuntu version 11.04 .. 13.10 it is :
a) $ cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-2.33-hls.patch
b) $ tar xvf hls-files-ns233.tar.gz && cd ../
c) $ export CC=gcc41 CXX=g++41 && ./install
Then : $ cd ns-2.33/
$ cp ns ns-hls (Or whatever <ns-new-name> you want.)
$ sudo cp ns-hls /usr/local/bin/
... Only then you are sure using the right "ns<-??>".
Run the simulation with $ ns-hls ssoumayaa.tcl
.. etc. etc. from the examples, gpsr-hls-examples-0113.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing
dear I use the ubuntu 12.04 and the ns-2.33 and I implement many examples in ns if you like to see the result of the example I ready to sent it for you. I need only to skip this problem
muthana@muthana:~/Desktop$ ns hls.tcl
invalid command name "Agent/GPSR"
while executing
"Agent/GPSR set bdesync_ 0.5 "
(file "hls.tcl" line 6)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
Rep:
# 5 .
Quote:
.. I implement many examples in ns ..
I know , I read all the ns2 posts.
""invalid command name "Agent/GPSR" : Means you are using a wrong 'ns'.
If you build more than one ns2-<version>, or two times ns-2.33,
you will have to use a copy of the executable 'ns' with a new name. Read post #4.
* There can only be one file by name 'ns' : /usr/local/bin/ns
* You can of course use $ ./ns file.tcl , if 'ns' is the right version.
""invalid command name "Agent/GPSR" : Can also mean a failed build.
There is no other way than the method in post #4.
The package 'hls-files-ns233.tar.gz' must be used, to fill in the files
that the unreliable "Ubuntu patch command" misses.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
Rep:
# 7 .
Which command are you using for the simulation ?
? $ ns-hls ssoumayaa.tcl ? Or ?
? Do you use 'ns' as plain $ ns <file>
* Please don't do that.
* Did you ever add any *PATH text to .bashrc ? → Delete, please. Never required.
Anyway, you do not have to build ns2 with gpsr-hls.
( You don't actually build all the other applications, that you use in Ubuntu.)
Just install the package 'gpsr-hls-2.33-ubuntu10_i386.deb' , 4.5 MB http://www.ijceronline.com/papers/Vo...O023704711.pdf
.. which works with all 32bits Ubuntu versions 10.04 ... 13.10 .
Dear Sir for patch I did this steps
Applying the patch
----------------------
Copy the following files into your "ns-allinone2.33/ns-2.33/" directory:
- ns-2.33-hls-patch.sh
- ns-2.33-hls.patch
- ns-2.33-hls.Makefile.patch
Change to your "ns-allinone2.33/ns-2.33/" directory.
Execute the patch:
[you@ns-2.33]$ ./ns-2.33-hls-patch.sh
patching file common/agent.h
patching file common/ip.h
...
without this
For fresh install (if you didn't install ns2 yet),
change to your "ns-allinone2.33" directory and install it:
[you@ns-allinone2.33]$ ./install
Else, stay in your "ns-2.33" directory to 'make clean' and 'make':
[you@ns-2.33]$ make clean
[you@ns-2.33]$ make
Done!
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
and my path is
There would be no reason to invent the new method, if the old one still worked with Ubuntu.
And : The old 1997..1999 text ""Please put .. /You must put ... /"IMPORTANT NOTICES:" /""
makes no sense :
The executable 'ns' is now (at least since ns-2.26) hard coded to know the library locations,
... and xgraph never builds in ns2 , and nam probably fails, etc. etc.
A successful ns2-hls build : Read post #4 : "The method that never fails".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.