LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-21-2012, 11:53 AM   #1
Henna
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
Perl Warning Errors


Appreciate if I could get some help:

Seeing errors:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_TIME = "en_US.utf-8",
LC_MONETARY = "en_US.utf-8",
LC_COLLATE = "en_US.utf-8",
LC_MESSAGES = "en_US.utf-8",
LC_NUMERIC = "en_US.utf-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.


I am using GNU/Linux.
 
Old 03-21-2012, 12:39 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Henna View Post
Appreciate if I could get some help:
Seeing errors:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LC_TIME = "en_US.utf-8",
LC_MONETARY = "en_US.utf-8",
LC_COLLATE = "en_US.utf-8",
LC_MESSAGES = "en_US.utf-8",
LC_NUMERIC = "en_US.utf-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
I am using GNU/Linux.
Saying you're using GNU/Linux tells us next to nothing...what version/distro? (Fedora? Debian? Ubuntu? openSUSE???) What's your code look like? And have you tried to put that error into Google?? Pulls up lots:
http://ubuntuforums.org/showthread.php?t=1346581
http://www.syamsul.net/2011/09/15/fi...error-message/

You can also just export your locales in your .bashrc or .profile:
Code:
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
 
Old 03-21-2012, 12:43 PM   #3
Henna
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I already added them to my .bashrc....didnt work.

Do you know if these can be hard set on locale.

Thx
 
Old 03-21-2012, 03:46 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Henna View Post
I already added them to my .bashrc....didnt work.
Do you know if these can be hard set on locale.
Thx
Spell out your words, please. And yes, they can be hard set, but again, you don't tell us what version/distro of Linux, or show us your code, so there's little we can tell you.
 
Old 03-21-2012, 03:55 PM   #5
Henna
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Oh Im so sorry. I have inherited this machine

this is: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
 
Old 03-21-2012, 05:05 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Henna View Post
Oh Im so sorry. I have inherited this machine
this is: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
No worries. The best way (in my opinion), is to set the locale in the perl program directly; you can see examples and tips here:
http://perl.active-venture.com/pod/p...ale-using.html

Since you're using RHEL, you should have a support contract with RedHat. You can call them for support, and also may be worth checking the /etc/sysconfig/langauge file. I don't have access to an RHEL box right now, so I can't confirm, but there may be a AUTO_DETECT_UTF8 variable. If it's set to NO, it may cause you a problem. Again, though, I'd suggest fixing this in your Perl code, since it won't affect anything else on the system.
 
Old 03-22-2012, 02:47 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I assume you need to install locales (so your system currently does not support that LC).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl locale warning jafriede Slackware 4 08-23-2007 09:46 AM
perl warning on kateos hoodooman Linux - Software 3 08-04-2007 08:50 PM
Warning and errors with make lucs Slackware 6 03-16-2005 06:24 AM
perl warning using slax 4.2.0.. slaxer Linux - Wireless Networking 4 02-03-2005 08:49 PM
perl warning lenlutz Red Hat 1 01-31-2004 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration