pecl install uploadprogress fails c compiler error

The installation of the pecl uploaprogress library fails with a c compiler failure on centos 4.8

This ie because pecl does the install in the /tmp directory and this directory is protected such that no programs can be executed from it.

The solution is as follows:

Do the install as a genuine user - not root.

> pecl dowload uploadprogress
> guzip uploaprogress-1.0.1.tgz
> tar -xvf ploaprogress-1.0.1.tar
> cd uploadprogress-1.0.1
> phpize
> ./configure
> make
> switch to root again (su or other)
> make install