NCAR / ncl

The NCAR Command Language (NCL) is a scripting language for the analysis and visualization of climate and weather data.

Home Page:http://www.ncl.ucar.edu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error cannot find -lgrib2c

afernandezody opened this issue · comments

Hello,
When I try to build NCL from source with GRIB2 support, it is generating the error message /bin/ld: cannot find -lgrib2c. It seems like the discrepancy is because the libraries created with the newest versions of g2clib-devel use different names. Is this simply a legacy problem and a matter of making the necessary changes in the source code, or am I missing something else? Thanks.

Yes, the problem is that it doesn't find the library because in my system (CentOS8), the name of the library seems to be libg2c_v1.6.0.a, not libgrib2c as the NCL installer seeks. I'm not sure if in other systems the library is built with a different name, and my question is simply if the issue is simply a matter of notation of if there is anymore to it that I might be missing. Thanks.

Either that or modify the source files so that it looks for the other name. Just wanted to double-check that I'm not missing anything. Thanks.