Hi Team,
I am installing gnuplot-5.2.8 with libgd-2.3.0, the png terminal is missing. I have tried installing the libgd, but still unable to get png terminal. Please advise.
./configure --prefix=/home/scratch/junaid/gnu/gnuplot-5.2.8/build --with-texdir=/home/scratch/junaid/gnu/gnuplot-5.2.8/build/texmf --with-gd=/home/scratch/junaid/gnu/libgd-2.3.0/build/lib
make
make check
make PREFIX=/home/scratch/junaid/gnu/gnuplot-5.2.8/build install
Is the parameter to the configure command is right?
./configure --prefix=/home/scratch/junaid/gnu/gnuplot-5.2.8/build --with-texdir=/home/scratch/junaid/gnu/gnuplot-5.2.8/build/texmf --with-gd=/home/scratch/junaid/gnu/libgd-2.3.0/build/libMy guess is that you have installed the libgd library itself, but not the full package. You have not mentioned what platform you are using, but usually the required package is called something like
lib64gd-devel.If that does not fix the problem, please upload the output file "config.log". That is where the relevant error message should be.
Also note that even without configuring libgd, including cairo graphics support wll provide a png terminal. I recommend installing the
*devel*packages for libcairo as well.Last edit: Ethan Merritt 2020-11-18
Please find the attached config.log.... Thanks for the quick response.
uname -m = x86_64
uname -r = 2.6.32-754.2.1.el6.x86_64
uname -s = Linux
From the log file
It looks for but cannot find a file
/home/scratch/junaid/gnu/libgd-2.3.0/build/lib/lib/libgd.so
I do not know what configuration/build options you used to build the gd library, but on my machine it ends up in the equivalent of
.../libgd-2.3.0/src/.libs/
so that is the directory you would have to specify to gnuplot's configure command
after correction library path and setting the LD_LIBRARY_PATH/LDFLAGS -- it really worked...
I could see the png binary inside. Many thanks for your help.