Hi Dave

Thanks again for your answer. The urpmi command installed the php-snmp-4.3.4-3mdk for my box automatically. Inside this rpm are the next components:

/etc/php/44_snmp.ini
/usr/lib/php/extensions/snmp.so
/usr/share/doc/php-snmp-4.3.4
/usr/share/doc/php-snmp-4.3.4/README

There is the file that you mentioned (44_snmp.ini) but in my distro (mandrake 10) there isn't a folder called /php.d/ The file 44_snmp.ini contains one single line that says only:

extension = snmp.so

And these are the files with ls /etc/php :

34_mysql.ini  44_snmp.ini

My main php.ini is located on the following path:

/usr/local/lib/php.ini

Configured with:

'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/lib/mysql/' '--with-zlib-dir=/usr/lib/'

When I tried to recompile php (ver. php5.1.5) in order to install the support for snmp, goes out the next error:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/lib/mysql/ --with-zlib-dir=/usr/lib/ --with-snmp

checking for SNMP support... yes
checking OpenSSL dir for SNMP... no
checking for net-snmp-config... no
configure: error: snmp.h not found. Check your SNMP installation.

I'm not sure for what I have to do. I don't know where to allocate the snmp.ini or if I'm doing well the recomplie command. I'm totally lost with this issue. So thanks in advanced if you can help me with some guidance.

Carlos Bernat


2006/11/5, Dave Shield <[EMAIL PROTECTED]>:
On 30/10/06, Carlos Alberto Bernat Orozco <[EMAIL PROTECTED]> wrote:
>  I was asking for because I used the urpmi to install the php-snmp module
> but it seems is not installed correctly because there is nothing on the
> php.ini for php-snmp and with an small script using the snmpwalk command,
> displays an error that says: unknown function.
>
>  Is there any manual for the php-snmp installation? Do I have to change the
> php.ini in order to install it?


I'm not familiar with exactly what "urpmi" will install for the php-snmp module.
Depending on exactly what this does, you might need to tweak the PHP
initialisation files to activate it.

On Fedora (which I'm more familiar with), the php-snmp RPM includes a file
"/etc/php.d/snmp.ini", which activates the SNMP extension.
  Is there a similar file on your system?  If so, what does it contain?
If not - what files are there listed by "ls /etc/php*"?  What do the main php
initialisation file(s) currently contain?

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to