PHP GD problems: Missing libX11.so.6 => how to get it?
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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.
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.
As said: the box does not have X11 (or any other window manager/GUI) installed..
No you didn't.
Quote:
Originally Posted by BlackRabbit
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.
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?
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
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:
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'.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.