Problem: When running mam commands on RHEL/CentOS 7 you can get Perl errors, similar to these:
mam-balance
ERROR: can't load appenderclass 'Log::Dispatch::FileRotate'
ERROR LOADING MODULE at /usr/share/perl5/vendor_perl/Date/Manip.pm line 35.
Compilation failed in require at /usr/share/perl5/vendor_perl/Log/Dispatch/FileRotate.pm line 12.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Log/Dispatch/FileRotate.pm line 12.
Compilation failed in require at (eval 22) line 2.
BEGIN failed--compilation aborted at /opt/mam/lib/MAM.pm line 163.
Compilation failed in require at /opt/mam/bin/mam-balance line 74.
BEGIN failed--compilation aborted at /opt/mam/bin/mam-balance line 74.
The commands will probably succeed when run as root and fail when run as another user.
Solution: This is a known bug, which happens if the "taint" option (-T) is used, and it's documented here: https://bugs.archlinux.org/task/18467
One workaround for this is to set the TZ environment variable with your time zone.
Another is to remove the -T from the mam client commands (perl taint checking is not needed in RHEL7 because mam clients do not use suidperl in red hat 7).