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
-
wrote 25 days ago last edited by jjgcwll
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/1