perl warning

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

perl warning

Post by kbukhari »

wile running my program written in perl
i got following warning how can i resolve them ?

kashif@kashif:~/perl$ ./my_first_perl_pro
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_COLLATE = "C",
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: perl warning

Post by lambda »

maybe you don't have the en_US locale files installed? try typing "unset LANG". what shows up when you run the "locale" command?

i'm not familiar enough with linux to know where to change this, but you could poke around your files in /etc or /etc/X11 to see where LANG is set. for me, on ubuntu, it's in /etc/environment. it could also be in your shell startup files (maybe read /etc/profile.d/) or some gdm/xdm file.
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Post by kbukhari »

thanks lambda
i would like to know i am running slackware 10.2
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
Ihtesham
Cadet
Posts: 6
Joined: Tue Jul 18, 2006 1:40 pm
Location: Rawalpindi
Contact:

Post by Ihtesham »

The problem is that we never RTFM
Post Reply