From: grev Date: Wed, 16 Apr 2008 17:39:07 +0000 (+0000) Subject: b=15348 X-Git-Tag: v1_7_0_51~42 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e3b20f6d05337b7310266bad847777d3c8f4e547;ds=sidebyside b=15348 i=Adilger check if gnuplot supports png --- 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.