|
From: Carlos A. B. O. <ca...@gm...> - 2006-11-07 19:33:18
|
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 <D.T...@cs...>: > > On 30/10/06, Carlos Alberto Bernat Orozco <ca...@gm...> 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 > |