Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Whoops, I deleted /etc/locales... [Not really, and SOLVED]

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
KozmoNaut
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 09, 2002 4:06 pm
Location: Denmark

Whoops, I deleted /etc/locales... [Not really, and SOLVED]

  • Quote

Post by KozmoNaut » Wed Jul 05, 2006 1:14 pm

The topic says it all... I was going to remove /etc/locales.build, and by accident, I removed /etc/locales instead...

So of course, now locale-gen and so on and so forth ("emerge glibc", for instance) whine about not being able to find the locale files:

Code: Select all

# locale-gen
 * You should upgrade your /etc/locales.build to /etc/locale.gen
 * and then remove /etc/locales.build when you're done.

 * Generating 2 locales (this might take a while)
 *  (1/2) Generating en_US/ISO-8859-1 ...
cannot open locale definition file `en_US/ISO-8859-1': Not a directory        [ !! ]
 *  (2/2) Generating en_US.UTF-8/UTF-8 ...
cannot open locale definition file `da_DK/ISO-8859-1': Not a directory        [ !! ]
 * Generation complete
How would I best go about fixing this screwup?
Last edited by KozmoNaut on Wed Jul 05, 2006 3:56 pm, edited 1 time in total.
War. War never changes.
Top
lxg
Veteran
Veteran
User avatar
Posts: 1019
Joined: Sat Nov 12, 2005 3:12 pm
Location: Aachen, Germany
Contact:
Contact lxg
Website

  • Quote

Post by lxg » Wed Jul 05, 2006 1:23 pm

Are you sure there is/was a /etc/locales?

To me, this rather looks like a glibc problem with your locales files. Could you please post the output of ls /usr/lib/locale and emerge --info?
lxg.de – codebits and tech talk
Top
KozmoNaut
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 09, 2002 4:06 pm
Location: Denmark

  • Quote

Post by KozmoNaut » Wed Jul 05, 2006 1:37 pm

I have "rm -rf /etc/locales" in my /root/.bash_history, and I don't remember seeing any errors after it ran...

There is nothing in /usr/lib/locale... Here's emerge --info:

Code: Select all

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.6.15
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointers"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aac alsa aotuv apache2 apm asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdda cddb cdparanoia cdr cli crypt cups dbus dga dlloader dri dvd emboss encode ffmpeg firefox flac foomaticdb fortran gdbm gif glitz gpm gs gstreamer gtk gtk2 hal imagemagick imlib ipv6 isdnlog java javascript jpeg jpeg2k kde libg++ libwww logitech-mouse mad mikmod mmap mmx mng modplug motif mp3 mpeg mplayer musicbrainz ncurses nls nptl offensive ogg opengl oss pam pcre pdf pdflib perl png pppd python qt qt3 qt4 quicktime rdesktop readline real reflection samba sametime sdl session speex spell spl sse sse-filters sse2 ssl tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wmf xcomposite xml xmms xorg xscreensaver xv zeroconf zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
War. War never changes.
Top
lxg
Veteran
Veteran
User avatar
Posts: 1019
Joined: Sat Nov 12, 2005 3:12 pm
Location: Aachen, Germany
Contact:
Contact lxg
Website

  • Quote

Post by lxg » Wed Jul 05, 2006 1:53 pm

KozmoNaut wrote:I have "rm -rf /etc/locales" in my /root/.bash_history, and I don't remember seeing any errors after it ran...
Sure, because the f is for batch/force/quiet. You can issue the above command another 10 times without a warning. But remove the f and you will see. ;-)
KozmoNaut wrote:There is nothing in /usr/lib/locale...
Strange... how about your /usr/share/i18n/locales directory? Are there your needed locales?

I don't know how old your install is, but you might have missed an update or something. Could you please do the following: set the LINGUAS variable with appropriate values (e.g. "dk en") in /etc/make.conf, add userlocales to your useflags and re-emerge glibc.
lxg.de – codebits and tech talk
Top
KozmoNaut
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 09, 2002 4:06 pm
Location: Denmark

  • Quote

Post by KozmoNaut » Wed Jul 05, 2006 2:37 pm

All the locales I need (en_US and da_DK) are in /usr/share/i18n/locales.

My install is roughly 1 week old at this point (reinstallation because my partitions got hosed when I tried to resize them...), so I'm guessing I haven't really missed any updates...

I'll try the LINGUAS stuff, though... I want a purely english user interface, so I'm guessing I'll only have to put "en" in there?

EDIT: AH! I figured it out. I thought the syntax would be identical between /etc/locales.build and /etc/locale.gen, but in the latter, "en_US/ISO-8859-1" would be "en_US ISO-8859-1" with a space instead of a slash...

Stupid little mistake :P
War. War never changes.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic