Next: , Previous: , Up: Top   [Contents][Index]


7 Installation

The package can be used only on GNU/Linux systems. The prerequisites for building are: GNU make, Net-SNMP libraries and headers.

To build and install the package to its default location (below /usr/local), run:

  make 
  make install

A number of variables (described below) control the compilation and installation process. To define these, run

  make config

and edit the file config.mk. When done, run make.

The variables are:

CFLAGS

Compilation flags for cc.

CPPFLAGS

Include paths (‘-I DIR’), and other preprocessor flags.

NET_SNMP_CONFIG

Name of the net-snmp-config program. It is needed to set the flags for the program loader flags and the libraries to link with. Normally it is determined automatically. The make command will bail out if unable to do so. In this case, you will have to set this variable manually, otherwise just leave it as it is.

PREFIX

Installation prefix. Unless expressly overridden, all package components will be installed under this prefix. The default value is /usr/local.

SBINDIR

Installation directory for the hostproc binary. Default is $(PREFIX)/sbin.

DATAROOTDIR

Root directory for architecture-independent files (MIBs, documentation, etc). Default is $(PREFIX)/share.

MANDIR

Installation directory for manual pages. Default is $(DATAROOTDIR)/man.

MIBDIR

Installation directory for the HOSTPROC-MIB.txt file. Default is $(DATAROOTDIR)/snmp/mibs.