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 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
# 1
Quote:
invalid command name "Agent/GPSR"
Looks like no gpsr was compiled.
Intended objects : ns-2.34/gpsr/ gpsr.o gpsr_sinklist.o gpsr_neighbor.o
... May be you forgot to edit the Makefile.in ?
hi,
I 'm switching to ns2.33 on my ubuntu 11.04 and I did install the ns and olsr patch. when i try with hls patch
this error is provided:
configure: error: in `/home/../ns-allinone-2.33/tcl8.4.18/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
tcl8.4.18 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
hi
I did the following steps:
1) cd ns-allinone-2.33/ns-2.33 && tar xvf hls-files-ns233.tar.gz
2) patch -p1 < ns2-hls-patch/ns-2.33-hls.patch
3) export CC=gcc41 CXX=g++41 && ./install
I get this message:
common/packet.h: In static member function ‘static void p_info::initName()’:
common/packet.h:398: erreur: ‘PT_LOCS’ was not declared in this scope
common/packet.h:401: erreur: ‘PT_HLS’ was not declared in this scope
common/packet.h:404: erreur: ‘PT_GPSR’ was not declared in this scope
make: *** [common/scheduler.o] Erreur 1
Ns make failed!
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
# 6
Quote:
1) cd ns-allinone-2.33/ns-2.33 && tar xvf hls-files-ns233.tar.gz
2) patch -p1 < ns2-hls-patch/ns-2.33-hls.patch
The package hls-files-ns233.tar.gz was used to "repair"
a failed patching in Ubuntu 10.04 :
#23 http://www.linuxquestions.org/questi...526/page2.html
.. And must be used in the opposite order than your command :
patch -p1 < ns-2.33-hls.patch && tar xvf hls-files-ns233.tar.gz
... Probably not required for Ubuntu 11.04 .
hi, my os is ubuntu 11.04 and I 'm working on ns2.33
i did install the um-olsr patch and it works fine
i just install the hls patch and it works fine too
but when i re-test the olsr i get error
num_nodes is set 5
(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
GPSR {
set ragent [$self create-gpsr-agent $node]
}
DSR {
$self at ..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $opt(nn)} {incr i} {
set node_($i) [$ns_ node]
}"
(file "olsr_example2.tcl" line 94)
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
# 8
One patch will add changes to some files, say
common/packet.h queue/priqueue.h queue/priqueue.cc
tcl/lib/ns-lib.tcl tcl/lib/ns-default.tcl tcl/lib/ns-packet.tcl .
And the next patch may undo those first changes,
and even add something that conflicts with
the functions intended in the first patch.
A few patches are meant to live together.
Or at least have no conflicts.
Most others not.
-
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
# 11
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add any of them to a *PATH.
Examples :
/home/<user/a/ns-allinone-2.34/
/home/<user/b/ns-allinone-2.34/
/home/<user/c/ns-allinone-2.34/
/home/<user/x/ns-allinone-2.33/
/home/<user/y/ns-allinone-2.33/
The binary **-ns** packages mentioned (#3) use another location
to be system wide. Like /usr/local/lib/gpsr-hls/ns-allinone**/(bin/)(lib/),
/usr/local/lib/gpsr-KeLiu/ns-allinone**/(bin/)(lib/).
Conclusion : Not limits for the number of installed ns2** versions.
hi knudfl
thkx for your quick reply
just you always mention "do not dd to * PATH"
I'm not sure what do you mean? I don't know how to avoid such thing? is there a special command ?
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
# 13
Quote:
do not add any of them to a *PATH.
It's a common thing that ns2 paths are added to the '.bash_profile'.
.. And please do not do so, when you have more than one ns2 install.
Besides that it is not required :
The executable 'ns' is hard coded to know the locations of its libraries.
All "ns" can just be copied to /usr/local/bin/ ,
with recognizable naming like /usr/local/bin/ns-hls, /usr/local/bin/ns-gpsr-keliu,
etc. etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.