LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 08-04-2010, 08:14 AM   #1
vedarad
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
Question 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.
 
Old 08-04-2010, 10:26 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
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
 
Old 08-04-2010, 11:28 PM   #3
vedarad
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 08-05-2010, 04:57 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,563

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
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
.
 
  


Reply

Tags
installation, snmp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrate Mod-Apache-Snmp with Net-SNMP source kirukan Linux - Server 2 05-11-2011 01:48 AM
Net-SNMP writing a Subagent - snmp.conf Unknown token: master AustinMarton Programming 0 12-16-2008 07:34 PM
SNMP master & SNMP client Script for system monitoring ratul_11 Programming 1 12-24-2007 05:32 AM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 08:09 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM


All times are GMT -5. The time now is 04:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration