Click to See Complete Forum and Search --> : gdlib installation


debbiepotts2000
09-06-2001, 02:00 AM
I am new to the unix world. I have been assigned the task of installing gd library on an apache server running on a linux machine. This server already has php and mysql installed.

I have a file gdlib.tar.tar. I have no idea what it is and how to go about the installation. All I have done till date is log into the server using telnet and play around with mysql.

Can somebody help me?

Thanks,
Debbie.

Anon
09-06-2001, 06:17 AM
Looks like you've got the source code there which will need to be compiled.

First unpack the tar file with "tar xvf gdlib.tar.tar" which should expand it into a directory.

Then in that directory you need to do something like;

./configure
make
make install

Could be easier to simply use one of the install kits like NuSphere: http://www.nusphere.com/cgi-bin/nsp.cgi/custsrvc/utils/free_download.htm or Linux Easy Installer: http://www.phpmylinux.net/?rub=lei

There's more of these at hotscripts: http://www.hotscripts.com/PHP/Scripts_and_Programs/Installation_Kits/

Hope that helps.

smarlowe
09-06-2001, 12:10 PM
firstly, make sure that package hasn't already been installed bia RPM (I'm assuming you're running RedHat of some flavor)

If it has, then the newer versions of PHP will see it and automatically use it during install.

to check for the gdlib, do this (as root):

rpm -qa|grep gd

and look for a package named gd-1.x.y-z

where x,y, and z are numbers. If so, then gdlib is already installed. the latest version is around 1.8.3 or so, and does NOT handle gif files.

If it isn't installed, look on your distro's CDROM and see if that RPM file is there, and install it from the CD.

then, when you run the ./configure script in the php source directory, it should pick up on the gd library being there and autoconfigure for it.