coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: thatotherguy on June 07, 2005, 04:16:15 AM

Title: gd2 Question
Post by: thatotherguy on June 07, 2005, 04:16:15 AM
Hi-
I checked my phpinfo.php and I had the following in bold that had to do with gd.  There isn't a table that says gd2.  Can someone tell me if I'm close to having gd2 installed on my Linux box?  Do I still need to install gd2 or do I just need to edit the php.ini file a little more?

Configure Command     './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'

Any help in the right direction would be greatly appreciated.
--thatotherguy
Title: Re: gd2 Question
Post by: Joachim Müller on June 07, 2005, 08:30:14 AM
http://coppermine.sourceforge.net/faq.php#VersionGD
Title: Re: gd2 Question
Post by: thatotherguy on June 07, 2005, 10:49:22 PM
Yes, I looked at this and I didn't see a table with GD in my phpinfo.php page.  The instructions talk about installing it on a Windows server, not a Linux server.  Any other suggestions?
Title: Re: gd2 Question
Post by: kegobeer on June 07, 2005, 10:51:23 PM
http://www.boutell.com/gd

All the help with GD you should need will be on their site.
Title: Re: gd2 Question
Post by: thatotherguy on June 08, 2005, 02:00:53 AM
Okay, I did exactly as they tell you to and I got no error messages.  I restarted apache, rebooted the machine and still the 'gd' table didn't appear in my phpinfo page.  Just in case anyone can help, it's http://www.thatotherguy.com/phpinfo.php  Thanks to anyone that can lead me in the right direction.
:)
Title: Re: gd2 Question
Post by: kegobeer on June 08, 2005, 02:14:16 AM
Did you recompile php --with-gd=/path/to/where/you/put/gd?
Title: Re: gd2 Question
Post by: thatotherguy on June 08, 2005, 02:26:24 AM
No I didn't.  I put it in the following directory: /home/ryan/gd-2.0.33

These are some details using ls -lt

drwxrwxrwx   6  200  300     4096 Jun  7 19:36 gd-2.0.33

I then tried the following command:

[root@fedorabox /home/ryan]$ --with-gd=/home/ryan/gd-2.0.33
-bash: --with-gd=/home/ryan/gd-2.0.33: No such file or directory

Do I need to look into permissions?  Thanks for getting me closer...
Title: Re: gd2 Question
Post by: kegobeer on June 08, 2005, 04:25:32 AM
You misunderstand what I'm saying.  You need to recompile PHP.  You must include this command

--with-gd=/home/ryan/gd-2.0.33

when compiling PHP.  You should go to www.php.net and look at the GD section.  There are instructions for what to do when compiling PHP with GD.
Title: Re: gd2 Question
Post by: Joachim Müller on June 08, 2005, 07:31:15 AM
oh, come on. You shouldn't be recompiling php if you don't know what a --with parameter is being used for. Get the most recent php stable package, there are packages for all flavours of operating systems. Best bets are php.net or your distro's home page. Please understand that this board does not deal with server setup in general. If you insist on recompiling php, make sure you have at least the jpeg extension enabled in GD.
Title: Re: gd2 Question
Post by: thatotherguy on June 08, 2005, 07:42:03 AM
Wow-
I guess I've searched everywhere now....even on the page you sent me too.

I tired ./configure --with-gd=/home/ryan/gd-2.0.33  and this still did not work.

It ran, but still the table didn't show up in the phpinfo page...

I'm about to give up....
Title: Re: gd2 Question
Post by: kegobeer on June 08, 2005, 01:17:00 PM
Download a PHP package that is bundled with GD for your flavor of Linux, like Joachim suggests.
Title: Re: gd2 Question
Post by: Nibbler on June 08, 2005, 04:01:16 PM
You appear to be using fedora, so all you need do is

> yum install php php-gd

and PHP with GD will be installed.
Title: Re: gd2 Question
Post by: thatotherguy on June 08, 2005, 07:24:33 PM
Okay, I did 'yum install php php-gd', but do I still need to recompile because it's still not showing up as a table.  I restarted my machine and apache, so I'm kind of puzzled.  The commands listed on php.net didn't really seem to help either.  Thanks Nibbler.
Title: Re: gd2 Question
Post by: thatotherguy on June 08, 2005, 08:54:22 PM
Okay, it worked good.  I tried the ./configure, make, make install.  Thanks a lot!