You need to install the pam-devel, openssl-devel, and net-snmp-devel RPMs provided by your distro. What distro/version are you using? If something Red Hat based try seeing if yum is configured and set up to install packages, e.g. by running "yum install pam-devel openssl-devel net-snmp-devel".