LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   snmp installation problem (https://www.linuxquestions.org/questions/linux-software-2/snmp-installation-problem-824119/)

vedarad 08-04-2010 08:14 AM

snmp installation problem
 
hi,

iam trying to install net-snmp-5.5.zip in debian system.
The steps i followed are,
1) ./configure --prefix=PATH
2) make
3) make install
4) copied the mib file in to PATH/share/snmp/mibs.
5) copied the config file in to PATH/share/snmp.

till this every thing is proper.i am able to install in user defined path which i mentioned during configuration, that is other than the default directory /usr/local.

the problem i faced is when #include <net-snmp/net-snmp-config.h> is used in our application it is showing
net-snmp/net-snmp-config.h : No such file or directory.

how can i overcome this problem,can some one help me.

thanks.

sem007 08-04-2010 10:26 AM

Quote:

the problem i faced is when #include <net-snmp/net-snmp-config.h> is used in our application it is showing
net-snmp/net-snmp-config.h : No such file or directory.
When you get this error message ? If you want to install snmp in debian then you can install from debian repository.

Code:

apt-get install snmp snmpd

vedarad 08-04-2010 11:28 PM

I think the problem is not about repository. It is at the time of configuration (./configure --prefix=PATH) ,here if we dont give "--prefix=PATH" then it will install in the default directory /usr/local/. by giving "--prefix=PATH" it will install in "PATH" which we specify during configuration.

According to my requirement i should install in "PATH". so,when i run the application it is trying to take files from the default directory /usr/local/ which does not exist.

should i need to export PATh?

Any suggestions?

knudfl 08-05-2010 04:57 PM

Please read " ./configure --help " :
"" Installation directories: --prefix=PREFIX
install architecture-independent files in PREFIX [/usr/local] ""

PATH ( or PREFIX ) has to be defined, like : --prefix=/opt/
Or /usr/local/net-snmp/

Both are hideaway locations, will not be found, unless pointed to.
When you write : #include <net-snmp/net-snmp-config.h>
.. only the default 'search path' is used, i.e. /usr/include/ ,
/usr/local/include/ , etc.

So where did you install ? Where is PATH ? ?

And to repeat the question from @sem007 : Why not use the default
net-snmp ? # apt-get install libsnmp-dev
.


All times are GMT -5. The time now is 09:26 AM.