GIDForums  

Go Back   GIDForums > Computer Forums > Computer Software Forum - Linux
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #11  
Old 02-Nov-2006, 22:30
newbie06 newbie06 is offline
New Member
 
Join Date: Oct 2006
Posts: 21
newbie06 is on a distinguished road

Re: run script command on ns2.26


Hi Dave,

can I used the same instructions as u give to peeves?? our problem might be the same, but as u said there might be slightly different installation for different linux distribution. Thank You
  #12  
Old 10-Nov-2006, 05:23
capricorn capricorn is offline
New Member
 
Join Date: Oct 2006
Posts: 5
capricorn is on a distinguished road

Re: run script command on ns2.26


how can i run GUI of NS-2 ? i have installed ns2.30.
  #13  
Old 10-Nov-2006, 14:14
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,217
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: run script command on ns2.26


Quote:
Originally Posted by newbie06
Hi Dave,

can I used the same instructions as u give to peeves?? our problem might be the same, but as u said there might be slightly different installation for different linux distribution. Thank You

Follow the instructions that are in the README file in the distribution and the instructions that you get at the end of the install process.

I tried to spell out the changes that I made to my .bashrc file in my home directory to change the $PATH and other environment variables. I would thing it's worth trying witn any Linux system using bash (that's just about all of them, as far as I know).

But, as I said previously: It Works For Me with Fedora Core 5 and Fedora Core 6. Your Mileage May Vary.

Regards,

Dave

Footnote: When compiling on an x86_64 Linux system there were a couple of "minor" errors with making nam. I might be able to help with this if anyone has problems. (A couple of places where the original programmer(s) assumed that pointers and ints were the same size --- not the case for 64-bit versions of GNU gcc.)
  #14  
Old 10-Nov-2006, 14:19
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,217
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: run script command on ns2.26


Quote:
Originally Posted by capricorn
how can i run GUI of NS-2 ? i have installed ns2.30.
I'm not familiar with it, so I can't help. Also, if you are running Solaris (as you mentioned in a previous post), I really couldn't help with that either, since library paths and other environment characteristics are apparently different.

Sorry.

Regards,

Dave
  #15  
Old 12-Nov-2006, 23:07
capricorn capricorn is offline
New Member
 
Join Date: Oct 2006
Posts: 5
capricorn is on a distinguished road

Re: run script command on ns2.26


hi Dave !
its not much difference . i also refer ur doc on solaris . All is working fine n i m getting % prompt of ns-2 .
U didnt mention in your doc how to run different scripts and how to run GUI of ns-2 . u just tell me ur setting that how u run GUI of ns-2 . I will do it my way on solaris.

Regards.
  #16  
Old 13-Nov-2006, 10:41
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,217
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: run script command on ns2.26


Quote:
Originally Posted by capricorn
hi Dave !
its not much difference . i also refer ur doc on solaris . All is working fine n i m getting % prompt of ns-2 .
U didnt mention in your doc how to run different scripts and how to run GUI of ns-2 . u just tell me ur setting that how u run GUI of ns-2 . I will do it my way on solaris.

Regards.

I don't know what you mean by the "GUI of ns-2". There is a graphics type of program called "nam" (Network Animator), but I wouldn't exactly call it a GUI. To run any program, just enter its name on a command line. If the program is on your $PATH, it will execute. It is possible that nam didn't compile with your installation.

Now, on my 64-bit Linux systems there were some problems getting nam to compile, since there several places in a couple of class methods where the original code assumed that pointers and ints were the same size. So, if your "nam" didn't compile, then cd into the nam-1.12 directory and enter "make". If there are any error messages, post them here. (If it says "nam is up to date", or some such thing, and if you got ns on your $PATH OK by following installation instructions, then nam should already be on your $PATH also.)

I might not be able to help, since Solaris is not the same as Linux, and even if you are using gcc and other GNU tools, the specific messages and other features may differ, but if you post specific questions (and give total compiler output) someone might be able to help you come up with some clues.

Regards,

Dave
  #17  
Old 13-Nov-2006, 22:52
capricorn capricorn is offline
New Member
 
Join Date: Oct 2006
Posts: 5
capricorn is on a distinguished road

Re: run script command on ns2.26


GUI means that how to run ns-2 Front End . i mean is there any graphical interface avaiable for ns-2 as most people dont like to work on command line. Anyways i have make nam n its output is given below.

bash-3.00# make
rm -f nam
g++ -o nam \
tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o parser.o trafficsource.o lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o -R../tclcl-1.18 -L/ns2/ns-allinone-2.30/tclcl-1.18 -ltclcl -R../otcl -L/ns2/ns-allinone-2.30/otcl -lotcl -R../lib -L/ns2/ns-allinone-2.30/lib -ltk8.4 -R../lib -L/ns2/ns-allinone-2.30/lib -ltcl8.4 -R/usr/lib -L/usr/lib -lz -lXext -lX11 -lsocket -lnsl -lintl -ldl -ldl -lm -ldl
bash-3.00# make install
./install-sh -c -m 755 nam /usr/local/bin
bash-3.00# make install-sh
`install-sh' is up to date.

I guess its working . how can i run some sample program on it ? . As i told u that i m getting % prompt when run ns on terminal i.e
bash-3.00# ns
%
  #18  
Old 14-Nov-2006, 09:54
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,217
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: run script command on ns2.26


Quote:
Originally Posted by capricorn
GUI means that how to run ns-2 Front End . i mean is there any graphical interface avaiable for ns-2 as most people dont like to work on command line.

You asked how to run the "GUI of ns-2". I was trying to tell you that I don't know of any such front end. (I do know what a GUI is; really I do, but since no GUI was supplied with any of the versions of ns that I have installed, I tried to indicate that I didn't know what it was that you wanted to run.)

Quote:
Originally Posted by capricorn

Anyways i have make nam n its output is given below.
.
.
I guess its working . how can i run some sample program on it ?

So, if you enter "nam" on a command line it opens a window, right? If so, then you have successfully installed ns and nam. That's a Good Thing, right? As I mentioned previously, nam is not a GUI front-end for ns. It is a graphical display for certain things and can be quite useful in performing simulations. See the documentation in the distribution and on the ns web site.

You are now ready to read the documentation and to look on the web for examples. (I would recommend starting at the ns home page. Follow links to nam, etc.) There have been some publications and other material on the web (from universities) about projects to make a real GUI-driven front end, but these are not part of the ns distribution. I haven't tried any (I haven't even looked for them recently), so I can't give you any specific pointers.

In addition to the documentation supplied with the release, the ns home page has links to some tutorials using ns and nam:

I would start here: http://www.isi.edu/nsnam/ns/tutorial/index.html

ns reads tcl scripts and some of the tutorials also cover introductory tcl. Good Luck!


Regards,

Dave
Last edited by davekw7x : 14-Nov-2006 at 11:18.
  #19  
Old 21-Nov-2006, 14:16
saadiaomar saadiaomar is offline
New Member
 
Join Date: Nov 2006
Posts: 2
saadiaomar is on a distinguished road

Running Simple.tcl


Hi Dave,
I have followed your instructions about installation if NS2 allinone-2.30 added the environment paths in bashrc file (using FC4).
Everything went well but when i tried to run a simple.tcl file its gives error like
"couldn't read file "simple.tcl":no such file or directory

Now the simple.tcl file is in tcl folder which is in ns-2.30 i.e i am trying as

cd ns-allinone-2.30
cd ns-2.30
ns simple.tcl
I have also tried ns ./simple.tcl but get the same error

I understand that path has to be added. I have added the path to simple.tcl file in bashrc and also what you mentioned previously.
I am unable to open a tcl file from console using command ns. Could you please help me with this?

I was successful in opening the nam editor.
Regards
Saadia
  #20  
Old 21-Nov-2006, 18:05
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,217
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: Running Simple.tcl


Quote:
Originally Posted by saadiaomar
Now the simple.tcl file is in tcl folder which is in ns-2.30

Either copy the tcl file to the directory that you are in or give the complete path to the tcl file in the "ns" command. The path can be relative to the current directory. (Programs like ns don't use the $PATH variable to find their scripts; you have to tell them where to look.)

For example if simple.tcl is in the ns-2.30/tcl directory and you go into the ns-2.30 directory, try the following

cd ns-allinone-2.30
cd ns-2.30
ns tcl/simple.tcl

or you could try

cd ns-allinone-2.30
cd ns-2.30
cd tcl
ns simple.tcl

or

cd ns-allinone-2.30
cd ns-2.30
mkdir working
cp tcl/simple.tcl working
cd working
ns simple.tcl

(I usually make a separate directory to operate from so that I won't accidentally overwrite some of the distribution files.)


Regards,

Dave
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web stats fcolor Web Design Forum 10 12-Jul-2007 09:48
Need Free Website Templates sam_dezine Web Design Forum 8 06-Sep-2006 04:25
Who Is A Web Designer ? alicehopkins Web Design Forum 1 13-Jun-2006 03:56
HTML Code amgujral Web Design Forum 0 07-Apr-2006 10:46
Two virtual hosts, cgi script behaves differently on each blimbo Apache Web Server Forum 0 04-Aug-2004 10:35

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:17.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.