autoreconf报错LC_ALL和LANGUAGE未设置
报错提示:
merlin@ubuntu:/opt/smbshared/projects/x86test/openvpn/openvpn-release-2.4$ autoreconf -i -v -f perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'. libtoolize: copying file `./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). autoreconf: running: /home/merlin/swinst/poky/sysroots/x86_64-pokysdk-linux/usr/bin/autoconf --force autoreconf: running: /home/merlin/swinst/poky/sysroots/x86_64-pokysdk-linux/usr/bin/autoheader --force perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). autoreconf: running: automake --add-missing --copy --force-missing perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). src/openvpnserv/Makefile.am:32: warning: source file '$(top_srcdir)/src/openvpn/block_dns.c' is in a subdirectory, src/openvpnserv/Makefile.am:32: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. tests/unit_tests/openvpn/Makefile.am:23: warning: source file '$(openvpn_srcdir)/platform.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:23: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:23: warning: source file '$(openvpn_srcdir)/buffer.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:23: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:23: warning: source file '$(openvpn_srcdir)/argv.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:23: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:30: warning: source file '$(openvpn_srcdir)/buffer.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:30: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:30: warning: source file '$(openvpn_srcdir)/platform.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:30: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:39: warning: source file '$(openvpn_srcdir)/buffer.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:39: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:39: warning: source file '$(openvpn_srcdir)/otime.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:39: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:39: warning: source file '$(openvpn_srcdir)/packet_id.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:39: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:39: warning: source file '$(openvpn_srcdir)/platform.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:39: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:50: warning: source file '$(openvpn_srcdir)/buffer.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:50: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:50: warning: source file '$(openvpn_srcdir)/crypto.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:50: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:50: warning: source file '$(openvpn_srcdir)/crypto_mbedtls.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:50: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:50: warning: source file '$(openvpn_srcdir)/crypto_openssl.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:50: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:50: warning: source file '$(openvpn_srcdir)/otime.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:50: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:50: warning: source file '$(openvpn_srcdir)/packet_id.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:50: but option 'subdir-objects' is disabled tests/unit_tests/openvpn/Makefile.am:50: warning: source file '$(openvpn_srcdir)/platform.c' is in a subdirectory, tests/unit_tests/openvpn/Makefile.am:50: but option 'subdir-objects' is disabled tests/unit_tests/plugins/auth-pam/Makefile.am:10: warning: source file '$(sut_sourcedir)/utils.c' is in a subdirectory, tests/unit_tests/plugins/auth-pam/Makefile.am:10: but option 'subdir-objects' is disabled autoreconf: running: gnu-configize perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). autoreconf: Leaving directory `.' merlin@ubuntu:/opt/smbshared/projects/x86test/openvpn/openvpn-release-2.4$
解决方法:
在bashrc中添加下面这一句:
export LC_ALL=C
然后source ~/.bashrc
就可以了
(生成configure啦~)