1

Topic: amavisd_snmp requires NetSNMP/OID.pm

In FreeBSD, amavisd_snmp won't start:

Can't locate NetSNMP/OID.pm in @INC (you may need to install the NetSNMP::OID module) (@INC entries checked: /usr/local/lib/perl5/site_perl/mach/5.40 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.40/mach /usr/local/lib/perl5/5.40) at /usr/local/sbin/amavisd-snmp-subagent line 130.
BEGIN failed--compilation aborted at /usr/local/sbin/amavisd-snmp-subagent line 130.
/usr/local/etc/rc.d/amavisd_snmp: WARNING: failed to start amavisd_snmp

when I try to install snmp:

# pkg install net-snmp
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        net-snmp: 5.9.4_6,1
        perl5.40: 5.40.0_1

Installed packages to be DOWNGRADED:
        perl5: 5.40.1 -> 5.36.3_2

Number of packages to be installed: 2
Number of packages to be downgraded: 1

The process will require 74 MiB more space.
33 MiB to be downloaded.


We are not supposed to use 'pkg upgrade' , right? what about 'pkg install', will it break the system?
Thank you.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: amavisd_snmp requires NetSNMP/OID.pm

Using pkg install should be fine and won’t break your system, but downgrading Perl might cause compatibility issues, so check dependencies first. Avoid pkg upgrade unless necessary.