Skip Menu |

This queue is for tickets about the Chart-Gnuplot CPAN distribution.

Report information
The Basics
Id: 83417
Status: resolved
Priority: 0/
Queue: Chart-Gnuplot

People
Owner: Nobody in particular
Requestors: wrosner [...] tirnet.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Subject: Re: [rt.cpan.org #83417] util.c: No such file or directory - gnuplot 4.2 issue?
Date: Mon, 18 Feb 2013 09:49:02 +0800
To: bug-Chart-Gnuplot [...] rt.cpan.org, wrosner [...] tirnet.de
From: Ka-Wai Mak <kwmak [...] cpan.org>
Dear Wolfgang, Would you please check whether ImageMagick is installed in your workstation? If it is not there, you may either install it or set the "terminal" option of the chart object to png, e.g. my $chart = Chart::Gnuplot->new( output => "fig/first.png", terminal => "png", ....... ); Regards, Ka-Wai Show quoted text
---------- Forwarded message ---------- From: Wolfgang Rosner via RT <bug-Chart-Gnuplot@rt.cpan.org> Date: 2013/2/18 Subject: [rt.cpan.org #83417] util.c: No such file or directory - gnuplot 4.2 issue? To: Sun Feb 17 20:27:05 2013: Request 83417 was acted upon. Transaction: Ticket created by wrosner@tirnet.de Queue: Chart-Gnuplot Subject: util.c: No such file or directory - gnuplot 4.2 issue? Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: wrosner@tirnet.de Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=83417 > 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