NCAR / ncl

The NCAR Command Language (NCL) is a scripting language for the analysis and visualization of climate and weather data.
http://www.ncl.ucar.edu
Other
263 stars 65 forks source link

Unable to run NCL following the software update to macOS 10.15 #112

Open allenea opened 4 years ago

allenea commented 4 years ago

Describe the bug Unable to run NCL following the software update to OSX 10.15 - Catalina.

Provide the following: allenea@host-30-82 ~ % ncl Copyright (C) 1995-2015 - All Rights Reserved University Corporation for Atmospheric Research NCAR Command Language Version 6.3.0 The use of this software is governed by a License Agreement. See http://www.ncl.ucar.edu/ for more details. warning:Unable to Get System Resource File Name? warning:Unable to load System Resource File (null) fatal:GetSysAppDir:Unable to get a default value for the system App Resource directory warning:["Resources.c":734]:Unable to set appSysDir to default value - Using NULL fatal:GetSysAppDir:Unable to get a default value for the system App Resource directory warning:["Resources.c":734]:Unable to set appSysDir to default value - Using NULL warning:Unable to Get System Resource File Name? warning:WorkstationClassInitialize:Unable to access rgb color database - named colors unsupported:[errno=2] NDV_COLORMAP_PATH environment variable not set: defaulting to .:$NCARG_ROOT/lib/ncarg/colormaps warning:["Palette.c":1844]:NhlLoadColormapFiles: Invalid directory encountered in colormap path specification zsh: segmentation fault ncl

Computing environment

Additional context After updating my computer (big mistake) NCL no longer works. Do you have any known fixes to this issue or is there a new release coming that supports Catalina?

rbrownrigg commented 4 years ago

Hi,

Those messages look like either the environment variable NCARG_ROOT is not set, or it is not pointing in the right place. I don't know how/why and upgrade of the OS would cause this -- I've not seen this problem before.

Do you happen to know where NCL is currently installed on your system -- its obviously in your PATH. Perhaps try the command "which ncl", and that should return a path like "/.../something/bin/ncl". If so, then cd into the "/.../something" part and see if there is a directory "lib" and under that a directory "ncarg". If so, the "/.../something" part is the value of your NCARG_ROOT env-variable.

Hope that helps... Rick

On Thu, Oct 17, 2019 at 11:19 AM Eric Allen notifications@github.com wrote:

Describe the bug Unable to run NCL following the software update to OSX 10.15 - Catalina.

Provide the following: allenea@host-30-82 ~ % ncl Copyright (C) 1995-2015 - All Rights Reserved University Corporation for Atmospheric Research NCAR Command Language Version 6.3.0 The use of this software is governed by a License Agreement. See http://www.ncl.ucar.edu/ for more details. warning:Unable to Get System Resource File Name? warning:Unable to load System Resource File (null) fatal:GetSysAppDir:Unable to get a default value for the system App Resource directory warning:["Resources.c":734]:Unable to set appSysDir to default value - Using NULL fatal:GetSysAppDir:Unable to get a default value for the system App Resource directory warning:["Resources.c":734]:Unable to set appSysDir to default value - Using NULL warning:Unable to Get System Resource File Name? warning:WorkstationClassInitialize:Unable to access rgb color database - named colors unsupported:[errno=2] NDV_COLORMAP_PATH environment variable not set: defaulting to .:$NCARG_ROOT/lib/ncarg/colormaps warning:["Palette.c":1844]:NhlLoadColormapFiles: Invalid directory encountered in colormap path specification zsh: segmentation fault ncl

Computing environment

  • OS: Mac
  • OS version: MacOS 10.15 - Catalina
  • NCL Version: 6.3.0
  • It was working prior to the update to Catalina

Additional context After updating my computer (big mistake) NCL no longer works. Do you have any known fixes to this issue or is there a new release coming that supports Catalina?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NCAR/ncl/issues/112?email_source=notifications&email_token=ADLWOXVPZ2VRKBGPIYC7ZMLQPCNARA5CNFSM4JB4VYFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HSQ2OSQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLWOXUN6QWUATVJBB54U3LQPCNARANCNFSM4JB4VYFA .

rainhualala commented 5 months ago

I encountered this problem。I have solve it by setting NCARG_ROOT env-variable。Thanks!