I'm also facing the same problem while running ns in Ubuntu...... Usage: host [-v] [-a] [-t querytype] [options] name [server] Listing: host [-v] [-a] [-t querytype] [options] -l zone [server] Hostcount: host [-v] [options] -H [-D] [-E] [-G] zone Check soa: host [-v] [options] -C zone Addrcheck: host [-v] [options] -A host Listing options: [-L level] [-S] [-A] [-p] [-P prefserver] [-N skipzone] Common options: [-d] [-f|-F file] [-I chars] [-i|-n] [-q] [-Q] [-T] [-Z] Other options: [-c class] [-e] [-m] [-o] [-r] [-R] [-s secs] [-u] [-w] Special options: [-O srcaddr] [-j minport] [-J maxport] Extended usage: [-x [name ...]] server [name ...]] I edit the path (bashrc) with the following lines: # LD_LIBRARY_PATH OTCL_LIB=/home/user/ns-allinone-2.33/otcl-1.13 NS2_LIB=/home/user/ns-allinone-2.33/lib X11_LIB=/usr/X11R6/lib USR_LOCAL_LIB=/usr/local/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LI B export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$X11_LIB:$USR_LOC AL_LIB # TCL_LIBRARY TCL_LIB=/home/user/ns-allinone-2.33/tcl8.4.18/library USR_LIB=/usr/lib export TCL_LIBRARY=$TCL_LIB:$USR_LIB # PATH XGRAPH=/home/user/ns-allinone-2.33/bin XGRAPH=$XGRAPH:/home/user/ns-allinone-2.33/tcl8.4.18/unix XGRAPH=$XGRAPH:/home/user/ns-allinone-2.33/tk8.4.18/unix NS=/home/user/ns-allinone-2.33/ns-2.33/ NAM=/home/user/ns-allinone-2.33/nam-1.13/ PATH=$PATH:$XGRAPH:$NS:$NAM PLz help me.....
Hello everybody, I'm student and i have to make a project to compare two protocols in NS2, MRSVP and M-YESSIR. Does anybody knows were i can find that patces? Thanks a lot. Constantine
i faced the same problem.. did the following and it got solved >found which ns process was running by typing- which ns >it showed /usr/bin/ns >removed ns from /usr/ns (rm ns) then came back to the original directory and successfully ran $ns to get %
NS2 installation problems: I have run through all the installation steps required for installation of NS2.27 onto my system. But I face following problems Nam has been installed successfully. ln: creating symbolic link `ns': File exists ln: creating symbolic link `nam': File exists Please compile your xgraph separately. Please compile your gt-itm & sgb2ns separately. Ns-allinone package has been installed successfully. Here are the installation places: tcl8.4.5: /home/sawyer/ns-allinone-2.27/{bin,include,lib} tk8.4.5: /home/sawyer/ns-allinone-2.27/{bin,include,lib} otcl: /home/sawyer/ns-allinone-2.27/otcl-1.8 tclcl: /home/sawyer/ns-allinone-2.27/tclcl-1.15 ns: /home/sawyer/ns-allinone-2.27/ns-2.27/ns nam: /home/sawyer/ns-allinone-2.27/nam-1.10/nam but when I give it returns the following sawyer@sawyer:~$ nam nam: [code omitted because of length] : no event type or button # or keysym while executing "bind Listbox <MouseWheel> { %W yview scroll [expr {- (%D / 120) * 4}] units }" And when I click on to installation paths above tcl8.4.5,tk8.4.5,ns,nam does not open. What may be the problem !!! . Next is when I go for validation that is after giving the command sawyer@sawyer:~/ns-allinone-2.27/ns-2.27$ ./validate Test output agrees with reference output All test output agrees with reference output. *** ./test-all-rng Tests: rngtest Running test rngtest: ../../ns test-suite-rng.tcl rngtest QUIET Test output agrees with reference output All test output agrees with reference output. These messages are NOT errors and can be ignored: warning: using backward compatibility mode This test is not implemented in backward compatibility mode validate overall report: some tests failed: ./test-all-newreno ./test-all-red to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME Notice that some tests in webcache will fail on freebsd when -O is turned on. This is due to some event reordering, which will disappear when -g is turned on. Please let me know wat all are the extra packages to be installed. bcoz I am using old version of Ns2 on Ubuntu9.10 Thank you, Sawyer
Last edited by howefield; March 15th, 2011 at 09:07 AM. Reason: formatting
Hi, I'm doing a project in ns2. I need some help with the commands. Is there any tutorial or link that gives a detailed understanding of the tcl scripts as we're unable to follow them much. I would also like to know what the following command does.. if {[$class info instprocs config] != ""} { $self config $ns } This is in the test-suite-algorouting.tcl in ns2.
edit the makefile.in and otcl folder file by adding the line in previous suggestion
Hi I need your help, I am using Ubuntu 10.10 that has installed on virtual box on my PC and I need to install NS2 on ubuntu10.10, but once I execute this command: sudo apt-get install build-essential autoconf automake libxmu-dev I receive this messages: Reading package lists... Done Building dependency tree Reading state information... Done Package autoconf is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Unable to locate package build-essential E: Package 'autoconf' has no installation candidate E: Unable to locate package automake E: Unable to locate package libxmu-dev w0090766@w0090766-VirtualBox:~/test/ns-allinone-2.34$ What is my mistake, or what I should do to install NS2 on this system?
Last edited by howefield; March 15th, 2011 at 09:07 AM. Reason: remove font formatting
Could you just install ns2 via the Ubuntu Software Center?
hiii everyone... 'm new to tis community... hv a prob badly need your help... plzzz do d needful i'm not able to run the tcl file.. i use ns-allinone-2.35 in ubuntu 11.04 in terminal i got successfully installed n ol.. wen i use the command ns % //symbol appears then i give exit to which i get this line to which i type nam and i get //the following text deepa@deepa-Vostro-260s:~/ns-allinone-2.35$ nam Cannot connect to existing nam instance. Starting a new one. . . // a small window(black n grey in color) opens up with name "Nam console v1.15-RC4" with options File in the right and help in the left & some description about it i just wanted to ask if i have installed ns2 correctly??? and how to execute a tcl file in it(if possi step by step plz)??? PLZZZZZ do help. . .!!! loadzzz of thnx for reading my post
Ubuntu Forums Code of Conduct