Datasheet
P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Chapter 1
system can be controlled using the rpm command-line tool, and you’ll see how to install the required
components using this interface.
Which RPM Packages Do You Need?
The RPM packages you will need are:
❑
zlib
❑
libpng
❑
libjpeg
❑
gd
❑
gd-devel
❑
apache
❑
mod_php4
You can find out which of them are already installed on your system by typing the following at a
command prompt, substituting in the name of each of these packages in turn:
> rpm -q zlib
zlib-1.1.3-6-i386
> rpm -q libng
Package libpng is not installed
As you can see, if the package is installed, it gives you a random-looking string. If it isn’t installed, you
get a helpful error message. The string actually tells you which version of the software you installed
using the package (1.1.3 in this case), which release of the package it is (this example has the sixth public
release installed), and the architecture for which the RPM was compiled (Intel 386 compatible, which is
just as well, because the package is installed on a Pentium III for this book).
Note which of the packages you already have, and which versions they are (the version number is more
important than the release number).
Apache is at version 1.3.29 if you want to remain at the old versions of GD, or 2.0.48 if you want to be
current with the latest version of GD. Of course, if you are installing PHP5, GD is now bundled with PHP
and is up to version 2.0.17
Then locate suitably up-to-date versions of all the packages that you don’t have already, or have old
versions for. As suggested, try your install CDs, your distributor’s Web site, and www.rpmfind.net.
Once you have current versions of all the packages you need, you can install them. The command for
upgrading an existing installation or installing a package for the first time is exactly the same. Navigate
your command prompt to the location of the files on the CD or the directory into which you downloaded
the RPMs. As root, type:
> rpm -Uh libpng-1.0.5-3-i386.rpm
##################
For each package you need to upgrade or install, just substitute the name of the package file you
downloaded. The line of # signs extends across the screen as each installation progresses.
8