Edward,
You should be asking this on a Redhat/Fedora or PHP list, not here. I've not used a RPM-based distro in years.
Javier
Edward Wang wrote:
Hi Javier, thanks your point.
I did try to recompile my PHP SRPM with-snmp. What I did is making changes in the php.spec file, and add:
%package snmp Summary: A module for PHP applications that query SNMP-managed devices. Group: Development/Languages Requires: php = %{version}-%{release} BuildRequires: net-snmp-devel
%description snmp The php-snmp package contains a dynamic shared object that will add support for querying SNMP devices to PHP. PHP is an HTML-embeddable scripting language. If you need SNMP support for PHP applications, you will need to install this package and the php package.
also add under: "%configure \": --with-snmp=shared,%{_prefix} \ --with-snmp=shared \ --enable-ucd-snmp-hack \
After this, I did a " rpmbuild -bb php.spec", but got the error message: .......
.......
Processing files: php-debuginfo-4.3.2-14.ent
Provides: imap.so.debug ldap.so.debug libphp4.so.debug mysql.so.debug
odbc.so.debug pgsql.so.debug snmp.so.debug
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/php-root
error: Installed (but unpackaged) file(s) found:
/usr/lib/php4/snmp.so
RPM build errors: Installed (but unpackaged) file(s) found: /usr/lib/php4/snmp.so
Any clue? thanks,
David
On Mon, 01 Nov 2004 13:18:30 -0300, Javier Szyszlican <[EMAIL PROTECTED]> wrote:
David,
You could find a php and php-snmp for your distribution and it will work, I'm sure there are out there.
Or recompile your PHP SRPM with snmp enabled so you get the snmp.so module.
Javier
Edward Wang wrote:
Hi all,
I just tried installing JFFNMS, and get some problem with PHP-SNMP module.
After installed NET-SNMP from RPM, and PHP 4.3.2 from SRPM. The configure of JFFNMS told me, there is no PHP SNMP module loaded? And I checked the .spec file for my SRPM, it says "turn off -snmp", I am not sure how to rebuild my SRPM with-snmp, also I could not find php-snmp RPM for my PHP version of 4.3.2.
So any experience with how to install PHP with SNMP and NET-SNMP supported?
thanks a lot.
David
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ jffnms-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jffnms-users
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Javier Szyszlican, Project Leader, JFFNMS [EMAIL PROTECTED]
I hope JFFNMS or I were helpful to you, if you can, please donate at http://jffnms.org/donate
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ jffnms-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jffnms-users
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ jffnms-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jffnms-users
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Javier Szyszlican, Project Leader, JFFNMS [EMAIL PROTECTED]
I hope JFFNMS or I were helpful to you, if you can, please donate at http://jffnms.org/donate
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ jffnms-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jffnms-users
