Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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.
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
.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.