How to install XGraph utility after successful installation of ns2.35 on windows 7?

2,454 views
Skip to first unread message

Amy Nis

unread,
Apr 3, 2015, 7:24:15 AM4/3/15
to ns-u...@googlegroups.com
Everything else is running fine on ns-2.35 (in cygwin terminal). Can anyone please tell me the commands,procedure and packages to successfully install XGraph utility? it's not working.

Windows: 7 , 32 Bit
NS-2.35 

Regards,

Amy


Amy Nis

unread,
Apr 6, 2015, 4:26:52 PM4/6/15
to ns-u...@googlegroups.com
anyone? 

knudfl

unread,
Apr 6, 2015, 4:50:38 PM4/6/15
to ns-u...@googlegroups.com
Hi .

Building  Xgraph-12.2 in Cygwin :  Probably like it's done with a real 'Linux OS' :

cd xgraph-12.2/
rm
-f depcomp
ln
-s /usr/share/automake-<version>/depcomp
./
configure
make
make install

-

Amy Nis

unread,
Apr 7, 2015, 4:16:28 AM4/7/15
to ns-u...@googlegroups.com
thank you. appreciate your efforts @this group.


this didn't work. or maybe I did it the wrong way.

Actually my TGRAPH file is showing zeros. NAM files works fine. also when I try to run .tr files on xgraph (in startX) it shows errors like unknown input type etc.

And also Awk scripts (output files) shows results like throughput , delay and jitters etc.

Regards,

Amy

knudfl

unread,
Apr 7, 2015, 4:58:58 AM4/7/15
to ns-u...@googlegroups.com
@Amy Nis ,   Hi.

Xgraph will not be able to display a trace file.

Trace files are text files.
Please read, and compare with xgraph-12.2/examples/files*,
to know how the formatting for an xgraph file must be.

HOWTO create files for Xgraph :
http://www.isi.edu/nsnam/ns/tutorial/nsscript4.html

More examples :   xgraph_ns2-files-tcl_04.2015.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNaTBuaE52b2xackE/view?usp=sharing
.... Please read the examples and the output files, when you have run the default examples.

-

Amy Nis

unread,
Apr 7, 2015, 11:02:02 AM4/7/15
to ns-u...@googlegroups.com
means I'm doing it wrong.

Thank you so much!!! :) :)

kushal joshi

unread,
Jan 12, 2018, 1:28:17 AM1/12/18
to Network Simulator 2 (NS2)
 can you please tell me after run the tcl file  from where i can check log file or output file of current simulation  on ns-2.35 (in cygwin terminal). there is (out.NAM) file was constructed but i dont know how to open it ?

kushal joshi

unread,
Jan 12, 2018, 1:28:46 AM1/12/18
to Network Simulator 2 (NS2)
 can you please tell me after run the tcl file  from where i can check log file or output file of current simulation  on ns-2.35 (in cygwin terminal). there is (out.NAM) file was constructed but i dont know how to open it ?

knudfl

unread,
Jan 12, 2018, 7:00:26 AM1/12/18
to Network Simulator 2 (NS2)
@kushal joshi.

out.nam  is supposed to run with the "nam-1.15/nam"  application :
$ nam nam.out &

Not sure that 'nam' can be built with Cygwin.   ( Or the "nam result" is rather invalid.)
May be a chance with the updated  ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns
-allinone-2.35/
./install
cd nam
-1.15/
make install
                     
// 'make install' will copy the executable 'nam' to /usr/local/bin/

Note :  You can have as many ns-allinone-2.xx as you want, installed at the same time.
But :  Do never add any *PATH text to .bashrc . Not required.

kousalya subramani

unread,
Feb 19, 2019, 7:37:35 AM2/19/19
to Network Simulator 2 (NS2)
hello sir,
  this is Kousalya Subramani. actually am doing my project in ns2 (interference analysis on optical wireless network). can you help me with sending the code for my project using aodv protocol. also commands for utility file in ns2(ubuntu) please??
Reply all
Reply to author
Forward
0 new messages