Need PHP/Pear extension GD
Code:
pear/Image_Color requires PHP extension "gd" |
Grab yourself the original Slackbuild script used to build the package. It will be on your installation media in the sources (DVD) or on any mirror that holds your version of Slack, or get one from slackbuilds.org.
Modify the original, adding the extra flags you need, and rebuild. EDIT: For example, look in here (if you were running -current): http://ftp.belnet.be/mirror/ftp.slac.../source/n/php/ |
Ok, I didn't realize the slack source was made from slackbuild scripts.
So I downloaded php and added the --with-gd at the end of the configure, then it needed alpine so I downloaded it and its compiling now. |
well, another roadblock'
checking for utf8_mime2text signature... new checking for U8T_DECOMPOSE... configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. make: *** No targets specified and no makefile found. Stop. make: *** No targets specified and no makefile found. Stop. looks like something to do with imap-ssl which I shouldn't need, trying without. took out both --with-imap options and got this far configure: error: libXpm.(a|so) not found. which says I need libXpm which needs xorg-macros I'm not finding either of these on slackware or slackbuilds so I wonder how the original slackbuild worked, or maybe these are not needed without GD which is why GD was not included. documenting in case anyone else ever tries. |
Well, first of all, you can simply type:
Code:
php -i | less Second, I use Image_Color here as well and never needed to rebuild my own php... |
How did you get it to install? Mine says that extension is missing and stops.
even the php that came with slack doesn't look right, I started up apache and I get the listing of the php source when I browse to it instead of it actually running it. |
I needed three extensions and simply typed:
Code:
# pear install Image_Color-1.0.4 Just tried it on a clean Slackware 13.1 system and it works. Niels |
This is a new install of 13.1
pear install Image_Color-1.0.4 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/gd.so' - libX11.so.6: cannot open shared object file: No such file or directory in Unknown on line 0 pear/Image_Color requires PHP extension "gd" No valid packages found install failed OK, I need to back up a step, I see gd.so but libX11.so.6 is missing. I did an install all of slack so I need to see where to find that. |
Code:
root@reactor: grep libX11.so /var/log/packages/* |
@enine: It really looks like your Slackware installation is not complete then... :(
I did that test a few posts back on a clean box, fresh, full, stock Slackware 13.1 installation. Run that 'grep' line GrapefruiTgirl posted and tell us the result. |
I don't know what happened, others seem missing as well, guessing maybe I missed a section during the install or something, I reinstalled the whole thing again.
|
Well, I hope this way it works out fine then :)
|
Yep GD links with a few packages from X
Refer to http://www.linuxquestions.org/questi...9/#post3367759 |
Yes, worked fine after a reinstall, I don't know how I missed those packages the first time.
I still have the same php problem though but its unrelated. |
Well, glad it was solved :)
|
I figured even thought I installed a half dozen packages to get pear going I may have problems in the future as there could be other packages missing. Its pretty quick to start clean, I have my .iso on a nfs share then ESX mounts it as storage so I just map an .iso to the guest and reboot. Took maybe 30 minutes even on my underpowered hardware.
|
All times are GMT -5. The time now is 09:18 PM. |