There are times when you build newer system libraries and install them to non-standard system directories. When you are building software that is dependent on these newer libraries, you sometimes have to pass the non-standard include and lib directories as arguments to the build process so that the new software can find its dependent libraries and header files. The easiest way to do this is to set the CPPFLAGS and LDFLAGS. It is done as follows:
CPPFLAGS="-I/usr/local/openssl-0.9.8i/include \ -I/usr/local/net-snmp-5.4.1/include \ -I/usr/local/BerkeleyDB.4.1/include" LDFLAGS="-L/usr/local/openssl-0.9.8i/lib \ -L/usr/local/net-snmp-5.4.1/lib \ -L/usr/local/BerkeleyDB.4.1/lib"