Shaili Desai wrote: > Hi all > > I installed NS-allinone-2.29 on FC4 and set the path variables too.I did set > it after installation and now have edited in the bashrc file too. But when > running example1a.tcl from ns-allinone-2.29 directory it gives me the > following error: > > > 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" > Dont know what can be the problem? Do I need some link to nam in > ns-allinone-2.29/bin the way we have working softlink of ns?? > > In my bashrc file which is /etc/bashrc, I have following lines added: > export NS_PATH=/root/ns-allinone-2.29/bin:/root/ns-allinone-2.29 > /tcl8.4.11/unix:/root/ns-allinone-2.29 > /tk8.4.11/unix:/root/tracegraph/tracegraph202 > export LD_LIBRARY_PATH=/root/ns-allinone-2.29/otcl- > 1.11:/root/ns-allinone-2.29/lib > export TCL_LIBRARY=/root/ns-allinone-2.29/tcl8.4.11/library > > And I did source ~/.bashrc after editing the bashrc file. > Can someone please tell me whether am I doing the right steps or am missing > out on something. > > Thanks in advance. >
The problem is that nam is not in your executable path, which can be remedied by adding its directory to your PATH variable: export PATH=${PATH}:/root/ns-allinone-2.29/ns-1.11/ or put it in the bin/ directory as you suggest. (by the way, I would recommend to use ns as a non-root user). Tom