Menu

#258 png terminal missing - gnuplot-5.2.8 with libgd-2.3.0

None
closed
nobody
None
5
2020-11-23
2020-11-18
No

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

Discussion

  • Mohammed Junaid

    Mohammed Junaid - 2020-11-18

    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/lib

     
  • Ethan Merritt

    Ethan Merritt - 2020-11-18

    My 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
  • Mohammed Junaid

    Mohammed Junaid - 2020-11-19

    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

     
    • Ethan Merritt

      Ethan Merritt - 2020-11-19

      From the log file

      configure:10925: checking for gdImageCreateTrueColor in -lgd
      configure:10950: gcc -o conftest -g -O2   -I/home/scratch/junaid/gnu/libgd-2.3.0/build/lib/include  -L/home/scratch/junaid/gnu/libgd-2.3.0/build/lib/lib conftest.c -lgd  -ldl -lm  -ljpeg -lpng -lfreetype -lz >&5
      /usr/bin/ld: cannot find -lgd
      

      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

       
  • Mohammed Junaid

    Mohammed Junaid - 2020-11-23

    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.

     
  • Ethan Merritt

    Ethan Merritt - 2020-11-23
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.