dポイントプレゼントキャンペーン実施中!

CGIでGnuplotを使いたいのですが、初心者なので良くわかりません。

モジュールはインストールできていると思うのですが。
$ find `perl -e 'print "@INC"'` -name '*.pm' -print
/Library/Perl/5.18/Chart/Gnuplot.pm

しかしテストCGIが動きません

use strict;
use Chart::Gnuplot;
my $chart = Chart::Gnuplot->new(
output => "gallery/axisLabel_1.png",
title => "Default format of the axis labels",
xlabel => "x-label",
ylabel => "y-label",
x2label => "x2-label",
y2label => "y2-label",
);
my $dataSet = Chart::Gnuplot::DataSet->new(
func => "sin(x)",
);
$chart->plot2d($dataSet);


またターミナル上でも使えません
$ gnuplot
-bash: gnuplot: command not found

わかる方がいれば教えていただきたいです。
よろしくお願いします。

A 回答 (1件)

「gnuplot が存在しない」というオチなんかじゃないんだよね?

    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!