Ns Command Not Found Error
Contents |
[ subject ] [ author ] Hi Yu Yang, ns command not found cygwin You didn't properly set your PATH variable. To assert ns
Bash Ns Command Not Found Cygwin
is present in the folder, type this: ls -l /root/ns-allinone-2.27/ns-2.27/ns To run ns without a ns command not found in fedora special PATH variable, give the absolute path to ns: /root/ns-allinone-2.27/ns-2.27/ns simulation.tcl Have building/installing ns2, it gives instructions to properly set the environnement variables. You
Bash Command Not Found Cygwin
need to follow these instructions Good luck, ppl P.S. You don't need to run ns as the root user. You probably shouldn't too. On Fri, Aug 20, 2004 at 03:07:43PM +0800, #YU YANG# wrote: > > > Hi, > > I installed ns-allinone-2.27 under Linux. > > After the installation, nam command not found ns2 the system reminds me, give the following information: > > Ns-allinone package has been installed successfully. > Here are the installation places: > tcl8.4.5: /root/ns-allinone-2.27/{bin,include,lib} > tk8.4.5: /root/ns-allinone-2.27/{bin,include,lib} > otcl: /root/ns-allinone-2.27/otcl-1.8 > tclcl: /root/ns-allinone-2.27/tclcl-1.15 > ns: /root/ns-allinone-2.27/ns-2.27/ns > nam: /root/ns-allinone-2.27/nam-1.10/nam > > > then I run the ./validate command, and all test .tcl files pass through without error message. > > I also see "ns" nuder ns-allinone-2.27/ns-2.27 > > But when i try to run any .tcl file with ns command, it always give error message: ns: command not found. > > Can anyone tell me what's the possible problem? Thanks for your reply. > > rgds, > Yu Yang Previous message: [ns] help: ns command not found Next message: [ns] help: ns command not found Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the Ns-users mailing list
>>nsbash: ns: command not found This could be because you have not set the $PATH variable. Therefore, the OS does not know
Command Not Found. Similar Command Is 'nc'
where to look for the command “ns”. Has NS2 Been Installed Correctly? Here is what you have to do Go to your directory ns2 If you type “ls”, you should see the file “ns.exe” Type “./ns”. NS2 should run correctly. What If I Want to Run NS2 in Different Directory Well, you will have to make the command “ns” http://mailman.isi.edu/pipermail/ns-users/2004-August/044194.html globally available. There are two way to achieve this Set the $PATH variable in the file .bashrc located in your home directory (See the slide and the previous post) Create a symbolic link to the OS search path such as “/usr/local/bin”. To do this, type the followings: >>cd /usr/local/bin>>ln –s /home/T_Bear/ns-allinone-2.35-RC3/ns-2.35/ns.exe This statement works for my system. You might have http://ns2ultimate.tumblr.com/post/1125739154/update-on-ns-235-installation-command-not-found to adjust the directory accordingly. Note: “ln -s” is a command which creates a symbolic link to the following input argument to the current directory [see here for more detail] NS2 should run now correctly. I updated the slide accordingly. Please have a look below: Ns-2.35 Installation View more presentations from Teerawat Issariyakul.
Again, you can get ns-2.34 [here]. The discussion about ns-2.35 can also be found [here]. Note that NS-2.35 is current RC7 (release candidate). NS2 working group frequently update the NS files. The link might be removed from time to time. If the link doesn’t work, please click [here] to browse the file. Remember to choose the one with “allinone”. ====================================================== Source: T. Issaraiyakul and E. Hossain, “Introduction to Network Simulator NS2”, Springer 2011. Buy it now from Amazon: You may also find lecture notes and other resource at the following website:http://www.ece.ubc.ca/~teerawat/NS2.htm Posted 6 years ago 1 note ns2ultimate posted this Welcome to NS2 Ultimate. My name is Teerawat Issariyakul. I started this website to help most NS2 users get started. I hope thnot found Post navigation Oct 25 2010 Installing Network Simulator(ns2.34) inUbuntu10.10 Download the following installation steps as a pdf manual
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to run a tcl script in NS2 when path in bash file is not found? up vote 0 down vote favorite i have added the path to where i have saved my tcl script (i.e. where ns2 is installed in home/me/ns-allinone-2.35). i have created a .bashrc and .bash_profile too, since they were not there. In bashrc i have given the following path: $PATH=PATH:/home/me/ns-allinone-2.35 in bash_profile the following: if [ -f ~/.bashrc ]; then source ~/.bashrc fi now when i type in my terminal: ns ns-simple-trace.tcl i get the error: o: command not found bash:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/me/ns-allinone-2.35: No such file or directory what should i do to get my 'ns-simple-trace' script running? linux-mint path bashrc share|improve this question asked Mar 18 '14 at 16:10 pythonspark 1314 What do you get when you just type ns ? –mok Mar 18 '14 at 16:15 i get a % sign. –pythonspark Mar 18 '14 at 16:25 copy a sample tcl file into ns-allinone-2.35/ns-2.35 and try this: ./ns filename.tcl. Does it work? –mok Mar 18 '14 at 17:04 no it says: bash: ./ns: No such file or directory –pythonspark Mar 18 '14 at 18:34 i changed the path in .bashrc for this too to home/me/ns-allinone-2.35/ns-2.35 –pythonspark Mar 18 '14 at 18:53 | show 12 more comments 1 Answer 1 active oldest votes up vote 0 down vote accepted Installation of ns2 is a little tricky and I think you've not installed it correct. Try this : 1 : Before install NS2, you have to install some essential softwares: sudo apt-get install tcl8.5-dev tk8.5-dev sudo apt-get install build-essential autoconf automake sudo apt-get install perl xgraph libxt-dev libx11-dev libxmu-dev 2 : Download NS2 source file (“ns-allinone-2.35.tar.gz“) 3 : Unpack ns-allinone-2.35.tar.gz to your home directory. (/home/abc is my home directory, you SHOULD change it to your own!) tar -zxvf ns-allinone-2.35.tar.gz -C /home/abc 4 :