Subject: | util.c: No such file or directory - gnuplot 4.2 issue? |
Date: | Mon, 18 Feb 2013 02:26:18 +0100 |
To: | bug-Chart-Gnuplot [...] rt.cpan.org |
From: | Wolfgang Rosner <wrosner [...] tirnet.de> |
Dear Ka-Wai Mak,
I started a perl application on a raspberry Pi with rasPi, a debian wheezy on
it. Everything was fine there, and I think Chart::Gnuplot is a powerful
interface to gnuplot capabilities.
However, due to severe hardware limitations of the raspberry, I have to shift
the application to my x86_64 workstation, which runs a quite outdated
openSuSE 11.0.
There, I get the error:
"util.c: No such file or directory"
on the command line where the perl script was started.
Googling the error, I found
http://www.linuxintro.org/wiki/Gnuplot
"...
line 0: util.c: No such file or directory
You are most probably on an outdated gnuplot version. Version 4.4 differs a
lot from 4.2. "
program versions:
----------------------------------
on my workstation (where it fails):
gnuplot --version
gnuplot 4.2 patchlevel 3
Chart::Gnuplot was a fresh build from CPAN, using
KWMAK/Chart/Gnuplot/Chart-Gnuplot-0.18.tar.gz
perl: v5.10.0
# uname -a
Linux wjrws2 2.6.25.18-0.2-debug #1 SMP 2008-10-21 16:30:26 +0200 x86_64
x86_64 x86_64 GNU/Linux
-------------------------------------------
on raspberry (where it works)
$ gnuplot --version
gnuplot 4.6 patchlevel 0
Chart::Gnuplot is installed from the debian package which names:
libchart-gnuplot-perl 0.17-1
perl: v5.14.2
$ uname -a
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l
GNU/Linux
------------------------------------------
This is my calling code
I added some debug prints to pin down the failing call:
print "====== calling gnuplot =========\n";
# SV no 12 for first trial
print "creating chart....\n";
my $chart = Chart::Gnuplot->new(
output => "fig/first.png",
xrange => [0, 90 ],
yrange => [0, 50 ]
);
print "creating dataset....\n";
my $dataSet = Chart::Gnuplot::DataSet->new(
xdata => @sv_ele[12],
ydata => @sv_snr[12]
);
print "calling plot \n";
$chart->plot2d($dataSet);
==========================
which outputs like this:
====== calling gnuplot =========
creating chart....
creating dataset....
calling plot
util.c: No such file or directory
==========================
so the failing call is ->plot2d
Any Idea for a easy cure?
I'll try to find an upgrade for my gnuplot, which is not easy since all
official SuSE repos are offline now.
If I want to avoid a coplete reinstall of my workstation, I have to switch for
another gnuplot interface. Would regret that.
--
Sincerly
Wolfgang Rosner
wrosner@tirnet.de