View previous topic :: View next topic |
Author |
Message |
KozmoNaut Apprentice
Joined: 09 Dec 2002 Posts: 168 Location: Denmark
|
Posted: Wed Jul 05, 2006 1:14 pm Post subject: Whoops, I deleted /etc/locales... [Not really, and SOLVED] |
|
|
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: |
# 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? _________________ War. War never changes.
Last edited by KozmoNaut on Wed Jul 05, 2006 3:56 pm; edited 1 time in total |
|
Back to top |
|
|
lxg Veteran
Joined: 12 Nov 2005 Posts: 1019 Location: Aachen, Germany
|
Posted: Wed Jul 05, 2006 1:23 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
KozmoNaut Apprentice
Joined: 09 Dec 2002 Posts: 168 Location: Denmark
|
Posted: Wed Jul 05, 2006 1:37 pm Post subject: |
|
|
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: |
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. |
|
Back to top |
|
|
lxg Veteran
Joined: 12 Nov 2005 Posts: 1019 Location: Aachen, Germany
|
Posted: Wed Jul 05, 2006 1:53 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
KozmoNaut Apprentice
Joined: 09 Dec 2002 Posts: 168 Location: Denmark
|
Posted: Wed Jul 05, 2006 2:37 pm Post subject: |
|
|
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 _________________ War. War never changes. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|