From e3b20f6d05337b7310266bad847777d3c8f4e547 Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 16 Apr 2008 17:39:07 +0000 Subject: [PATCH] b=15348 i=Adilger check if gnuplot supports png --- lustre-iokit/sgpdd-survey/plot-sgpdd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre-iokit/sgpdd-survey/plot-sgpdd b/lustre-iokit/sgpdd-survey/plot-sgpdd index f66862a..741428a 100755 --- a/lustre-iokit/sgpdd-survey/plot-sgpdd +++ b/lustre-iokit/sgpdd-survey/plot-sgpdd @@ -31,6 +31,11 @@ sub usage() # check whether gnuplot exists? system ("which gnuplot > /dev/null") == 0 or die "gnuplot does not exist, please install it and try again.\n"; +# check whether gnuplot supports png +$pngsupport = "ldd `which gnuplot` | grep -q libpng"; +system ("$pngsupport") == 0 or die "gnuplot installed does not support png. + Please install gnuplot to support png and try again.\n"; + my @GraphTitle; #Subroutine to write .scr file that further used by gnuplot to plot the graph. -- 1.8.3.1