Starting snmpd. Shared object «libperl.so» not found, required by «snmpd» /usr/local/etc/rc.d/snmpd: WARNING: failed to start snmpd

/usr/ports/net-mgmt/net-snmp # make install clean

==⇒ Installing for net-snmp-5.7.3_11 ==⇒ Checking if net-snmp already installed ==⇒ An older version of net-snmp is already installed (net-snmp-5.7.2_9)

    You may wish to ``make deinstall'' and install this port again
    by ``make reinstall'' to upgrade it properly.
    If you really wish to overwrite the old port of net-snmp
    without deleting it first, set the variable "FORCE_PKG_REGISTER"
    in your environment or the "make install" command line.

* [check-already-installed] Error code 1 Stop in /usr/ports/net-mgmt/net-snmp. * [install] Error code 1

Stop in /usr/ports/net-mgmt/net-snmp. root@klotik:/usr/ports/net-mgmt/net-snmp # make deinstall ==⇒ Deinstalling for net-snmp ==⇒ Deinstalling net-snmp-5.7.2_9 Updating database digests format: 100% Checking integrity… done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:

      net-snmp-5.7.2_9

The operation will free 9 MiB. [1/1] Deinstalling net-snmp-5.7.2_9… [1/1] Deleting files for net-snmp-5.7.2_9: 100% root@klotik:/usr/ports/net-mgmt/net-snmp # make reinstall ==⇒ Installing for net-snmp-5.7.3_11 ==⇒ net-snmp-5.7.3_11 depends on package: py27-setuptools27>0 - found ==⇒ net-snmp-5.7.3_11 depends on file: /usr/local/lib/libcrypto.so.8 - found ==⇒ net-snmp-5.7.3_11 depends on file: /usr/local/bin/python2.7 - found ==⇒ net-snmp-5.7.3_11 depends on package: perl5>=5.20<5.21 - found ==⇒ net-snmp-5.7.3_11 depends on shared library: libmysqlclient.so.18 - found (/usr/local/lib/mysql/libmysqlclient.so.18) ==⇒ Registering installation for net-snmp-5.7.3_11 Installing net-snmp-5.7.3_11… This port installs snmpd, header files and libraries but does not

   start snmpd by default.
   If you want to auto-start snmpd and snmptrapd:, add the following to
   /etc/rc.conf:
      snmpd_enable="YES"
      snmpd_flags="-a"
      snmpd_conffile="/usr/local/share/snmp/snmpd.conf /etc/snmpd.conf"
      snmptrapd_enable="YES"
      snmptrapd_flags="-a -p /var/run/snmptrapd.pid"

You may also specify the following make variables:

      NET_SNMP_SYS_CONTACT="zi@FreeBSD.org"
      NET_SNMP_SYS_LOCATION="USA"
      DEFAULT_SNMP_VERSION=3
      NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio"
      NET_SNMP_LOGFILE=/var/log/snmpd.log
      NET_SNMP_PERSISTENTDIR=/var/net-snmp
   to define default values (or to override the defaults).  To avoid being
   prompted during the configuration process, you should (minimally) define
   the first two variables. (NET_SNMP_SYS_*)
   You may also define the following to avoid all interactive configuration:
      BATCH="yes"

==⇒ SECURITY REPORT:

    This port has installed the following files which may act as network
    servers and may therefore pose a remote security risk to the system.

/usr/local/lib/libnetsnmp.so.30.0.3 /usr/local/lib/libnetsnmpagent.so.30.0.3

    This port has installed the following startup scripts which may cause
    these network services to be started at boot time.

/usr/local/etc/rc.d/snmpd /usr/local/etc/rc.d/snmptrapd

    If there are vulnerabilities in these programs there may be a security
    risk to the system. FreeBSD makes no guarantee about the security of
    ports included in the Ports Collection. Please type 'make deinstall'
    to deinstall the port if this is a concern.
    For more information, and contact details about the security
    status of this software, see the following webpage: 

http://net-snmp.sourceforge.net/ root@klotik:/usr/ports/net-mgmt/net-snmp # make clean ==⇒ Cleaning for net-snmp-5.7.3_11 root@klotik:/usr/ports/net-mgmt/net-snmp # /usr/local/etc/rc.d/snmpd start Starting snmpd.