Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 24-05-2007, 12:07 AM   #1 (permalink)
Evil Genius
 
faraaz's Avatar
 
Join Date: Oct 2004
Location: Bangalore
Posts: 692
Default LC_ALL error


What is this weird error I am getting?? Everytime I open up a console, I get this error:

locale: Cannot set LC_ALL to default locale: No such file or directory

Then after that, if I type the following command, I get this error:

[faraaz@(none) ~]$ svn ls https://svn.generation.no/emerald-themes
svn: error: cannot set LC_ALL locale
svn: error: environment variable LC_CTYPE is en_US.UTF-8
svn: error: please check that your locale name is correct

What does this mean?? I'm running PCLOS TR4...
__________________
Roses are #FF0000, Violets are #0000FF...All of my base are belong to you!
faraaz is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 24-05-2007, 03:53 AM   #2 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: LC_ALL error

check your locale file. It's in /etc/env.d/locale for me. On your distro it could be different.
Run this command to find the file
Code:
locate locale
if it complains of datebase not being updated or found then run
Code:
updatedb
mehulved is offline  
Old 24-05-2007, 10:27 AM   #3 (permalink)
Evil Genius
 
faraaz's Avatar
 
Join Date: Oct 2004
Location: Bangalore
Posts: 692
Default Re: LC_ALL error

I typed locate locale in the Konsole and this is my output:
http://pastebin.ca/506884

[faraaz@(none) ~]$ update db
bash: update: command not found

What do I do next?
__________________
Roses are #FF0000, Violets are #0000FF...All of my base are belong to you!

Last edited by mehulved; 24-05-2007 at 01:40 PM.
faraaz is offline  
Old 24-05-2007, 01:56 PM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: LC_ALL error

See this http://www.petersblog.org/node/975 it might work.
You need to find the locale file in your distro, it's /etc/environment in Ubuntu.
I guess you'll get better help on PCLinuxOS's forums or IRC channel on the exact directory and tools used by PCLOS.

And that command is updatedb not update db
mehulved is offline  
Old 24-05-2007, 05:45 PM   #5 (permalink)
El mooooo
 
eddie's Avatar
 
Join Date: Jan 2006
Location: India
Posts: 1,414
Default Re: LC_ALL error

Type locale command in your console and post its output. Also did you try to change your system language or something?
__________________
Windows users shouldn't get to use the real computers. They know just enough to be dangerous.
eddie is offline  
Old 25-05-2007, 05:36 PM   #6 (permalink)
Evil Genius
 
faraaz's Avatar
 
Join Date: Oct 2004
Location: Bangalore
Posts: 692
Default Re: LC_ALL error

No I didn't change...and I already typed out locale and posted its output...I think its on that link since Mehulved edited my post. Hmm...I'm going to be formatting and re-installing the PCLOS Final version anyway, since it got released like 2 days ago. It should finish downloading in like another 12 hours or so...
__________________
Roses are #FF0000, Violets are #0000FF...All of my base are belong to you!
faraaz is offline  
Old 25-05-2007, 05:50 PM   #7 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: LC_ALL error

What you posted wasn't the output of locale.
mehulved is offline  
Old 25-05-2007, 09:03 PM   #8 (permalink)
Evil Genius
 
faraaz's Avatar
 
Join Date: Oct 2004
Location: Bangalore
Posts: 692
Default Re: LC_ALL error

Okay...then I'm confused. Should I just format and re-install?
__________________
Roses are #FF0000, Violets are #0000FF...All of my base are belong to you!
faraaz is offline  
Old 25-05-2007, 09:08 PM   #9 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: LC_ALL error

No u dont.reinstalling is not a soltn unlike WIndows.it seems u need to set and regenerate ur locale config.there should be some tools available.Unfortunately I dont know the command.but as root,u can try luck in a terminal(konsole?) and type "locale" and press TAB key to see all the commands available with locale starting.for queries reg any commands type in ur terminal and press enter as follows: "man commandname"
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 25-05-2007, 09:39 PM   #10 (permalink)
Evil Genius
 
faraaz's Avatar
 
Join Date: Oct 2004
Location: Bangalore
Posts: 692
Default Re: LC_ALL error

[root@(none) ~]# locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=hi_IN.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=hi_IN.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=hi_IN.UTF-8
LC_NAME=hi_IN.UTF-8
LC_ADDRESS=hi_IN.UTF-8
LC_TELEPHONE=hi_IN.UTF-8
LC_MEASUREMENT=hi_IN.UTF-8
LC_IDENTIFICATION=hi_IN.UTF-8
LC_ALL=
[root@(none) ~]#

Is this the output?? What do I do next?
__________________
Roses are #FF0000, Violets are #0000FF...All of my base are belong to you!
faraaz is offline  
Old 25-05-2007, 10:28 PM   #11 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile Re: LC_ALL error

as reg original question.
U got hindi also set as ur locale .dude set en_US.UTF8 as ur default LANG-if ur using ur Linux in ENGLISH.
ur problem is ur distro does not yet set "LC_ALL" env variable for U. a temporary soltn is to try setting as below in a terminal.
Code:
~$LC_ALL=en_US.UTF-8
press enter.now try subversion(svn).
^^ this will last for current session only and u need to save this in ur locale mgmt file.(/etc/locale.something..).this is managed may be by some gui tools in pclin os.search..
http://www.short-media.com/articles/...gnulinux_shell
^^ a terminal help for new Linux/UNIX users.
after entering "locale" after "#" prompt,did u pressed keyboard TAB key(twice)?bash shell(terminal) tries to auto complete.just post what all commands u got.
if u dont get how to be a root(admin) user-
open a terminal(with a "$" prompt).type below commands and press enter:
Code:
~$ su -
give ur root password and enter to get a root(with a "#" prompt) terminal and try above.
ps:Hey some mandr(ake)iva users here..help him get the command to regenerate locale files.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 26-05-2007, 05:48 PM   #12 (permalink)
Evil Genius
 
faraaz's Avatar
 
Join Date: Oct 2004
Location: Bangalore
Posts: 692
Default Re: LC_ALL error

Didn't work...now what? Bah...I've started downloading Sabayon...
__________________
Roses are #FF0000, Violets are #0000FF...All of my base are belong to you!
faraaz is offline  
Old 26-05-2007, 06:55 PM   #13 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: LC_ALL error

problem is u got hindi set as ur locale in some variables,while in some u got english-us.utf8
I dont use Mandriva or pclinux os.someone who is deep into it please explain him how to correct the locales to english and regenerate locale files.next time select only english as ur locale while during Installation whatever ur distro is.formatting and re-installation is meant for windows users pls @faraaz dont be there in win users league @tleast u've claimed u got shifted.
So stick up with a distro for sometime.It helps.dont login as root and browse.it is dangerous as u can directly alter and mess with OS files.
http://linux.oneandoneis2.org/wrongms.htm
http://linux.oneandoneis2.org/LNW.htm
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 26-05-2007, 08:27 PM   #14 (permalink)
El mooooo
 
eddie's Avatar
 
Join Date: Jan 2006
Location: India
Posts: 1,414
Default Re: LC_ALL error

Edit your .bashrc (notice the dot in front of the name) file which is located in your home directory and put the following in it
Code:
export LC_ALL=en_US.utf8
export LANG=en_US.utf8
Save the file, logout and log back in. Now type the locale command again and see if LC_ALL has some value in it or not. Also you don't need to run locale command as root, you can do it as normal user.
__________________
Windows users shouldn't get to use the real computers. They know just enough to be dangerous.
eddie is offline  
Old 26-05-2007, 08:54 PM   #15 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: LC_ALL error

And check if you have /etc/environment file? Does it contain anything related?
mehulved is offline  
Old 26-05-2007, 11:52 PM   #16 (permalink)
Evil Genius
 
faraaz's Avatar
 
Join Date: Oct 2004
Location: Bangalore
Posts: 692
Default Re: LC_ALL error

@praka123: Ehh...I have my moments of weakness!! What to do...Linux is sometimes very frustrating for a newbie because there's all these weird files acting up for no good reason. For instance, today my Beryl died on me. In the sense, my cube was set to transparent and Inside-Out...I prefer it that way...but suddenly it reverted to the default style and my window borders disappeared. I had to re-start X-Server from login screen multiple times and re-start Beryl with that Ctrl+Alt+Backspace shortcut before it would load again. I still dunno why that is...

That's all...

I'm away from my Linux box at the moment...so I'll try out that file editing stuff and get back to you guys on what happened.
__________________
Roses are #FF0000, Violets are #0000FF...All of my base are belong to you!
faraaz is offline  
Old 27-05-2007, 01:19 AM   #17 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile Re: LC_ALL error

^^its OK.
reg question,I suspect that u selected hindi for ur system locale but ur PClinuxOS is missing hi_IN.UTF-8.So at gdm or kdm screen select ur session by selecting language as en_us.Utf8.if not select "C"
btwn as @mehulved shown ur LANG= variable must have been set in /etc/environment .u can inspect with "env" command.
@eddie:isnt env variable LANG enough?no where LC_ALL is forced? with posix systems LANG is set by default while LC_ALL is not set.correct me if am wrong.
Quote:
LC_ALL
This is not an environment variable; it is only a macro that you can use with setlocale to set a single locale for all purposes. Setting this environment variable overwrites all selections by the other LC_* variables or LANG.
http://www.gnu.org/software/libc/man...ale-Categories
Quote:
LC_ALL
If this environment variable is set it overrides the selection for all the locales done using the other LC_* environment variables. The value of the other LC_* environment variables is simply ignored in this case.
http://www.gnu.org/software/libc/man...vironment.html

what is the command for genarating locale files in Mandriva/pclinos? is it "locale-gen" or localedef?
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 27-05-2007, 11:20 AM   #18 (permalink)
Evil Genius
 
faraaz's Avatar
 
Join Date: Oct 2004
Location: Bangalore
Posts: 692
Default Re: LC_ALL error

@eddie: I edited that .bashrc file and it worked! No more error!! And that svn command worked too!! Thanks guys!!

This is what I love about Linux, even if you do screw up...people help you out even though its a really obscure and dumb problem!!
__________________
Roses are #FF0000, Violets are #0000FF...All of my base are belong to you!
faraaz is offline  
Old 06-06-2007, 02:06 AM   #19 (permalink)
El mooooo
 
eddie's Avatar
 
Join Date: Jan 2006
Location: India
Posts: 1,414
Default Re: LC_ALL error

Quote:
Originally Posted by praka123
@eddie:isnt env variable LANG enough?
Mostly yes, sometimes no. Some programs have been shown to be really anal about LC_ALL setting so it is better to declare both of them.
__________________
Windows users shouldn't get to use the real computers. They know just enough to be dangerous.
eddie is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Splinter Cell:Double Agent Visual C++ runtime error and ***MUST CHECK*** error zerohourkill Gamerz 17 04-08-2007 02:47 PM
Windows XP Booting and Installation Error (LILO Error) arijitraja Software Q&A 3 26-02-2006 03:32 PM
error while trying to retrive text for error ORA-12203 vikasg03 Software Q&A 1 14-11-2005 02:48 PM
Error error error....gives me hell of a terror abhilash QnA (read only) 4 06-11-2004 12:41 AM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan
- by reddick

Advertisement




All times are GMT +5.5. The time now is 12:35 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2