LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2007, 03:41 AM   #1
BlackRabbit
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 83

Rep: Reputation: 15
PHP GD problems: Missing libX11.so.6 => how to get it?


Hi,

had some troubles with my newly installed Slackware 12.0 box. As this question is not Slack-specific, I choose to post it here..

I use this box for PHP developement (as it provides PHP 5.2 & MySQL 5.0). However, when testing my old (PHP 4.x) code on this box, I encountered problems whenever an image should be generated.

You can find a phpinfo()-copy of this server on the following page:
http://www.actua-forums.be/extra/phpinfo.html
As you can see, PHP is configured with '--with-gd=shared', so it should work, right? However, no 'GD' summary is shown on the page.

After some searching, I found out that I miss 2 files:
Code:
/usr/lib/php/extensions# ldd gd.so
        linux-gate.so.1 =>  (0xffffe000)
        libt1.so.5 => /usr/lib/libt1.so.5 (0xb7ebd000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e50000)
        libX11.so.6 => not found
        libXpm.so.4 => not found
        libpng.so.3 => /usr/lib/libpng.so.3 (0xb7e15000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7e00000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7de0000)
        libc.so.6 => /lib/libc.so.6 (0xb7c9e000)
        libm.so.6 => /lib/libm.so.6 (0xb7c77000)
        /lib/ld-linux.so.2 (0x80000000)
I guess I could just copy these files to the correct directory, right?
In that case: where can I download this single files from?
If not, how can I find out which package I need to install in order to get it (and dependencies) right?


Important: this is a pretty old box (P1 233) without a lot of diskspace. Because of this, I prefer not to install to many things like a complete X11 environment

Thanks for the info

Last edited by BlackRabbit; 08-15-2007 at 03:42 AM.
 
Old 08-15-2007, 05:44 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
libX11.so.6 is a symlink to the most recent version of libX11 (libX11.so.6.2.0 on my machine). Same goes for libXpm.so.4, it's a link (libXpm.so.4.11.0 on my machine). Just create the links and you should be in business.
 
Old 08-15-2007, 05:57 AM   #3
BlackRabbit
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by weibullguy View Post
libX11.so.6 is a symlink to the most recent version of libX11 (libX11.so.6.2.0 on my machine). Same goes for libXpm.so.4, it's a link (libXpm.so.4.11.0 on my machine). Just create the links and you should be in business.
Code:
root@datanuke209:/usr/lib/php/extensions# find / -name "libX*"
root@datanuke209:/usr/lib/php/extensions#
As you can see, there is no file to symlink to
As said: the box does not have X11 (or any other window manager/GUI) installed..

Could you perhaps (rapid)share those files, so I can just copy them (& symlink them)? Or is that a bad idea?
 
Old 08-15-2007, 06:48 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by BlackRabbit View Post
As said: the box does not have X11 (or any other window manager/GUI) installed..
No you didn't.

Quote:
Originally Posted by BlackRabbit View Post
Could you perhaps (rapid)share those files, so I can just copy them (& symlink them)? Or is that a bad idea?
You should be able to install just the missing X11 libraries if you use modular (i.e., >=Xorg-7.0) X Windows. You'll also need xtrans, libXdmcp, and libXau for libX11. libXt, libSM, and libICE are required for libXpm. Just copying mine may not work because I've compiled mine with the specific options I want.
 
Old 08-15-2007, 07:01 AM   #5
BlackRabbit
Member
 
Registered: Oct 2003
Distribution: Debian
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by weibullguy View Post
No you didn't.
Quote:
Important: this is a pretty old box (P1 233) without a lot of diskspace. Because of this, I prefer not to install to many things like a complete X11 environment
But I guess this is not 100% clear

Quote:
You should be able to install just the missing X11 libraries if you use modular (i.e., >=Xorg-7.0) X Windows. You'll also need xtrans, libXdmcp, and libXau for libX11. libXt, libSM, and libICE are required for libXpm. Just copying mine may not work because I've compiled mine with the specific options I want.
Darn..
But is I can find someone with a standaard Slackware install, it should be ok just to copy these files?
 
Old 07-25-2008, 02:02 PM   #6
TheLinuxDuck
Member
 
Registered: Sep 2002
Location: Tulsa, OK
Distribution: Slack, baby!
Posts: 349

Rep: Reputation: 33
Quote:
Originally Posted by weibullguy View Post
No you didn't.
With all due respect, that is not true. Perhaps the words were not explicitly stated, but the original post made it very clear that X11 was not installed at all. This comment was totally unnecessary.

Now, the rest of the your reply was top notch! You gave not only the main libraries needed, but the names of all dependencies to provide support for those libraries. It would have taken me forever to determine that.

Quote:
Originally Posted by BlackRabbit View Post
But is I can find someone with a standaard Slackware install, it should be ok just to copy these files?
I don't know if you've solved this yet, but I was in the exact same boat as you. Slack 12 without X11 installed, needed GD for web stuff.

Using the information given by weibullguy, I was able to get GD working just fine.
Just download and install these packages:

http://slackware.cs.utah.edu/pub/sla...3-noarch-1.tgz
http://slackware.cs.utah.edu/pub/sla...0.2-i486-1.tgz
http://slackware.cs.utah.edu/pub/sla...0.3-i486-1.tgz
http://slackware.cs.utah.edu/pub/sla...1.1-i486-4.tgz
http://slackware.cs.utah.edu/pub/sla...0.5-i486-1.tgz
http://slackware.cs.utah.edu/pub/sla...0.3-i486-1.tgz
http://slackware.cs.utah.edu/pub/sla...0.3-i486-1.tgz
http://slackware.cs.utah.edu/pub/sla...5.6-i486-1.tgz

Once they are installed, your GD should work just fine! It did for me. I didn't install them in any particular order. I just used pkgtool to 'install from the current directory'.

TLD
 
1 members found this post helpful.
Old 05-20-2009, 05:14 PM   #7
havenster
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 1
Nice list, I installed all of those, but required one more libxcb-xlib which is required by libXt. You can find it here:

http://slackware.cs.utah.edu/pub/sla...1.0-i486-2.tgz
 
1 members found this post helpful.
Old 02-07-2010, 09:01 AM   #8
kik.lozev
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Rep: Reputation: 1
Hi there - as i had same problem in slack 13 and this was the first result in google about it.
There is another dependency (at least on slack 13):
libXdmcp-1.0.2-i486-2.txz
found again under x/ series of the install source
 
1 members found this post helpful.
  


Reply

Tags
php, slackware, x11



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LibX11 problem in gtk Carez Debian 7 11-20-2008 01:08 PM
PHP5 Upgrade Error: Missing Dependency: php = 4.3.x is needed by package php-pear vsystems Linux - Server 1 05-02-2007 07:17 AM
libX11 problem iankh Linux - Software 3 07-29-2004 06:30 PM
pango-1.0.5 can't find libX11.so.6, but it is on my system behmjose Linux - Newbie 3 02-21-2004 10:15 PM
libx11.so.6 and Tactical Ops greendemon Linux - Newbie 0 01-25-2004 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:57 PM.

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
Open Source Consulting | Domain Registration