Topics include: programming, Apple, Unix, gadgets, large-scale web sites and other nerdy stuff.

notes on building PHP 5 on a Fedora Core 3 system

2006-04-07 20:24:18

I have a generally vanilla FC3 system. I wanted to update to PHP 5 because of security issues in PHP. These are the extra things I had to do to get it to work.

First, my configure line is this:

./configure --with-apxs2=/usr/sbin/apxs --with-mysql


I had to make links for libjpeg and libpng:

cd /usr/lib
ln -s
ln -s

These are packages I needed to add:

yum -y install libpng-devel
yum -y install freetype-devel
yum -y install libc-client-devel
yum -y install unixODBC-devel
yum -y install aspell-devel

I actually had some trouble with postgresSQL connector, so I turned it off. I don't use it myself, so that doesn't really matter.

I tried to replicate the configure line from my php4. Big mistake. All I got were segfaults and link errors. I re-configured with the minimalist line above. Now everything is happy.