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. |
Quote:
Code:
apt-get install snmp snmpd |
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? |
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. |