MediaWiki thumbnail error Incomplete GD library configuration: missing function image
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Which Distro are you using? From your first post I assume you compiled gd yourself, did you compile PHP as well? If you did compile PHP all you'll have to do is recompile it wich shouldn't affect the running wiki.
If you're going to recompile PHP to enable gd do a:
And look for gd in the output. There should be something like --with-gd=path_name so when you do your ./configure it'll be something like:
./configure --with-gd=/usr/local/gd (or wherever the directory where you compiled gd is)
Once you've recompiled you'll just need to restart Apache to use the new PHP binaries with gd support.
If you're using a rpm based distro you should be able to install a package that already enables gd look for something like php-gd.
Hi yes i didnt copile and install php 5.2.0 myself.
i've begun to recompile php again however i get this error now and wonder if you know wha it means. I pulled this ./configure line from the media wiki website.
'./configure' '--with-mysql' '--without-sqlite' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-zlib' '--with-ldap' '--with-gd' '--with-jpeg-dir=/usr/local/lib' '--with-iconv-dir' '--enable-mbstring'
and i changed the apxs2 to be '--with-apxs2=/usr/sbin/apxs2'
when i use this config i get the error
configure: error: libjpeg.(a|so) not found.
now i have downloaded and installed libjpeg-6b and done the following
this seems to have installed the libjpeg librar. however i still get the error.
If not you should point it to where you compiled it. Do you really need libjpeg? If not I'd try removing that entry and just going with what you know you absolutely need.
Once you have it working and you find out you do need some extra functionality you can always recompile with the correct flags. My advice is to document which flags you do use so if you do need to recompile later you won't miss them.
That's the options for LDAP support. If you don't need it don't put in the following:
If you do need LDAP support in PHP then you'll need to install OpenLDAP or another LDAP server that PHP works with. I'm really only familiar with OpenLDAP, but I'd think others would be supported. Anyway, you probably don't have it enabled now so I'd just disable it and see if it will build.
Ok. i've removed this. i did download the openldap package but it was asking for some kind of db to be installed also so thought i shoul check with you before i went aheaqd installing it all. Just in case my stupidness brought the wiki down. what exactly is the openldap for?
again i wasnt sure if this would be needed to help solve my problem. i did configure again without this
Mmmmm...You might make sure gd is enabled by going back to the info.php file you setup earlier. The other thing you might try it to change your '--with-gd' to:
And then see if the thumbnails work.
OpenLDAP is an open source LDAP server. LDAP stands for Light Weight Directory Access Protocol. Basically it's another way to authenticate users, and also store user information such as name, address, email, etc. If your storing all your user information in the MySQL database then at this time you really don't need to enable it.
this compile ok however when i make php i get the error
/home/matt/php-5.2.0/ext/gd/gd.c:5030: undefined reference to `php_gd_gdImageSmooth'
ext/gd/.libs/gd.o: In function `zif_imageconvolution':
/home/matt/php-5.2.0/ext/gd/gd.c:5112: undefined reference to `php_gd_gdImageConvolution'
ext/gd/.libs/gd.o: In function `zif_imageantialias':
/home/matt/php-5.2.0/ext/gd/gd.c:5138: undefined reference to `php_gd_gdImageAntialias'
ext/gd/.libs/gd.o: In function `php_free_gd_image':
/home/matt/php-5.2.0/ext/gd/gd.c:1176: undefined reference to `php_gd_gdImageDestroy'
ext/gd/.libs/gd.o: In function `_php_image_bw_convert':
/home/matt/php-5.2.0/ext/gd/gd.c:4650: undefined reference to `php_gd_gdImageWBMPCtx'
collect2: ld returned 1 exit status
(i supplied a bit of the print out too) its seems to not find the gd library. any ideas?
Okay I think you've got the wrong directory for your "--with-gd=/usr/local". You'll need to specify the directory where the gd library files are. There should be an "include" directory when you installed gd.
Check somewhere under /usr/local/lib for
file. There will probably be version numbers at the end of it. Where ever that file is put that directory in your --with-gd= argument: