Click to See Complete Forum and Search --> : PHP 4.1.1 rpms


tuxmonkey
01-28-2002, 11:50 PM
For anyone in need. I have posted rpms for PHP 4.1.1 on my site. You can find them at http://www.tuxmonkey.com/modules.php?name=Downloads&d_op=viewdownload&cid=1

Anon
01-29-2002, 11:27 AM
Thanks !

Anon
01-29-2002, 04:30 PM
Can someone provide newbie friendly instructions for compiling the source RPMs for Red Hat 7.1. This is what I tried:

> rpm --rebuild php-4.1.1-1.tm.src.rpm
Installing php-4.1.1-1.tm.src.rpm
error: failed build dependencies:
libxml2-devel is needed by php-4.1.1-1.tm
curl-devel >= 7.8 is needed by php-4.1.1-1.tm

Thanks!

tuxmonkey
01-29-2002, 05:13 PM
What you are doing is correct but you dont have what the package needs to compile. You can either install what it needs or you can install the source rpm (rpm -ivh php-4.1.1-1.tm.src.rpm) then edit /usr/src/redhat/SPECS/php.spec. You will see a section that looks something like

%configure \
--prefix=%{_prefix} \
--with-config-file-path=%{_sysconfdir} \
--with-expat-dir=/usr \
--disable-debug \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
......

Find the lines --with-curl, --with-xml, and --with-xmlrpc,and remove them. Save the file and type "rpm -ba /usr/src/redhat/SPECS/php.spec". Unless your missing something else this should then rebuild the rpms.