System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Help in setting/configure up gnuplot

SOLVED
Go to solution
NDO
Super Advisor

Help in setting/configure up gnuplot

Hi all!

I am running hp-ux 11.31, so I have download and installed the following products:
gnuplot 4.4.0
zlib-1.2.5
flex 2.5.35
gettext 0.18.1.1
m4 1.4.15

Then after swinstall gnuplot.... depot it created the following directories:
/usr/local/bin/gnuplot
/usr/local/lib/gnuplot
/usr/local/doc/gnuplot
/usr/local/share/gnuplot
/usr/local/libexec/gnuplot
/var/adm/sw/products/gnuplot

Now if I go inside "/usr/local/bin/gnuplot
" and run ./gnuplot, I bump into the following error:
/usr/lib/hpux32/dld.so: Unable to find library 'libreadline.so'.
Killed

I´ve try to find in google that library, but I cant find it.

On the other hand by searching, in google, I am supposed to run "./configue". BUT where?

I need to use gnuplot to plot performance stats from glance.
Your help will appreciated.

F.R.
17 REPLIES
kemo
Trusted Contributor

Re: Help in setting/configure up gnuplot

download gnuplot from

http://sourceforge.net/projects/gnuplot/files/gnuplot/4.4.2/gp442win32.zip/download?use_mirror=autoselect

Note: this link is officially redirected by http://www.gnuplot.info/

Installation
------------
Installation instructions are available in the source itself; the short
version for linux/unix-like systems is to unpack the tarball and then
build it:
cd gnuplot-4.4.1 ; ./configure ; make
test it:
make check
install it:
make install

Pay careful attention to the output of the ./configure script.
It may indicate that some output drivers have been omitted because the
necessary support libraries were not found. In general you need to have
previously installed the "*-devel-*" versions of these libraries.


thanks
kamal
NDO
Super Advisor

Re: Help in setting/configure up gnuplot

Hi

Ok, I can do that: But what is wrong withe the gnuplot 4.4.0 that I have downloaded from http://hpux.connect.org.uk ?


F.R.
kemo
Trusted Contributor

Re: Help in setting/configure up gnuplot

It is better to compile and install third party application rather than installing a depot.
NDO
Super Advisor

Re: Help in setting/configure up gnuplot

Hi

The download file you suggested I beleive is for windows systems.My operating system is hp-ux 11.31


F.R.
kemo
Trusted Contributor

Re: Help in setting/configure up gnuplot

hello

don't download the ZIP file, you should navigate to the required tar file by clicking on the gunplot link under home in the middle of the page.

it will take you to the below link

http://sourceforge.net/projects/gnuplot/files/gnuplot/4.4.2/

download the tar archive and use it.

Note: please don't forget to assign points to the answers which helped you.

thanks
kamal
Dennis Handly
Acclaimed Contributor

Re: Help in setting/configure up gnuplot

>I have download and installed the following products:
>dld.so: Unable to find library libreadline.so.

The runtime dependencies include more than you downloaded, including readline:
expat fontconfig freetype gd gettext jpeg libXpm libiconv libpng ncurses readline termcap zlib cairo libXrender pixman glib2 pango libXft

You should use depothelper to get all the dependencies:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/depothelper-2.00/
NDO
Super Advisor

Re: Help in setting/configure up gnuplot


Hi!


I have installed depothelper using swinstall, I have also install its dependencies which are m4 and make, but I have got another error: "gmake: *** No rule to make target `install'. Stop." when doing
./gmake install


F.R.
Dennis Handly
Acclaimed Contributor

Re: Help in setting/configure up gnuplot

>but I have got another error: "gmake: *** No rule to make target `install'. Stop." when doing
>./gmake install

Did it say you needed to use gmake to install depothelper? (I guess it does but they are pretty sparse. )-:

Does it tell you what directory you need to be in to do that? (That's a common cause of that error message.)
NDO
Super Advisor

Re: Help in setting/configure up gnuplot

from installation page says:

to install

gmake install

to test

depothelper -l

but it does not say in which directory you need to run it, but I am running it from inside /usr/local/bin/depothelper


F.R.
Dennis Handly
Acclaimed Contributor

Re: Help in setting/configure up gnuplot

Looking at the files in the depot, I don't see any makefiles. Try going on to the "depothelper -l" step.
NDO
Super Advisor

Re: Help in setting/configure up gnuplot



Hi

I´ve installed all the dependencies stated but I still face an error when running ./gnuplot which is:

"/usr/lib/hpux32/dld.so: Unable to find library 'libwx_gtk2_richtext-2.8.so'.
Killed
"

When using depothelper gives me the following error:
./depothelper -l gnuplot
ERROR: Can't get list of ia64-11.31 packages from hpux.connect.org.uk - aborted

I have to say that this server does not have a connection to the internet.


F.R.
NDO
Super Advisor

Re: Help in setting/configure up gnuplot



Hi

I know why there is an error when running the depothelper. the server is not connected to the internet.

Can anybody help with the following error when running ./gnuplot which is:
/usr/lib/hpux32/dld.so: Unable to find library 'libwx_gtk2_richtext-2.8.so'.
Killed


F.R.
Dennis Handly
Acclaimed Contributor
Solution

Re: Help in setting/configure up gnuplot

>dld.so: Unable to find library 'libwx_gtk2_richtext-2.8.so'.

google finds this URL:
http://old.nabble.com/does-gnuplot-needs-libwx_gtk2_richtext-2.8.so-to-run--td27142177.html
NDO
Super Advisor

Re: Help in setting/configure up gnuplot

Hi!

Only after installing 4 more remaining libraries , I have managed to get gnuplot working.
This is the full list of packages needed:

-rw-r--r-- 1 root sys 3123200 Dec 23 15:00 atk-1.32.0-ia64-11.31.depot
-rw-r--r-- 1 root sys 11929600 Dec 23 08:10 cairo-1.10.0-ia64-11.31.depot
-rw-r--r-- 1 root sys 92160 Dec 22 10:27 depothelper-2.00-ia64-11.31.depot
-rw-r--r-- 1 root sys 1239040 Dec 22 11:37 expat-2.0.1-ia64-11.31.depot
-rw-r--r-- 1 root sys 6430720 Dec 22 11:41 fontconfig-2.8.0-ia64-11.31.depot
-rw-r--r-- 1 root sys 6144000 Dec 22 12:10 freetype-2.4.3-ia64-11.31.depot
-rw-r--r-- 1 root sys 2652160 Dec 23 07:55 gd-2.0.36RC1-ia64-11.31.depot
-rw-r--r-- 1 root sys 10741760 Dec 23 09:35 gdb-7.2-ia64-11.31.depot
-rw-r--r-- 1 root sys 317440 Dec 23 08:25 gdbm-1.8.3-ia64-11.31.depot
-rw-r--r-- 1 root sys 6205440 Dec 23 15:27 gdk_pixbuf-2.22.0-ia64-11.31.depot
-rw-r--r-- 1 root sys 20121600 Dec 20 10:12 gettext-0.18.1.1-ia64-11.31.depot
-rw-r--r-- 1 root sys 59842560 Dec 23 08:18 glib2-2.26.0-ia64-11.31.depot
-rw-r--r-- 1 root sys 6369280 Dec 17 15:45 gnuplot-4.4.0-ia64-11.31.depot
-rw-r--r-- 1 root sys 13578240 Dec 23 10:26 gtk+-1.2.10-ia64-11.31.depot
-rw-r--r-- 1 root sys 123545600 Dec 23 15:23 gtk+2-2.22.0-ia64-11.31.depot
-rw-r--r-- 1 root sys 3276800 Dec 23 09:23 jpeg-8b-ia64-11.31.depot
-rw-r--r-- 1 root sys 798720 Dec 23 08:24 libXft-2.1.14-ia64-11.31.depot
-rw-r--r-- 1 root sys 1095680 Dec 23 07:58 libXpm-3.5.8-ia64-11.31.depot
-rw-r--r-- 1 root sys 419840 Dec 23 08:11 libXrender-0.9.6-ia64-11.31.depot
-rw-r--r-- 1 root sys 3205120 Dec 17 17:23 libiconv-1.13.1-ia64-11.31.depot
-rw-r--r-- 1 root sys 2150400 Dec 17 16:42 libpng-1.4.4-ia64-11.31.depot
-rw-r--r-- 1 root sys 1587200 Dec 20 11:24 m4-1.4.15-ia64-11.31.depot
-rw-r--r-- 1 root sys 1525760 Dec 17 16:44 make-3.82-ia64-11.31.depot
-rw-r--r-- 1 root sys 16322560 Dec 23 08:01 ncurses-5.7-ia64-11.31.depot
-rw-r--r-- 1 root sys 10680320 Dec 23 08:22 pango-1.28.3-ia64-11.31.depot
-rw-r--r-- 1 root sys 3696640 Dec 23 08:13 pixman-0.19.6-ia64-11.31.depot
-rw-r--r-- 1 root sys 58726400 Dec 22 12:20 python-2.5.2-ia64-11.31.depot
-rw-r--r-- 1 root sys 2693120 Dec 23 08:07 readline-6.1.002-ia64-11.31.depot
-rw-r--r-- 1 root sys 2068480 Dec 23 08:08 termcap-1.3.1-ia64-11.31.depot
-rw-r--r-- 1 root sys 7434240 Dec 23 15:31 tiff-3.9.4-ia64-11.31.depot
-rw-r--r-- 1 root sys 25825280 Dec 23 14:47 wxGTK-2.8.11-ia64-11.31.depot
-rw-r--r-- 1 root sys 829440 Dec 17 16:46 zlib-1.2.5-ia64-11.31.depot


Now I need to use the data collect by glance and use it with gnuplot.


F.R.
NDO
Super Advisor

Re: Help in setting/configure up gnuplot


Hi!

Please can you confirm:

The next step to plot sar or glance outputs I need to first:

1. setup a web server (using apache, php and mysql)
2. create sar data from e.g. sar -Mu 2 2 2
3. use the output file created by that command to create inside gnuplot prompt a configuration file
4.generate an image file inside gnuplot
5. place that file inside httdoc directory in apache

6. create an html file and include that file???


Is this approach correct?


I would appreciate your comments


F.R.
NDO
Super Advisor

Re: Help in setting/configure up gnuplot


Hi!

I´ve produced the first graph using sar -u output.
I really did not need to create a web page to publish the pics, after producing the pics (png files) I incorporated those in the normal word report.

Thank you all


F.R.
NDO
Super Advisor

Re: Help in setting/configure up gnuplot

bye, closing thread