Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Error when running perl.

by abachus (Monk)
on Aug 16, 2006 at 13:51 UTC ( #567684=perlquestion: print w/replies, xml ) Need Help??

abachus has asked for the wisdom of the Perl Monks concerning the following question:

Hello there,

I'm getting the following error each time i run Perl :

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

After that output on STDERR, Perl runs as normal. I'm not sure what caused this and how can I stop this happening ? To me it would suggest a lack of a few environment variables, sure enough I don't see them when looking at the such variables. But what should I be setting them too ? By the way its a slackware linux box.



Replies are listed 'Best First'.
Re: Error when running perl.
by theorbtwo (Prior) on Aug 16, 2006 at 13:57 UTC

    The problem is more the oppisite -- you've got too many environment variables set. Removing LANG="en_US" from your environment will probably remove the error message. Contrarywise, install the package with locale information in it on your system.

Re: Error when running perl.
by jdtoronto (Prior) on Aug 16, 2006 at 14:10 UTC

    theorbtwo may well be correct. I will merely add my own observtion that back in the 5.6.0/5.6.1 days we had this happen and we simply re-built Perl using the libraries on the machine and all the problems were fixed.


      Thanks guys, yes if I remove the LANG variable (or set it to nothing) the problem has gone :)
      Won't need to compile Perl then, although that is oddly enough quite a lot of fun.

      Its probably to do with a change i've made when setting up user accounts. I'd best check out /etc/skel and profile etc.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://567684]
Approved by ww
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2022-05-26 11:47 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (93 votes). Check out past polls.