This file contains 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
#!/bin/bash | |
# License for this script is GNU 2 | |
# A small bash script to download, compile and install latest wgrib2 from source. | |
# I have written this script so that I can automate the proceedure whenever I change Linux OS | |
# Make it executable before running the script using'chmod +x ./wgrib2_auto_compile_script.sh' | |
# Ensure to run the script with sudo (sudo ./wgrib2_auto_compile_script.sh) or under root environment |
This file contains 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
#!/usr/bin/env bash | |
# NOTE: This requires you to have Homebrew installed | |
# --> https://brew.sh/ | |
# NOTE: You need to have Homebrew's GCC installed | |
# --> brew install gcc | |
wget ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz | |
tar xvzf wgrib2.tgz |