nesi / APSIM-HPC

Deploy APSIM (Agricultural Production Systems sIMulator - https://www.apsim.info/) on high performance computing clusters.
https://nesi.github.io/APSIM-HPC/
MIT License
0 stars 0 forks source link

Apptainer def is missing LC_ environment variables #2

Closed DininduSenanayake closed 2 months ago

DininduSenanayake commented 3 months ago

Current version of the definition as per (https://github.com/DininduSenanayake/APSIM-eri-mahuika/issues/1) is missing LC_ which in turn triggers the following,

During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_COLLATE failed, using "C" 
3: Setting LC_TIME failed, using "C" 
4: Setting LC_MESSAGES failed, using "C" 
5: Setting LC_MONETARY failed, using "C" 
6: Setting LC_PAPER failed, using "C" 
7: Setting LC_MEASUREMENT failed, using "C" 

Fix is to export these within the definition file and rebuilt the container

DininduSenanayake commented 2 months ago

This is fixed in https://github.com/DininduSenanayake/APSIM-eri-mahuika/commit/f810f61314803f466c6db2de6743be6c899592b0

$ module load Apptainer

$ apptainer shell apsim-2024.08.7572.0.aimg 
Apptainer> R

R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

>