LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." (http://www.linuxquestions.org/questions/linux-newbie-8/ns-error-when-calling-class-oldsim-and-tclsh-invalid-command-child-process-exits-abn-709325/)

shojaru 03-05-2009 04:23 AM

ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn."
 
i have just installed ns 2.33 on ubuntu8.04.02LTS.

in bashrc,i edited library with the following lines:"
#LD_LIBRARY_PATH
......
export LD_LIBRARY_PATH=$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
#TCL_LIBRARY
......
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
#PATH
......
PATH=$PATH:$XGRAPH:$NS:$NAM

"
but when I type
%ns myscript.tcl
it says "error when calling class OldSim:myscript.tcl"

if I type %tclsh myscript.tcl
it says:
"invalid command name "new"
while executing "new simulator"
invoked from within "set ns [new simulator]" (file"myscript.tcl line2)
child process exited abnormally "

please tell me what can i do now.....I am a newbie and sorry for stupid questions if it annoys the advanced user ..:$


All times are GMT -5. The time now is 08:41 AM.