(12) To check whether ns is installed successfully or not, test it by entering $ns

If you are prompted with %, it means your installation is successful otherwise check your environment variables, specifically compare the versions of otcl, nam etc in ./bashrc with those in your ns-allinone-2.34.