If you are tearing your hair out trying to figure out why trying to run something is complaining that it doesn’t exist when it clearly does, this is quite possibly your solution.
The problem is most likely that you are trying to run a 32bit package on a 64bit system.
The solution is easy enough, you need to set up your system to run 32bit packages.
apt-get install libc6-i386 lib32gcc1 lib32z1 lib32stdc++6 ia32-libs

I install the ns2 into ubuntu,when I type ns in, % will come up,and I install the nam also,the path is right,but if I type ns /ns-allinone-2.34/ns-2.34/tcl/ex/simple.tcl ,I can’t see the picture,it only appear no such file or directory,I can’t success by your methors,I should try new sources?
Hi Zhangfengyu,
I tried to install ns2.35 on ubuntu 12.04, I have the same error no such file or directory when I type this command.
How did you solve your problem ?
Thanks for your help
Hi. I am trying to install ns2.35 allinone in ubuntu 12.04 32 bit which is running on a 64 bit machine. Do you have a guide on how i could do this? I am having problems when trying to install packages because it states that the packages cannot be located