Thursday, March 24, 2011

PHP4 X86_64 on Centos5

After some Hardcore testing, I finally figured it out :D Kids we now have 4.4.9 x86_64. Here are the modifications I had to make to get it to compile correctly! WOOHOO!

wget http://downloads.mysql.com/archives/mysql-5.0/MySQL-devel-community-5.0.45-0.rhel5.i386.rpm

rpm --oldpackage --force -Uvh MySQL-devel-community-5.0.45-0.rhel5.i386.rpm

[root@localhost SPECS]# diff php4-4.4.9_melinko.spec php4-4.4.8_LAB8.spec
8,9c8,9
< Version: 4.4.9
< Release: melinko%{?dist}
---
> Version: 4.4.8
> Release: LAB8%{?dist}
556c556
< --with-mysql=shared \
---
> --with-mysql=shared,%{_prefix} \
573,574c573,574
< --with-mime-magic=/usr/lib/rpm/magic.mime \
< $* || tail config.log
---
> --with-mime-magic=%{_libdir}/rpm/magic.mime \
> $* || tail -300 config.log
586c586
< build --with-apxs2=/usr/sbin/apxs
---
> build --with-apxs2=%{_sbindir}/apxs

No comments: