cd /path/to/wgrib2 tar -xvf wgrib2.tgz.v3.1.1 cd wgrib2
sed -i "860s/configure/configure --build=aarch64-unknown-linux-gnu/g" makefile sed -i "936s/configure/configure --build=aarch64-unknown-linux-gnu/g" makefile
make make lib