Superuser

Autor Thema: locale settings bei SOLARIS 9  (Gelesen 3576 mal)

ss10user

  • Gast
locale settings bei SOLARIS 9
« am: 28. Mai 2009, 10:36:07 »
Hallo an alle,

vorgestern habe ich auf meine gute alte SS-10 nach den NetBSD-Versuchen wieder ein Solaris 9 gebracht, vermute aber, dabei einen kleinen Sprach-Fehler gemacht zu haben.
Wenn ich locale aufrufe, bekomme ich:

# locale
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

Wenn ich pca aufrufe, um das SOLARIS zu patchen, bekomme ich:

# /usr/local/bin/pca -V --update now --wget=/usr/local/bin/wget
couldn't set locale correctly
couldn't set locale correctly
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = (unset),
        LC_COLLATE = "de_DE.ISO8859-15",
        LC_CTYPE = "de_DE.ISO8859-1",
        LC_MESSAGES = "de",
        LC_MONETARY = "de_DE.ISO8859-15",
        LC_NUMERIC = "de_DE.ISO8859-15",
        LC_TIME = "de_DE.ISO8859-15",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

In der /etc/TIMEZONE steht:

# more /etc/TIMEZONE
#ident  "@(#)init.dfl   1.6     00/05/27 SMI"
#
# This file is /etc/default/init.  /etc/TIMEZONE is a symlink to this file.
# This file looks like a shell script, but it is not.  To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one of
# TZ, LANG, CMASK, or any of the LC_* environment variables.
#
TZ=Europe/Berlin
CMASK=022
LC_COLLATE=de_DE.ISO8859-15
LC_CTYPE=de_DE.ISO8859-1
LC_MESSAGES=de
LC_MONETARY=de_DE.ISO8859-15
LC_NUMERIC=de_DE.ISO8859-15
LC_TIME=de_DE.ISO8859-15
#

Ich habe dann mal pkginfo durchgewühlt. Gehe ich richtig in der Vermutung, daß bei der Installation die deutschen Pakete nicht mit eingerichtet wurden? Wenn ja, wie kriege ich die nachträglich drauf?

Oder muß ich an einer ganz anderen Schraube drehen?

GvH

sonnenblen.de - Das unabhängige Sun User Forum

locale settings bei SOLARIS 9
« am: 28. Mai 2009, 10:36:07 »

ss10user

  • Gast
Re: locale settings bei SOLARIS 9
« Antwort #1 am: 28. Mai 2009, 13:35:55 »
Hallo,

inzwischen habe ich ein wenig weiter gelesen und probiert, bisher ist folgendes passiert:

# time localeadm -r weu -v
couldn't set locale correctly
couldn't set locale correctly
couldn't set locale correctly
Verbose mode
.....

The following regions are installed on ss10s9 on Thu May 28 11:41:49 CEST 2009

POSIX (C)

One or more locales have been removed. To update the list of locales available at the login screen's "Options->Language" menu, please restart the dtlogin daemon (WARNING: this will terminate any active dtlogin sessions)

real    10:41.4
user     7:52.4
sys      2:51.8
#

Damit ist das offensichtlich falsch eingebrachte Westeuropa-Paket (NL,B,LUX, usw.) erstmal runter.
Jetzt Mitteleuropa neu rein (vorher CD1 mounten):

# localeadm -a ceu -d /cdrom/Solaris_9/Product/
couldn't set locale correctly
couldn't set locale correctly
couldn't set locale correctly
Log file is /var/sadm/install/logs/localeadmin_install.2009-05-28.5

Adding packages for Central Europe (ceu)

Region ceu will be installed.
installing 1of2

irgendwann danach CD2 rein (umount/mount), danach sucht er die Language-CD,
hab ich aber nicht.

Mal sehen, wie's weitergeht ...


GvH

ss10user

  • Gast
GELÖST: locale settings bei SOLARIS 9
« Antwort #2 am: 28. Mai 2009, 13:42:52 »
Hallo,

offensichtlich wird die Language-CD wirklich nicht gebraucht. Die Ausgaben sehen erfreulich
gleich aus:

# more /etc/TIMEZONE
#ident  "@(#)init.dfl   1.6     00/05/27 SMI"
#
# This file is /etc/default/init.  /etc/TIMEZONE is a symlink to this file.
# This file looks like a shell script, but it is not.  To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one of
# TZ, LANG, CMASK, or any of the LC_* environment variables.
#
TZ=Europe/Berlin
CMASK=022
LC_COLLATE=de_DE.ISO8859-15
LC_CTYPE=de_DE.ISO8859-1
LC_MESSAGES=de
LC_MONETARY=de_DE.ISO8859-15
LC_NUMERIC=de_DE.ISO8859-15
LC_TIME=de_DE.ISO8859-15
# locale
LANG=
LC_CTYPE=de_DE.ISO8859-1
LC_NUMERIC=de_DE.ISO8859-15
LC_TIME=de_DE.ISO8859-15
LC_COLLATE=de_DE.ISO8859-15
LC_MONETARY=de_DE.ISO8859-15
LC_MESSAGES=de
LC_ALL=
#

Nicht mal einen Reboot muß man machen - DANKE Solaris!


GvH