View previous topic :: View next topic |
Author |
Message |
ctittle Newbie
Joined: 30 Jan 2006 Posts: 1
|
Posted: Mon Jan 30, 2006 11:38 pm Post subject: Recompiling PHP with GD Supprt? |
|
|
First of all, I would like to thank the author for proviidng such great scripts and support!
I've been googling for the past three days and I cant seem to find a real good source for me. I have php 4.3.9 installed on a Redhat Enterprise server (I believe it's a RPM installation). I have no GD Support displaying in the phpinfo() spit out, but the image does load in the interface loader, but it doesnt crop. So I decided to install GD library into /usr/local/lib . Now I'm not sure where to go. I have no idea how to recompile php, I have been seening ./configure etc etc of the source, but I dont even think I have the original source files. My command line in php info is:
./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--with-apxs2=/usr/sbin/apxs'
Any help with how/where to do the ./configure of PHP so GD library is loaded, would be appreciated!
Thanks again
Chris |
|
Back to top |
|
 |
amnuts Site Admin

Joined: 01 Sep 2002 Posts: 662 Location: East Sussex, England
|
Posted: Tue Jan 31, 2006 7:16 am Post subject: |
|
|
Hi Chris, and welcome to the board!
You are certainly right in that it's not cropping because GD is not available. You configure looks to have it included for PHP, so perhaps there's a problem with the library?
Save that configure to a file so you have a back up of it. Then check out the instructions here:
http://www.onlamp.com/pub/a/php/2003/03/27/php_gd.html
That might help you out. Once you're done with that, and (hopefully) GD works, then integrate what you've done back in to your big config string and re-configure so you get all the rest of the functionality back that you're used to.
Andy |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|