LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-27-2006, 10:45 AM   #1
Antani3
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Question 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

Last edited by Antani3; 08-27-2006 at 11:02 AM.
 
Old 08-27-2006, 11:31 AM   #2
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, WinXP, Windows 7
Posts: 1,253

Rep: Reputation: 55
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
 
Old 08-27-2006, 12:21 PM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,525

Rep: Reputation: 94
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.
 
Old 08-28-2006, 10:15 AM   #4
Antani3
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up

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
 
  


Reply

Tags
compile, gnuplot, libraries, missing, shared


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving X11 display settings at run-time? matthias_k Linux - Software 5 07-06-2006 10:49 AM
no x11 terminal in gnuplot 4.0.0 polzbert Linux - Software 1 01-10-2006 05:54 AM
can't get x11 to run at 1920x1200 GUIPenguin Linux - General 1 11-06-2005 04:00 PM
X11 DRI 3d performance won't run as a normal user? houler Linux - Software 1 04-11-2005 02:43 AM
can't run X11 programs from xterm Sin-D Linux - General 4 12-18-2003 12:55 PM


All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration