Operating System - HP-UX
1846835 Members
7459 Online
110256 Solutions
New Discussion

Is anyone successfully running gnuplot?

 
Timothy Czarnik
Esteemed Contributor

Is anyone successfully running gnuplot?

Hey all,

Wondering if anyone is successfully running gnuplot. I've searched the forums and found a couple threads about setting it up. I followed the advice given but still getting some errors.

I'm running HP-UX 11.11 on an rp7400 and 2 L class machines.

Thanks!
Hey! Who turned out the lights!
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: Is anyone successfully running gnuplot?

I've run gnuplot on various flavors of UNIX over the years and found it to be quite reliable. I just loaded
it on a K-box running 11.11 and did a couple of test plots and it worked perfectly. I already had libpng and zlib loaded so that made loading gnuplot quite trivial.

It would help to know what errors you are seeing. Whenever I load gnuplot for the first time, I start with functions in the documentation before going on to my own homegrown data/functions so that it's possible to know where the real fault lies.




If it ain't broke, I can fix that.
Timothy Czarnik
Esteemed Contributor

Re: Is anyone successfully running gnuplot?

Clay,

Your response is like a cool drink of water to a thirsty man! Thanks for your time in advance. Here's my situation.

I am running HP-UX 11.11. I downloaded zlib, libpng, and gnuplot from the porting center and installed them (zlib first, then libpng, then gnuplot). Here is the output of my swlist:

gnuplot 3.7.1 gnuplot
libpng 1.2.4 libpng
zlib 1.1.4 zlib

I read a previous post that said to also create the /opt/zlib/lib and /opt/libpng/lib directories and copy the zlib and libpng files there, which I did.

Now, I am not actually running gnuplot from the command line or anything, and I have no experience with it whatsoever. I'm using sarcheck with the -png switch which takes the days sar numbers and puts them into graph form inside a report. Cool stuff, but when I run sarcheck with the -png switch, I get this output:

libpng warning: Application was compiled with png.h from libpng-1.0.6
libpng warning: Application is running with png.c from libpng-1.2.4
libpng error: Incompatible libpng version in application and library

written to stdout. This message is written 5 times, and I assume this is once for each of the five graphs that sarcheck is trying to create.

Any help you can offer will be greatly appreciated, and I will be happy to offer up any more info that you need.! Help me Obi Wan Claynobi. You're my only hope...



Hey! Who turned out the lights!
A. Clay Stephenson
Acclaimed Contributor

Re: Is anyone successfully running gnuplot?

Okay Tim, the bad news is that I've never used sarcheck though I am familiar with it. My versions are zlib 1.1.3, libpng 1.2.2, and gnuplot 3.7.1 and they work perfectly.
I also did not move libpng or zlib and just left them in their default swinstall'ed loacations.

I suggest that you isolate the problem fron sarcheck by executing gnuplot as a standalone program. You should run it from an X-terminal and have your TERM and DISPLAY variables set and exported.

About as simple a test as I can think of is:
gnuplot (you will be in interactive mode):
plot sin(x), cos(x)
(You should see nice curves.)
quit

If that works then the problem is not gnuplot.

It appears that you are running imcompatible code. In the worst case, you could download the source and compile everything but I've never had to do that for gnuplot. Most applications simply create a textfile with a bunch of commands and data and hand it off to gnuplot.

If it ain't broke, I can fix that.
Timothy Czarnik
Esteemed Contributor

Re: Is anyone successfully running gnuplot?

Clay,

I ran your test and it worked fine. Are the versions of zlib and libpng that you are running available somewhere that you know of? I'd like to give that a shot...

Tim
Hey! Who turned out the lights!
Tom Jackson
Valued Contributor

Re: Is anyone successfully running gnuplot?

Hi:

I am running 11.i with gnuplot 3.7.1, libpng 1.2.4 and zlib 1.1.4. I get the same error when trying to generate png files.

Try setting your terminal to something like postscript and see if you get the same error.

I've attached a couple files for testing. You should be able to enter the following:

gnuplot 100443Peak.gp

It should read the txt file and generate an eps file that you can view or print.

I never was able to get rid of the lib error. I ended up installing ghostscript to conver from eps to png.

Tom
Tom Jackson
Valued Contributor

Re: Is anyone successfully running gnuplot?

Oops, forgot the attachements.

Here's the first.

Tom

Tom Jackson
Valued Contributor

Re: Is anyone successfully running gnuplot?

Here's the data input file.

Tom Jackson
Valued Contributor

Re: Is anyone successfully running gnuplot?

Tim:

Sorry for the problems. Here's the Input file used by the gp script.

hth,

Tom