running of tcl error
hi have change the makefile n try to recompile by
PHP Code:
PHP Code:
source of code: http://nile.wpi.edu/NS/linkage.html invalid command name "Agent/MyAgentOtcl" while executing "Agent/MyAgentOtcl create _o3 " invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Agent/MyAgentOtcl" invoked from within "set myagent [new Agent/MyAgentOtcl]" (file "ex-linkage.tcl" line 5) |
One more time http://linuxsilo.net/docs/smart-questions_en.html
For every question, tell what you use: ? ns-allinone-2.34, Ubuntu 10.04 Lucid 64bits ? And please edit post #1 to use code tags. Has also been explained to you a couple of times. http://nile.wpi.edu/NS/ is not a link to any code. It's a front page. Please show a download link for the code. "Agent/MyAgentOtcl" is an inside command in the binary 'ns'. Either the 'ns' is compiled wrongly. Or it is used from a wrong location. .. |
Quote:
okie, the link is http://nile.wpi.edu/NS/linkage.html i m using ns-allinone-2.34, Ubuntu 10.04 LTS |
# 3.
Ubuntu 10.04, the required information is : Ubuntu 10.04 , 64bits. Or Ubuntu 10.04 , 32bits. The command 'uname -a' will tell if you have "x86_64". It appears that the "linkage files" work OK in ns-2.34 http://www.linuxquestions.org/questi...mple-851790/#2 So I don't know, why your errors occurs. Post #1 : 'make install' : Why ? Should be : 'mv ns ns.org && make clean && make'. .. |
Linux wee-desktop 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
i have try using "mv ns ns.org && make clean && make" but still having post #1 error. however when i need to type sudo to permit clean, is that the reason why i m still having problem? |
# 5.
When sudo is required : Either ns-allinone-2.34/ is in a wrong directory. Or some other commands have been executed with sudo, thus changing the permissions. ns-allinone-2.34/ must have a location like /home/tootz/ns2/ns-allinone-2.34/. ( Or some other folder in /home/tootz/.) And please never use any 'sudo <commands>' with ns-allinone. Exception : sudo cp ns* /usr/local/bin/ and sudo cp nam /usr/local/bin/. .. |
i place my ns-2.34 in /usr/local/ns-allinone-2.34/ns-2.34 directory.
is it okie to place it there? or it is in the wrong directory? |
# 7.
Using /usr/local/ is asking for trouble. '/home/<user-name>/tmp/' or any other folder in '/home/<user-name>/' always works. |
okie, thanks alot,
but how come i can pass all my validation test? what is the issue in installing in /usr/local? do you have any trustable website on how to install ns-2.34? sorry 1 more question, how to check the path of ns-2.34 is taking? and how do we edit it? |
Quote:
* Insecure : sudo is required. And sudo is for administrative tasks only. I.e. using sudo is meant to be an exception. Not for commands, that the unprivileged user could easily do. Path : Install (copy) ns* and nam to /usr/local/bin/. Set an LD_LIBRARY_PATH to /home/<name>/ns2/ns-allinone-2.34/lib: /home/<name>/ns2/ns-allinone-2.34/otcl-1.13: /home/<name>/ns2/ns-allinone-2.34/tclcl-1.19, like the documentation says. ( The path will be shown, when ./install has finished.) Quote:
.. |
okie. i have installed my ns-2.34 in /home/wee/ns-allinone-2.34
however in /allinone-2.34/ns-2.34, when i "make" this error shows /usr/bin/ld: ns: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make: *** [ns] Error 1 kindly guide me along thanks |
#11 : There is no "make". ( And no "make install".) :
cd ns-allinone-2.34/ && ./install Can you see, which application is making the errors ? Looks like ns-allinone-2.34/ns-2.34 ? I don't think I have seen an error like that ever with ns-2.34. http://www.linuxquestions.org/questi...612/page2.html #19 No errors with ns-allinone-2.34 on my two Ubuntu 10.04 systems, but the again, I didn't do any updates. Which compiler are you using ? 'g++ --version' will show. .. |
Quote:
Ns-allinone package has been installed successfully. Here are the installation places: tcl8.4.18: /home/wee/ns-allinone-2.34/{bin,include,lib} tk8.4.18: /home/wee/ns-allinone-2.34/{bin,include,lib} otcl: /home/wee/ns-allinone-2.34/otcl-1.13 tclcl: /home/wee/ns-allinone-2.34/tclcl-1.19 ns: /home/wee/ns-allinone-2.34/ns-2.34/ns nam: /home/wee/ns-allinone-2.34/nam-1.14/nam gt-itm: /home/wee/ns-allinone-2.34/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns surprisingly in cd /home/wee/ns-allinone-2.34/ns-2.34, when i 'make clean' and 'make' again there is no error. my compiler is: wee@wee-desktop:~$ g++ --version g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3 when i 'echo $PATH' this appears /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ns-allinone-2.34/bin:/usr/local/ns-allinone-2.34/tcl8.4.18/unix:/usr/local/ns-allinone-2.34/tk8.4.18/unix:/usr/local/ns-allinone-2.34/ns-2.34/:/usr/local/ns-allinone-2.34/nam-1.14/:/home/wee/ns-allinone-2.34/bin:/home/wee/ns-allinone-2.34/tcl8.4.18/unix:/home/wee/ns-allinone-2.34/tk8.4.18/unix:/home/wee/ns-allinone-2.34/xgraph-12.1/:/home/wee/ns-allinone-2.34/ns-2.34/:/home/wee/ns-allinone-2.34/nam-1.14/ i have deleted the path of /usr/local/ns-allinone-2.34, but how come is it still here? as for the post #1 error, i tried to compile it again, but the error pops up again... 1) i saved the ex-linkage.cc, ex-linkage.tcl in '/home/wee/ns-allinone-2.34/ex-linkage' folder 2) i added in 'ex-linkage/ex-linkage.o \' in the make file. 3) 'make clean' && 'make' but i still couldnt get the result in #3 did i miss any steps? sorry i packed all e info in 1 post.... could anyone advice, thank you |
Quote:
And : An extra unused path is not important, shouldn't do any harm. If you want to add ex-linkage, this will do : ns-allinone-2.34/ns-2.34/ex-linkage.cc ns-allinone-2.34/ns-2.34/ex-linkage.tcl The above location is the proof one, no folder "linkage" is required. A directory linkage/ will probably work too, must be inside 'ns-2.34/'. .. |
omg!i m still have the error in #1.try to put ex-linkage.tcl in /ns/ns-2.34 and
i have done everything u have told me to, is there ways to troubleshoot? help me i m lost! |
All times are GMT -5. The time now is 02:08 AM. |