perl warning

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

perl warning

Postby kbukhari » Wed Jun 28, 2006 6:55 pm

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
kbukhari
Major General
 
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Website: http://kashifbukhari.com
Location: Lahore

Re: perl warning

Postby lambda » Wed Jun 28, 2006 8:19 pm

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.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby kbukhari » Thu Jun 29, 2006 1:44 am

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
kbukhari
Major General
 
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Website: http://kashifbukhari.com
Location: Lahore

Postby Ihtesham » Tue Jul 18, 2006 6:34 pm

The problem is that we never RTFM
Ihtesham
Cadet
 
Posts: 6
Joined: Tue Jul 18, 2006 1:40 pm
Website: http://ali.pkdn.net/
Location: Rawalpindi


Return to “%s” Programming

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron