getting error while running x graph in ns2.35

717 views
Skip to first unread message

Ashish Srivastava

unread,
Jun 27, 2021, 5:09:39 AM6/27/21
to Network Simulator 2 (NS2)
[root@localhost Desktop]# ns ashnew.tcl
num_nodes is set 10
INITIALIZE THE LIST xListHead
couldn't execute "xgraph": no such file or directory
    while executing
"exec xgraph energyleft.txt &"
    (file "ashnew.tcl" line 353)

knudfl

unread,
Jun 27, 2021, 6:21:12 AM6/27/21
to Network Simulator 2 (NS2)
Install xgraph, Ubuntu example : Download  xgraph_12.1-17_amd64.deb
$ sudo apt install Downloads/xgraph_12.1-17_amd64.deb

Any questions ?         ........ Then please specify your OS :  Name and version.

Zard Ali Khan

unread,
Jun 27, 2021, 6:25:34 AM6/27/21
to ns-u...@googlegroups.com
Currently in ns2.35 version x graph not working, please work with gnu or (draw graphs using Matlab,R and Excel)

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/08b0e53b-0288-4323-8078-3eef843f2651n%40googlegroups.com.

knudfl

unread,
Jun 27, 2021, 9:25:56 AM6/27/21
to Network Simulator 2 (NS2)
@ zarda :   Of course it will work, just use the mentioned Ubuntu 12.04 ...14.04 package

And you can easily build xgraph with the most  Linux OS.
But to use with new Ubuntu, a build on Ubuntu 12.04 or 14.04 is suggested.

Example ....
cd xgraph-12.2/
rm depcomp
ln -s /usr/share/automake-1.16/depcomp
./configure && make

Ashish Srivastava

unread,
Jun 28, 2021, 4:44:40 PM6/28/21
to Network Simulator 2 (NS2)
@kundfl
as per above command i am getting this:

[root@localhost Desktop]# cd /home/asim/ns-allinone-2.35/xgraph-12.2/
[root@localhost xgraph-12.2]# rm depcomp
rm: remove symbolic link ‘depcomp’?    (In this line I have to remove it first or what to do)
[root@localhost xgraph-12.2]# ln -s /usr/share/automake-1.16/depcomp
ln: failed to create symbolic link ‘./depcomp’: File exists


knudfl

unread,
Jun 28, 2021, 5:25:12 PM6/28/21
to Network Simulator 2 (NS2)
@ashish.s

Not quite clear if there is a question ?  The link cannot be created if you fail the delete.
    If you are asking a question, it can be answered when the OS is specified.
OS name and version, please.
But then again, if you have a newer Ubuntu version, an Xgraph build may not work.
          The safe solution : Install xgraph_12.1-17_amd64.deb with apt or gdebi.
Reply all
Reply to author
Forward
0 new messages