Created
August 3, 2024 11:10
-
-
Save ciscorn/db98cc1acb84094142672c7c672c2b24 to your computer and use it in GitHub Desktop.
Build wgrib2 on macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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