-
Perl Troubles
Anytime I try to use perl I get this message.
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.
Does anyone know how to fix this.. I have searched google and most of the pages that I found are in spanish and the other ones dont help at all.. I have consulted the man pages but I just dont get it.
Can someone tell me what needs to be done.
Thanks
-
What's your declaration line? (ie #!/usr/bin/perl -wT)
Is this Windows or Linux perl?
-
Something is misconfigured in your perl installation.
These are environment variables telling the perl interpreter
what national language you are writing in for your geographic
locale.
http://www.fnal.gov/docs/products/pe...erllocale.html
Here's a page about it. maybe it will help
:cool:
-
Im sorry I was in a hurry and forgot to post the most important part. I am using redhat linux 8 with perl5
Thanks
-
And what about your declaration line? Just post the first line of your script. On Linux, it should be something like:
#!/usr/bin/perl
However, your Perl binary may be somewhere else. You can find out where by running:
which perl
That should tell you where Perl lives. Post that first line here and we can see if there's anything wrong with your incantation.
-
Thanks for that page. I didnt even see that post untill a min ago . I over looked it and just saw roswell1329 post.
I will check out the site. Anyways my perl script beginst with #!/usr/bin/perl and that is where it's located. The scripts seem to work but in a shell if i run perl test.pl it will give those messages and then run the script. so it does work