LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   can't run gnuplot without x11 (https://www.linuxquestions.org/questions/slackware-14/cant-run-gnuplot-without-x11-477786/)

Antani3 08-27-2006 09:45 AM

can't run gnuplot without x11
 
I used to run gnuplot on my slackware box which does not have x11 installed. It's a remote service system and doesn't need a graphic server.

Following recent packages upgrades, gnuplot comes out with the following error:

Code:

prj@opel:~$ gnuplot
gnuplot: error while loading shared libraries: libXpm.so.4: cannot open shared object file: No such file or directory
prj@opel:~$ ldd /usr/bin/gnuplot
        libz.so.1 => /usr/lib/libz.so.1 (0x4001d000)
        libgd.so.2 => /usr/lib/libgd.so.2 (0x4002f000)
        libXpm.so.4 => not found
        libX11.so.6 => not found
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40080000)
        libfontconfig.so.1 => /usr/X11R6/lib/libfontconfig.so.1 (0x4009d000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x400c4000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x4012f000)
        libm.so.6 => /lib/libm.so.6 (0x40168000)
        libc.so.6 => /lib/libc.so.6 (0x4018b000)
        libXpm.so.4 => not found
        libX11.so.6 => not found
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402ba000)
        /lib/ld-linux.so.2 (0x40000000)

I have upgraded gnuplot and glibc packages and now it looks like gnuplot is linked with libgd.so.2 which in turn links some X11 shared libraries, namely:
  • libXpm.so.4
  • libX11.so.6

Is this correct and the intended behaviour?
Note that gnuplot did work correctly without these libraries (and without X11 installed) before the last package update.

Thank you

Franklin 08-27-2006 10:31 AM

My guess would be the following:

Wed Aug 16 19:11:39 CDT 2006
l/gd-2.0.33-i486-1.tgz: Added gd-2.0.33.
Suggested by Cal Peake.

xap/gnuplot-4.0.0-i486-2.tgz: Recompiled against new gd-2.0.33 package.
Thanks to Michael Iatrou for the suggestion.

It would seem that the linking to gd may have also caused a linking to X11. Looking at the GD home page leads me to think gd depends on X11. Perhaps dropping back to the old gnuplot is the way to go for you if you don't want to install X11.

HTH

HTH

titopoquito 08-27-2006 11:21 AM

Quote:

Originally Posted by Franklin
My guess would be the following:

Wed Aug 16 19:11:39 CDT 2006
l/gd-2.0.33-i486-1.tgz: Added gd-2.0.33.
Suggested by Cal Peake.

xap/gnuplot-4.0.0-i486-2.tgz: Recompiled against new gd-2.0.33 package.
Thanks to Michael Iatrou for the suggestion.

It would seem that the linking to gd may have also caused a linking to X11. Looking at the GD home page leads me to think gd depends on X11. Perhaps dropping back to the old gnuplot is the way to go for you if you don't want to install X11.

HTH

HTH

You're right, I just tried to do a configure --without-gd and voilą: the dependency is gone.
The best seems to be to download Slackware's source directory for gnuplot, modify the Slackbuild script and compile it without gd if you don't have a X server installed.

Antani3 08-28-2006 09:15 AM

Quote:

Originally Posted by titopoquito
The best seems to be to download Slackware's source directory for gnuplot, modify the Slackbuild script and compile it without gd if you don't have a X server installed.

Thank you for your answer, I'll do as you suggest :)


All times are GMT -5. The time now is 11:14 PM.