patch for RedHat 8.0 php-snmp module

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
necik
Posts: 2
Joined: Wed Aug 14, 2002 1:30 pm

patch for RedHat 8.0 php-snmp module

Post by necik »

I have found a patch for php-net-snmp at:
http://www.phpbuilder.com/mail/php-deve ... 1/0470.php
but it did not work, then I applied some fix and great! WORKS!

Do this:
get 2 patches from:

http://www.necik.bochnia.pl/php-4.2.2-net-snmp.patch
http://www.necik.bochnia.pl/spec-php-net-snmp.patch

and find somewhere on the net file:
php-4.2.2-8.0.5.src.rpm

instal rpm file:
rpm -ivh php-4.2.2-8.0.5.src.rpm

copy php-4.2.2-net-snmp.patch to /usr/src/redhat/SOURCES

patch spec file:
patch < spec-php-net-snmp.patch

cd to /usr/src/redhat/SPEC and run:
rpmbuild -bb php-4.2.2-8.0.5.spec

go, drink a coffe...
install needed rpm's from /usr/src/redhat/RPMS/i386
rpm -ivh php-snmp-4.2.2-8.0.5.i386.rpm

and restart apache
/etc/init.d/httpd restart

That's all.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest