====== Ошибка установки net-snmp: Pkg-static: unable to access file ======
Столкнулся с такой проблемой после обновления старой ОС и попытке собрать/обновить net-snmp:
===> Registering installation for net-snmp-5.7.3_8
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/Bundle/Makefile.subs.pl: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/NetSNMP/ASN.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/NetSNMP/OID.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/NetSNMP/TrapReceiver.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/NetSNMP/agent.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/NetSNMP/agent/Support.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/NetSNMP/agent/default_store.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/NetSNMP/agent/netsnmp_request_infoPtr.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/NetSNMP/default_store.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/SNMP.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/ASN/ASN.so: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/ASN/autosplit.ix: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/OID/OID.so: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/OID/autosplit.ix: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/TrapReceiver/TrapReceiver.so: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/TrapReceiver/autosplit.ix: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/agent/agent.so: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/agent/autosplit.ix: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/agent/default_store/autosplit.ix: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/agent/default_store/default_store.so: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/default_store/autosplit.ix: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/NetSNMP/default_store/default_store.so: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/SNMP/SNMP.so: No such file or directory
pkg-static: Unable to access file /usr/ports/net-mgmt/net-snmp/work/stage/usr/local/lib/perl5/site_perl/mach/5.14/auto/SNMP/autosplit.ix: No such file or directory
*** [fake-pkg] Error code 74
Stop in /usr/ports/net-mgmt/net-snmp.
*** [install] Error code 1
Stop in /usr/ports/net-mgmt/net-snmp.
Сделал следующее:
# pkg delete -Rf perl\*
# pkg delete -Rf p5-\*
# rm -rf /usr/ports/*/*/work
# rm -rf /usr/ports/distfiles/*
# rm -rf /usr/local/lib/compat/pkg/*
# pkg autoremove
# portsnap fetch update
# pkg search perl
# pkg install perl5-5.20.2_5
# cd /usr/ports/net-mgmt/net-snmp
# make install clean
А еще не забываем читать /usr/ports/UPDATING, где описывается последовательность действий после обновления портов.