LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-20-2022, 02:13 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,352

Rep: Reputation: 75
Adobe Acrobat not running. ?locale problem


Adobe acroread is not starting and the console shows

Quote:
(process:790): Gtk-WARNING **: 19:07:31.730: Locale not supported by C library.
Using the fallback 'C' locale.
The output of locale is

Quote:
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB
LC_CTYPE="en_GB"
LC_NUMERIC="en_GB"
LC_TIME="en_GB"
LC_COLLATE=C
LC_MONETARY=en_150.UTF-8
LC_MESSAGES="en_GB"
LC_PAPER="en_GB"
LC_NAME="en_GB"
LC_ADDRESS="en_GB"
LC_TELEPHONE="en_GB"
LC_MEASUREMENT="en_GB"
LC_IDENTIFICATION="en_GB"
LC_ALL=
Any ideas how I might fix this?
 
Old 03-20-2022, 08:55 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,361
Blog Entries: 28

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
I have not encountered this (but I don't use Acrobat, I use Okular for PDF files), but I found a thread on Stack Exchange that might be helpful: https://unix.stackexchange.com/quest...es-lc-all-c-do
 
Old 03-20-2022, 09:30 PM   #3
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
You need to reinstall the locale and configure it. On Debian it can be done using the following command, not sure what the equivalent command in Slack would be:

Code:
sudo dpkg-reconfigure locales
You can also try running the following commands:

Code:
echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
echo "LANG=en_US.UTF-8" | sudo tee -a /etc/locale.conf
sudo locale-gen en_US.UTF-8
These will set your locale to en_US.UTF-8. You might need to log out and then back in for it to take effect.

Last edited by suramya; 03-20-2022 at 09:31 PM.
 
Old 03-20-2022, 10:01 PM   #4
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
Set your desired locale in:

Code:
/etc/profile.d/lang.sh
Then log out and back in. OR, set it and run:

Code:
source /etc/profile
Then run your application again. I'm guessing you have the wrong locale set in /etc/profile.d/lang.sh. For it to become a system wide configuration, you will need to log out and into all user accounts on the system.
 
Old 03-21-2022, 08:38 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,352

Original Poster
Rep: Reputation: 75
suramya, thanks but your reply seems unsuitable for slackware. There is no locale.gen or locale.conf and generally sudo is not how we do things.

I am not convinced that my lang set up is the issue. My lang.sh is

Quote:
#!/bin/sh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a

# en_US.UTF-8 is the Slackware default locale. If you're looking for
# a different UTF-8 locale, be aware that some of them do not include
# UTF-8 or utf8 in the name. To test if a locale is UTF-8, use this
# command:
#
# LANG=<locale> locale -k charmap
#
# UTF-8 locales will include "UTF-8" in the output.
export LANG=en_GB.UTF-8

# 'C' is the old Slackware (and UNIX) default, which is 127-bit ASCII
# with a charmap setting of ANSI_X3.4-1968. These days, it's better to
# use en_US.UTF-8 or another modern $LANG setting (or at least en_US)
# to support extended character sets.
#export LANG=C

# Non-UTF-8 options for en_US:
#export LANG=en_US
#export LANG=en_US.ISO8859-1

# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places. Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
export LC_COLLATE=C

# End of /etc/profile.d/lang.sh
lang.csh is

Quote:
#!/bin/csh
# Set the system locale. (no, we don't have a menu for this ;-)
# For a list of locales which are supported by this machine, type:
# locale -a

# en_US.UTF-8 is the Slackware default locale. If you're looking for
# a different UTF-8 locale, be aware that some of them do not include
# UTF-8 or utf8 in the name. To test if a locale is UTF-8, use this
# command:
#
# LANG=<locale> locale -k charmap
#
# UTF-8 locales will include "UTF-8" in the output.
setenv LANG en_GB.utf8


# 'C' is the old Slackware (and UNIX) default, which is 127-bit ASCII
# with a charmap setting of ANSI_X3.4-1968. These days, it's better to
# use en_US.UTF-8 or another modern $LANG setting (or at least en_US)
# to support extended character sets.
#setenv LANG C

# Non-UTF-8 options for en_US:
#setenv LANG en_US
#setenv LANG en_US.ISO8859-1

# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places. Since this isn't usually expected and
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# setting, comment this out.
setenv LC_COLLATE C

# End of /etc/profile.d/lang.csh
Anyway even after setting LC_ALL=en_GB.utf8 Adobe reader isn't running. There is no error message at all.
 
1 members found this post helpful.
Old 03-21-2022, 09:05 AM   #6
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
arubin --

1. Just curious where you got your adobe reader ?

I've installed the SBo SlackBuild on my Slackware64 + Multilib System

See the README File below my sig.

I wonder if you can find the British Version of the _enu Source ?

Or ...

What happens if you simply set ADOBE_LANG="xxx" where xxx is whatever adobe wants for your local LANG ?

-- kjh

Code:
$ cat /dld/15.0/slackbuilds/SBo/adobe-reader/adobe-reader/README

Adobe's Acrobat Reader application (official binary) repackaged
in "Slackware style" for easier system maintenance.

This only works on the x86 architecture (no x86_64, arm, ...), although
it may work on x86_64 systems with alienBOB's multilib installed.

Note: The package will have the 3-letter language code in
the version number. The default language is "enu" (for US
English). E.g. for VERSION=9.5.5, the package will be called
adobe-reader-9.5.5_enu-i486-1_SBo.tgz by default. To use a different
language, first download the .tgz file for that language from Adobe's
site, then set ADOBE_LANG="xxx" in the environment, where "xxx" is the
3-letter language code and run the SlackBuild.
 
Old 03-21-2022, 09:40 AM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,352

Original Poster
Rep: Reputation: 75
I just installed it using sbopkg
I can't find the British version
Where would I put set ADOBE_LANG="xxx"?
 
Old 03-21-2022, 10:23 AM   #8
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
arubin --

I've never had to set that Environment Varb for the SBo Package because all they have to offer is the _enu Version ( enu = US English )

Or did you find one for British English ?

If so, to test you could try it from a command line like this:
Code:
export ADOBE_LANG="xxx"               # xxx should match the suffix on the tar file
/opt/Adobe/Reader9/bin/acroread &
OTOH if all you did was install the SBo Package, then forget about the ADOBE_LANG="xxx" ... it should run as-is.

-- kjh
 
Old 03-21-2022, 10:28 AM   #9
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
p.s. I just remembered something ...

I had to append the path to the adobe lib/ directory to /etc/ld.so.conf because there were missing links

After editing /etc/ld/so.conf, I typed at a root commandline: ldconfig

-- kjh
Code:
[konrad@kjhlt7 tmp]$ cat /etc/ld.so.conf

include /etc/ld.so.conf.d/*.conf
/lib64
/usr/lib64
/usr/local/lib64
/usr/x86_64-slackware-linux/lib64
#
# kjh was here
/opt/Adobe/Reader9/Reader/intellinux/lib

Last edited by kjhambrick; 03-21-2022 at 10:29 AM. Reason: add code tags
 
Old 03-21-2022, 10:49 AM   #10
longus
Member
 
Registered: Dec 2008
Posts: 49

Rep: Reputation: 3
Hi! Crash experience here too. With or without the forementioned options (LC_ALL and /etc/ls.so.conf) the program starts and a file could be opened and readed. It only compline about adwaita theme, so changed it.
The crash come when i open Preferences, after a couple of seconds, also with both options given and ommited. No output shown.
 
Old 03-21-2022, 11:53 AM   #11
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,352

Original Poster
Rep: Reputation: 75
Editing /etc/ld/so.conf did not make a difference.
 
Old 03-21-2022, 12:20 PM   #12
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
All --

I was looking at /opt/Adobe/Reader9/bin/acroread and I see the code below that modifies LD_LIBRARY_PATH

I pounded /opt/Adobe/Reader9/Reader/intellinux/lib from /etc/ld.so.conf and reran ldconfig and acroread still works.

I tried changing preferences->Units from Inches to Points and saved and exited acroread.

When I reran acroread the Units were still set to points.

Finally ...

I also see the Gtk-WARNING noted by longus:
Code:
[konrad@kjhlt7 tmp]$ acroread /home/tmp/foo.pdf &
[1] 28355
[konrad@kjhlt7 tmp]$ 
(acroread:28355): Gtk-WARNING **: 12:17:32.843: Unable to locate theme engine in module_path: "adwaita",
Sorry ... I am out of Ideas ...

-- kjh

Code:
case "$ACRO_CONFIG" in
  sparcsolaris)
    LD_LIBRARY_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:${MOZILLA_COMP_PATH}" "${LD_LIBRARY_PATH}"`"
    export LD_LIBRARY_PATH
    ;;
  intelsolaris)
    LD_LIBRARY_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:${MOZILLA_COMP_PATH}:${LIB_NSPR_PATH}" "${LD_LIBRARY_PATH}"`"
    export LD_LIBRARY_PATH
    ;;
  intellinux)
    LD_LIBRARY_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:${MOZILLA_COMP_PATH}" "${LD_LIBRARY_PATH}"`"
    export LD_LIBRARY_PATH
    ;;
  rs6000aix)
    LIBPATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:/opt/freeware/lib" "$LIBPATH"`"
    export LIBPATH
        ;;
  hppahpux)
    SHLIB_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/sidecars:/opt/graphics/OpenGL/lib" "$SHLIB_PATH"`"
        LD_PRELOAD=/opt/graphics/OpenGL/lib/libGL.sl
        export SHLIB_PATH
        export LD_PRELOAD
    ;;
esac
 
Old 03-23-2022, 01:35 PM   #13
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,352

Original Poster
Rep: Reputation: 75
The problem of Acrobat not running has been solved in this thread https://www.linuxquestions.org/quest...ib-4175709751/.

It was nothing to do with locale.
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "Perl: warning: Setting locale failed". Locale not available. tux_addict Debian 7 11-10-2018 11:33 AM
cannot lock locale archive "/usr/lib64/locale/locale-archive": Permission denied when building Multilib Cross Linux from Scratch Gunnersky2002 Linux - Software 2 06-13-2018 09:28 AM
[SOLVED] Removing Adobe Acrobat Reader installed from Adobe's binary jrdioko Linux - Software 5 05-07-2011 08:38 PM
"locale not supported by Xlib, locale set to C" Irad Linux - Software 3 06-25-2006 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration