Perl Troubles
Results 1 to 6 of 6

Thread: Perl Troubles

  1. #1
    Senior Member
    Join Date
    Dec 2001
    Posts
    304

    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
    Violence breeds violence
    we need a world court
    not a republican with his hands covered in oil and military hardware lecturing us on world security!

  2. #2
    Senior Member roswell1329's Avatar
    Join Date
    Jan 2002
    Posts
    670
    What's your declaration line? (ie #!/usr/bin/perl -wT)

    Is this Windows or Linux perl?
    /* You are not expected to understand this. */

  3. #3
    AO Curmudgeon rcgreen's Avatar
    Join Date
    Nov 2001
    Posts
    2,716
    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
    I came in to the world with nothing. I still have most of it.

  4. #4
    Senior Member
    Join Date
    Dec 2001
    Posts
    304
    Im sorry I was in a hurry and forgot to post the most important part. I am using redhat linux 8 with perl5

    Thanks
    Violence breeds violence
    we need a world court
    not a republican with his hands covered in oil and military hardware lecturing us on world security!

  5. #5
    Senior Member roswell1329's Avatar
    Join Date
    Jan 2002
    Posts
    670
    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.
    /* You are not expected to understand this. */

  6. #6
    Senior Member
    Join Date
    Dec 2001
    Posts
    304
    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
    Violence breeds violence
    we need a world court
    not a republican with his hands covered in oil and military hardware lecturing us on world security!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •