From 346d494ea85da1f9a229b5a76ea77109ee9eb3b3 Mon Sep 17 00:00:00 2001 From: Kevin Sommler <36013264+ksomml@users.noreply.github.com> Date: Fri, 4 Oct 2024 18:37:27 +0200 Subject: [PATCH] Add locale requirements Fixes issue https://github.com/opensim-org/opensim-core/issues/3924 --- scripts/build/opensim-core-linux-build-script.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/build/opensim-core-linux-build-script.sh b/scripts/build/opensim-core-linux-build-script.sh index a5948e99cb..aaeb2c2501 100644 --- a/scripts/build/opensim-core-linux-build-script.sh +++ b/scripts/build/opensim-core-linux-build-script.sh @@ -78,6 +78,15 @@ else fi echo +# Set UTF-8 locale and en_US locale for numeric formatting. +echo "LOG: CHECKING AND SETTING LOCALE..." +sudo apt update && sudo apt install --yes locales +sudo locale-gen en_US.UTF-8 +sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 +export LANG=en_US.UTF-8 +locale +echo + # Install dependencies from package manager. echo "LOG: INSTALLING DEPENDENCIES..." sudo apt-get update && sudo apt-get install --yes build-essential cmake autotools-dev autoconf pkg-config automake libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools git libssl-dev libpcre3 libpcre3-dev libpcre2-dev libtool gfortran ninja-build patchelf || ( echo "Installation of dependencies using apt-get failed." && exit )