For PHP4 for Centos I have php-mcrypt and php-mhash at my site (http://tcs.uj.edu.pl/~buildcentos/) You can probably look at that diff and put together something for PHP5.
You need to:
install php5 src.rpm (get from centosplus) go to source spec directory (/usr/src/redhat/SPECS) and apply something along the lines of the diff linked above. compile via rpmbuild -ba --with=mcrypt php.spec (maybe ' ' instead of '=', can't remember) take generated php-mcrypt rpm (inside /usr/src/redhat/RPMS) and enjoy.
If you do more of this you should probably set up a non-root build environment.
Basically: create a new user (or use a current user), stick the above attachment (after editing) into ~user/.rpmmacros create ~user/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp} directories
Use above process, except this time running as user and not as root, and replacing /usr/src/redhat with ~user/rpm
Another simpler solution is to as root run chown -R user:user /usr/src/redhat (but it's not really nice...)
Cheers, Maciej
On Tue, 5 Dec 2006, Ferdinando Santacroce wrote:
Hi all! I need this PHP extension. I'm in CentOS 4.4, plus extras, plus, dag, freshrpm and rpmforge repos, but I can't find it. I found libmcrypt, but PHP seems ignore it... Ah, I use PHP5, MySQL5 and Apache 2.2 I tried to hand write right conf of *.ini PHP conf files, and I tried to manually soft-link libraries in php.d/modules/.. folder, but nothing works. So I would know if there's a Centos repos for this extension. FC5 repos have it, but I don't know if including a Fedora repos into CentOS would be high risk....
Can someone make me know? Thank you guys, and girls, of course...! ;-)
Nando Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos