This week we were trying to make the new MATLAB R2014b package available on the managed Linux workstations. The new version persistently produced an error message about locales when run on my test machine. However it worked fine on another supposedly identical machine.
When we checked the locale settings on the test machine they were incorrect, which was unsurprising. However the confusing thing was how they had got that way. The usual config files on the test machine all had correct locale settings. We also found that manually correcting the locale on the problem machine setting the LC_ALL and LANG environment variables didn’t make the MATLAB error vanish, which was very surprising.
Eventually we discovered that the problem was a .pam_environment file in my home directory with some outdated locale settings in it. This file is read as part of the process of starting a new session on our managed workstations, and its contents affect the environment. Loading MATLAB appears to cause that file to be reread, overwriting any locale settings we had previously set.
So now we have a working MATLAB R2014b package (load the appropriate module to use it if you’re on a managed Linux workstation). And if you try it and get an error message about locale, check your home directory for .pam_environment .
-
Recent Posts
-
Recent Comments
-
Archives
- August 2021
- April 2021
- March 2021
- July 2020
- May 2020
- March 2020
- February 2020
- January 2020
- November 2019
- June 2019
- May 2019
- April 2019
- March 2019
- July 2018
- June 2017
- October 2016
- September 2016
- August 2016
- June 2016
- April 2016
- March 2016
- February 2016
- November 2015
- October 2015
- September 2015
- August 2015
- June 2015
- April 2015
- March 2015
- January 2015
- October 2014
- September 2014
- August 2014
- July 2014
- January 2014
- September 2013
- July 2013
- May 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
-
Categories
-
Meta