Hello,
I'm trying to compile gnuplot 5.3 on OpenSuse Leap 15.0. configure does find everything it should, except for libgd, which disables jpg/png output:
checking for gdlib-config... /usr/bin/gdlib-config
gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
checking for gdImageCreateTrueColor in -lgd... no
configure: WARNING: libgd not found or too old, version >= 2.0 is required
However, I do have the packages libgd3 and gd-devel installed, therefore the files /usr/lib64/libgd.so, /usr/lib64/libgd.so.3 and /usr/lib64/libgd.so.3.0.5 are present. What should I do about is, and should I care about the "deprecated" warning?
So far as I know the "deprecated" warning is noise. The gdlib-config tool has emitted it for years now.
Your config.log contains the following error message generated by the test for -lgd
You can check whether this is in fact the problem using the following command
If it is true that your system is missing Xpm.so then there should be a line in the ldd output that says " ... not found" after the name of the library that gd.so depends on. That would seem to indicate that the libg3 package should have listed Xpm (on my system lib64xpm4) as a dependency but apparently did not.
locate
didn't work for me, because indexing is disabled. However,ldd /usr/lib64/libgd.so* | grep -i "not found"
gave no output, and without the pipe everything looked good (Xpm was listed as well).But I discovered that the xpm-devel package was missing – after manually installing it ./configure ran smoothly and everything compiled without trouble. Thank you very much for helping!