• 周五. 5月 2nd, 2025

flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion

8月 2, 2020

flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion

报以下错:

flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0])
 failed.
Aborted (core dumped)

解决办法:

在~/.bashrc添加export LC_ALL=C
如下:
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

export LC_ALL=C