Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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-15-2014, 03:33 PM
|
#31
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 28 .
Quote:
Hunk #3 FAILED at 99.
.
.
root@asma-HP-ProBook-4520s:/home/asma/Desktop/work#
|
You are not supposed to use root to build applications, in /home/name/.
`root' is for administrative purposes only !
One command can be done with sudo (or root) : make install
.. All other ns2 commands must be done as ordinary user.
Read the above thread : All the $ <some-command> means you do not use root.
I.e. '$' is the user commands prompt, '#' is the root prompt.
-
Last edited by knudfl; 03-15-2014 at 03:35 PM.
|
|
|
03-15-2014, 03:36 PM
|
#32
|
Member
Registered: Mar 2014
Posts: 30
Rep:
|
sir i got this error
root@asma-HP-ProBook-4520s:/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/myevalvid2# ns-myevalvid2 be_a01.tcl
ns-myevalvid2: command not found
root@asma-HP-ProBook-4520s:/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/myevalvid2# ns be_a01.tcl
warning: no class variable Agent/myUDP: acketSize_
see tcl-object.tcl in tclcl for info about this warning.
9.9689999999999994
warning: no class variable Tracefile::debug_
see tcl-object.tcl in tclcl for info about this warning.
300 records
|
|
|
03-15-2014, 03:38 PM
|
#33
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 32 .
A warning is not an error. A warning is "an informative text" only.
|
|
|
03-15-2014, 04:15 PM
|
#34
|
Member
Registered: Mar 2014
Posts: 30
Rep:
|
Sir
Here are the installation places:
tcl8.4.5: /home/asma/Desktop/work/ns-allinone-2.28/{bin,include,lib}
tk8.4.5: /home/asma/Desktop/work/ns-allinone-2.28/{bin,include,lib}
otcl: /home/asma/Desktop/work/ns-allinone-2.28/otcl-1.9
tclcl: /home/asma/Desktop/work/ns-allinone-2.28/tclcl-1.16
ns: /home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/ns
please what should i do to change it to the root diractory like you said to me .thank you sir for help.
|
|
|
03-15-2014, 04:30 PM
|
#35
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 34 .
Post #31 says "no root".
And you cannot move anything.
The executable 'ns' (and copies of ns) is hard coded to find libraries in
/home/asma/Desktop/work/ns-allinone-2.28/lib/ , and tcsh* in
/home/asma/Desktop/work/ns-allinone-2.28/bin/.
"Hard coded to find libraries and tcsh" also means,
that writing *PATH's into .bashrc makes no sense.
-
|
|
|
03-15-2014, 04:42 PM
|
#36
|
Member
Registered: Mar 2014
Posts: 30
Rep:
|
am sorry i was wrong sir ;
ok so now what is the reason of this warningroot@asma-HP-ProBook-4520s:/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/myevalvid2# ns-evalvid be_a01.tcl
warning: no class variable Agent/myUDP: acketSize_
see tcl-object.tcl in tclcl for info about this warning.
9.9689999999999994
warning: no class variable Tracefile::debug_
see tcl-object.tcl in tclcl for info about this warning.
300 records
root@asma-HP-ProBook-4520s:/home/asma/Desktop/work/ns-allinone-2.28/ns-2.28/myevalvid2# ns-evalvid be_a01.tcl
warning: no class variable Agent/myUDP: acketSize_
see tcl-object.tcl in tclcl for info about this warning.
9.9689999999999994
warning: no class variable Tracefile::debug_
see tcl-object.tcl in tclcl for info about this warning.
300 records
|
|
|
03-15-2014, 06:01 PM
|
#37
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 36 .
Quote:
.. what is the reason of this warning ..
|
I have no idea. Lots of simulations will display similar warnings.
They can usually be ignored.
|
|
|
03-15-2014, 06:16 PM
|
#38
|
Member
Registered: Mar 2014
Posts: 30
Rep:
|
i checket ns-defaul.tcl file and it missed
Agent/myUDP set packetSize_ 1000
Tracefile set debug_ 0
! i should add it and make clean;make ns2.28.
|
|
1 members found this post helpful.
|
03-16-2014, 05:49 AM
|
#39
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 38 : ns-defaul.tcl : Thank you.
Code:
Agent/myUDP set packetSize_ 1000
Tracefile set debug_ 0
Please attach your `ns-defaul.tcl' as 'ns-default.tcl.txt'.
Attachments : The paper clip tool in the 'Advanced Editor'.
( Only suffix .txt will do for a text file.)
Then I will make up a new patch "myevalvid2-ns228-patching -1.tar.gz",
to replace the old "myevalvid2-ns228-patch.tar.gz" ,
originally made from the @johnli files, post #42 →
http://www.linuxquestions.org/questi...965/page3.html
-
|
|
|
03-16-2014, 07:27 AM
|
#40
|
Member
Registered: Mar 2014
Posts: 30
Rep:
|
|
|
1 members found this post helpful.
|
03-16-2014, 09:09 AM
|
#41
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 40 : Thank you. Works perfectly.
A new "patch package", 'myevalvid2-ns228-patching-1.tar.gz' can be found here ..
https://drive.google.com/file/d/0B7S...it?usp=sharing
-
|
|
|
03-16-2014, 10:16 AM
|
#42
|
Member
Registered: Mar 2014
Posts: 30
Rep:
|
plesae sir i have a probleme when i execute a simple ns .tcl
ns ns-simple.tcl
CBR packet size = 1000
CBR interval = 0.0080000000000000002
ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"
i dont change the path as u advice me
|
|
|
03-16-2014, 10:44 AM
|
#43
|
Member
Registered: Mar 2014
Posts: 30
Rep:
|
sir i make updates in ns-defaultcl file and i execute those commande /configure
make clean ;make
and when i run the simple example of evalvid ns-evalvid be_a01.tcl to test always the same warning!
warning: no class variable Agent/myUDP: acketSize_
see tcl-object.tcl in tclcl for info about this warning.
9.9689999999999994
warning: no class variable Tracefile::debug_
see tcl-object.tcl in tclcl for info about this warning.
300 records
root@as
|
|
|
03-16-2014, 10:49 AM
|
#44
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 43 .
Be sure that you make a copy of the new 'ns' to e.g. 'ns-myevalvid2-1'
.. and $ sudo cp ns-myevalvid2-1 /usr/local/bin/
* The simulation $ ns-myevalvid2-1 be_a01.tcl
Code:
[knudfl@localhost myevalvid2]$ ns-myevalvid2-1 be_a01.tcl
9.9689999999999994
300 records
-
Last edited by knudfl; 03-16-2014 at 10:59 AM.
|
|
|
03-16-2014, 11:09 AM
|
#45
|
Member
Registered: Mar 2014
Posts: 30
Rep:
|
i have ns-evalvid in usr/local/bin
the problem is when i update the ns-default.tcl
ns not considered the changes
|
|
|
All times are GMT -5. The time now is 06:14 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.
|
Latest Threads
LQ News
|
|