Announcement

Collapse
No announcement yet.

perl error: what does this mean?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] perl error: what does this mean?

    i just upgraded to noble, and (apart from a hiccup getting thudnerbird installed) it seemed to go flawlessly...

    except that, when i rebooted, i was presented with a perl error message that said:

    perl: warning: setting locale failed.
    perl: warning: Please check that your locale settings:
    LANGUAGE = "en_CA:en",
    LC_ALL = (unset)
    LC_MEASUREMENT = "en_GB.UTF-8",
    LC_MONETARY = "en_GB.UTF-8",
    LC_NUMERIC = "en_GB.UTF-8",
    LC_TIME = "osa_GB.UTF-8",
    LANG = "en_GB.UTF-8",
    are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_GB.UTF-8">

    attachment included.

    i checked in system settings, and it appears that all of these settings are set correctly, but i'm fairly sure that i have overlooked something really simple to make this message go away, and i can't recall what it is...

    any clues would help. thanks.
    Attached Files
    ⇑ Hybrid Elephant
    http://www.hybridelephant.com/
    ⇓ The world's finest exotic incense

    #2
    Originally posted by przxqgl View Post
    LC_ALL = (unset)
    The "unset" is probably your issue. I've run into this as well.

    Probably the easiest fix is to add this to the bottom of your ~/.profile file:

    Code:
    export LC_ALL=en_US.UTF-8
    export LANGUAGE=en_US.UTF-8

    or GB instead of US. I believe it's just a perl error and this shouldn't effect anything else.

    Alternately, you can ignore it.

    I also added:

    Code:
    export LC_PAPER=letter
    export EDITOR=kate


    because I couldn't get letter size paper to stick.

    Please Read Me

    Comment


      #3
      LC_ALL is normally not set. IIUC it overrides the other localization settings, mostly.

      przxqgl, in a konsole, what does the command locale say? On my 24.04 it is
      Code:
      $ locale
      LC_ADDRESS=en_NZ.UTF-8
      LC_IDENTIFICATION=en_NZ.UTF-8
      LC_MEASUREMENT=en_NZ.UTF-8
      LC_MONETARY=en_NZ.UTF-8
      LC_NAME=en_NZ.UTF-8
      LC_NUMERIC=en_NZ.UTF-8
      LC_PAPER=en_NZ.UTF-8
      LC_TELEPHONE=en_NZ.UTF-8
      LC_TIME=en_SE.UTF-8​
      and, what are the contents of ~/.pam_environment and ~/.config/plasma-localerc?
      Regards, John Little

      Comment


        #4
        Originally posted by jlittle View Post
        przxqgl, in a konsole, what does the command locale say?
        $ locale
        locale: Cannot set LC_ALL to default locale: No such file or directory
        LANG=en_GB.UTF-8
        LANGUAGE=en_CA:en
        LC_CTYPE="en_GB.UTF-8"
        LC_NUMERIC=en_US.UTF-8
        LC_TIME=osa_US.UTF-8
        LC_COLLATE="en_GB.UTF-8"
        LC_MONETARY=en_US.UTF-8
        LC_MESSAGES="en_GB.UTF-8"
        LC_PAPER="en_GB.UTF-8"
        LC_NAME="en_GB.UTF-8"
        LC_ADDRESS="en_GB.UTF-8"
        LC_TELEPHONE="en_GB.UTF-8"
        LC_MEASUREMENT=en_GB.UTF-8
        LC_IDENTIFICATION="en_GB.UTF-8"
        LC_ALL=


        ​which is, apparently, exactly what it should be...

        Originally posted by jlittle View Post
        what are the contents of ~/.pam_environment and ~/.config/plasma-localerc?
        ~/.pam_environment

        hmm... i don't appear to have a ~/.pam_environment

        what IS ~/.pam_environment?

        ~/.config/plasma-localerc contains:

        Code:
        [Formats]
        LANG=en_GB.UTF-8
        LC_MEASUREMENT=en_GB.UTF-8
        LC_MONETARY=en_US.UTF-8
        LC_NUMERIC=en_US.UTF-8
        LC_TIME=osa_US.UTF-8
        ​
        which, again, apparently, is exactly what it should be.
        Last edited by przxqgl; Aug 30, 2024, 04:48 PM.
        ⇑ Hybrid Elephant
        http://www.hybridelephant.com/
        ⇓ The world's finest exotic incense

        Comment


          #5
          Originally posted by oshunluvr View Post
          Alternately, you can ignore it.
          i have been doing that for a while now, and it has never seemed to make that much difference.
          ⇑ Hybrid Elephant
          http://www.hybridelephant.com/
          ⇓ The world's finest exotic incense

          Comment


            #6
            hmm... i don't appear to have a ~/.pam_environment
            what IS ~/.pam_environment?
            [/QUOTE]
            I just looked for files that had LC_ variables in them, and found that one. I hadn't noticed it before. An AskUbuntu post says that it is deprecated.

            systemd is supposed to do this stuff. I suggest looking at the man page for environment.d, either locally or at the Ubuntu page.
            Regards, John Little

            Comment


              #7
              Originally posted by przxqgl View Post
              locale: Cannot set LC_ALL to default locale: No such file or directory
              Something, somewhere is trying to set an LC_ variable to something funky. As well as the places mentioned in the man page, I suggest checking /etc/default/environment, and make sure your start up scripts (.profile and if you use bash, .bashrc) aren't setting something, either LC_ALL or LOCPATH.

              bash also runs everything in /etc/profile.d, and mine has 01-locale-fix.sh, which runs locale-check. You might try running
              Code:
              local-check C.UTF-8
              maybe it would explain the problem.

              Some folks have solved similar problems by running
              Code:
              sudo dpkg-reconfigure locales
              I note that that doesn't offer to generate a locale for osa_EN, (Osage nation in Oklahoma) which makes me suspicious of it. Maybe that LC_TIME setting isn't properly supported.
              Regards, John Little

              Comment


                #8
                Originally posted by oshunluvr View Post

                The "unset" is probably your issue. I've run into this as well.

                Probably the easiest fix is to add this to the bottom of your ~/.profile file:

                Code:
                export LC_ALL=en_US.UTF-8
                export LANGUAGE=en_US.UTF-8

                or GB instead of US. I believe it's just a perl error and this shouldn't effect anything else.
                well, i don't know how it made a difference, and i still don't know exactly what the error message meant, or what was trying to set LC_ALL to something funky, but inserting this code into my ~/.profile seems to have eliminated the problem.

                than queue!
                ⇑ Hybrid Elephant
                http://www.hybridelephant.com/
                ⇓ The world's finest exotic incense

                Comment

                Working...
                X