On 07/11/06, Carlos Alberto Bernat Orozco <[EMAIL PROTECTED]> wrote:
>                      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

Looks good.

>  There is the file that you mentioned (44_snmp.ini) but in my distro
> (mandrake 10) there isn't a folder called /php.d/

Probably doesn't matter - it appears that Mandrake uses /etc/php
instead of /etc/php.d.   As long as things are used consistently,
the name of the directory isn't important.
   You can probably assume that the php-snmp packagers have
set things up correctly.

> 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

All that looks fine.


>  My main php.ini is located on the following path:
>
>  /usr/local/lib/php.ini

But that's slightly worrying.   I would tend to expect
that it'd be in /etc/php.ini or somewhere similar.
I wouldn't usually expect to mix "/etc" and "/usr/local"

The first would typically be used with a vendor-supplied
distribution, the second with one compiled from source.
Use one or the other approach - don't try to mix them.



>  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.

Where did you install Net-SNMP?
Where is the file 'snmp.h'?

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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