- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help and Guidance on Cygwin and ns2 ›
- Executing .tcl
I have installed ns-allinone-withpath-2.34 on a Windows XP sp2 using cygwin but when i run any example programe like ns simple.tcl it gives me
$ ns ns-simple.tcl …
bash: ns: command not found
well i dont think it is path problem
Any help ?
Thanks
payal
After successful installation, edit the .bash_profile with the following values – then only the commands ns nam and xgraph will work) [you can find the file under /home/username/ directory]
Here I am giving the profile setting for ns2.28.
You have to change the version number and folder name according to your installation.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ns-allinone-2.28/otcl-1.9:/ns-allinone-2.28/lib:/root/bin/glnx86/
TCL_LIBRARY=/ns-allinone-2.28/tcl8.4.5/library
PATH=$PATH:$HOME/bin:/ns-allinone-2.28/bin:/ns-allinone-2.28/tcl8.4.5/unix:/ns-allinone-2.28/tk8.4.5/unix
export USERNAME BASH_ENV PATH LD_LIBRARY_PATH TCL_LIBRARY
hi, I edited my .bash_profile file with code given by u , still i am getting same error.
I had installed ns2 2.34 , with cygwin . My ns _allinone_ 2.34 is located at e:/usr/local/ns_allinone_2.34. Is this can be problem ? Is there any specified directory for ns2 ? I am having window xp sp2 in same drive .
“LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ns-allinone-2.28/otcl-1.9:/ns-allinone-2.28/lib:/root/bin/glnx86”
I edited version like 2.34, 1.13 for this line but didnot get corect editinf for :/root/bin/glx86 ….
plz help me …… ❓
regard
payal