gd2 Question gd2 Question
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

gd2 Question

Started by thatotherguy, June 07, 2005, 04:16:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thatotherguy

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

Joachim Müller


thatotherguy

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?

kegobeer

http://www.boutell.com/gd

All the help with GD you should need will be on their site.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

thatotherguy

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.
:)

kegobeer

Did you recompile php --with-gd=/path/to/where/you/put/gd?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

thatotherguy

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...

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

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.

thatotherguy

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....

kegobeer

Download a PHP package that is bundled with GD for your flavor of Linux, like Joachim suggests.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler

You appear to be using fedora, so all you need do is

> yum install php php-gd

and PHP with GD will be installed.

thatotherguy

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.

thatotherguy

Okay, it worked good.  I tried the ./configure, make, make install.  Thanks a lot!