On 27 October 2011 02:39, Dave Stevens <g...@uniserve.com> wrote: > Hi, > > I have a Virtualmin GPL install under openvz on Ubuntu 10.4.2. Periodically > I'd like to be able to send myself a logwatch report. When I do this is the > result: > > # logwatch --mailto=g...@uniserve.com > perl: warning: Setting locale failed. > perl: warning: Please check that your locale settings: > LANGUAGE = (unset), > LC_ALL = (unset), > LANG = "en_CA.UTF-8" > are supported and installed on your system. > perl: warning: Falling back to the standard locale ("C"). > Killed > Killed > Killed > system 'cat '/var/log/messages' | /usr/bin/perl > /usr/share/logwatch/scripts/shared/expandrepeats ''| /usr/bin/perl > /usr/share/logwatch/scripts/shared/removeservice > 'talkd,telnetd,inetd,nfsd,/sbin/mingetty,netscreen,netscreen'| /usr/bin/perl > /usr/share/logwatch/scripts/shared/applystddate > ''>/tmp/logwatch.85OCq98X/messages' failed: 35072 at /usr/sbin/logwatch line > 870. >
I had this error on the same OS. I don't recall if it was from running perl from the command-line or running something like logwatch. The answer is exactly as the error reads. You need to set-up you environment to include a LANGUAGE, LC_ASS and LANG variable (I'm not sure if you need all three but why not do things by half) . Put them somewhere like /etc/profile or .bashrc depending on your shell or environment needs. I have a maverick unit with "export LANG=en_GB.UTF-8" in the /etc/profile. HTH, Dermot. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/