Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qt online install error:Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale
Forum Updated to NodeBB v4.3 + New Features

qt online install error:Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 92 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jjgcwll
    wrote 25 days ago last edited by jjgcwll
    #1

    when i run qt online installer on centos7 . because centos7 is a old version os.so i upgrade glibc and gcc. but when i run the qt online installer .an error occurs saying:Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, but has failed to switch to one. If this causes problems, reconfigure your locale. See the locale(1) manual for more information.No marker found, stopped after 1.00 MB.
    here is my shell script used to exec the qt online installer :
    #!/bin/bash
    export LC_ALL="en_US.UTF-8"
    export LANG="en_US.UTF-8"
    export LC_CTYPE="en_US.UTF-8"
    export LC_NUMERIC="en_US.UTF-8"
    export LC_TIME="en_US.UTF-8"
    export LC_COLLATE="en_US.UTF-8"
    export LC_MONETARY="en_US.UTF-8"
    export LC_MESSAGES="en_US.UTF-8"
    export LC_PAPER="en_US.UTF-8"
    export LC_NAME="en_US.UTF-8"
    export LC_ADDRESS="en_US.UTF-8"
    export LC_TELEPHONE="en_US.UTF-8"
    export LC_MEASUREMENT="en_US.UTF-8"
    export LC_IDENTIFICATION="en_US.UTF-8"
    #export QT_MIRROR=https://mirrors.tuna.tsinghua.edu.cn/qt
    locale
    GLIBC_DIR="/home/wll/glibcinstall"
    exec env LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US:en" "$GLIBC_DIR/lib/ld-linux-x86-64.so.2"
    --library-path "/home/wll/glibcinstall/lib:/home/wll/gccinstalldirusenewmake/lib64:/home/wll/gccinstalldirusenewmake/lib/gcc/x86_64-pc-linux-gnu/8.5.0/plugin:/home/wll/gettextinstall/lib:/home/wll/gmpinstall/lib:/home/wll/islinstall/lib:/home/wll/mpcinstall/lib:/home/wll/mpfrinstall/lib:/home/wll/zlibinstall/lib:/home/wll/dbusinstall/lib:/usr/lib64:/lib64"
    ./qt-online-installer-linux-x64-4.10.0.run

    1 Reply Last reply
    0

    1/1

    20 Jun 2025, 14:54

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved