Skip to content

Instantly share code, notes, and snippets.

@ciscorn
Created August 3, 2024 11:10
Show Gist options
  • Save ciscorn/db98cc1acb84094142672c7c672c2b24 to your computer and use it in GitHub Desktop.
Save ciscorn/db98cc1acb84094142672c7c672c2b24 to your computer and use it in GitHub Desktop.
Build wgrib2 on macOS
brew install libomp netcdf
export OpenMP_ROOT=$(brew --prefix)/opt/libomp
cd wgrib2-3.3.0/
mkdir -p build
cd build
cmake .. -DUSE_NETCDF3=0 -DUSE_NETCDF4=1
make -j 4
make wgrib2_exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment