Skip to content
Toberumono edited this page Nov 28, 2017 · 2 revisions

A Few Quick Notes

  1. This script must be run in the same directory as the downloaded WRF, WPS, WRF-Chem, and GEOGRID tarballs.
  2. The path to the downloaded files cannot contain any spaces - WRF will not compile if the path has spaces.
  3. This script uses Homebrew on Macs and either Apt or Linuxbrew on Linux.

Preparation

  1. On Mac, install Homebrew.
  2. If your system does not have Git (run which git in Terminal, if a path shows up, your system has Git), run:
  • Debian Linux (e.g. Ubuntu):
    • sudo apt-get install git
  • Mac OSX
    • brew install git
  1. Create an empty directory.
  2. In Terminal, cd into that directory and run:
wget -O - https://github.com/Toberumono/WRF-Setup-Script/archive/$(git ls-remote --tags https://github.com/Toberumono/WRF-Setup-Script.git | grep -oE '([0-9]+\.)*[0-9]+$' | sort -g | tail -1).tar.gz | tar -xz --strip-components 1 -C .
  • This command grabs the latest tagged version of the scripts from GitHub and downloads them into the newly-created directory.
  1. Download the tarballs (tar files) for WRF-ARW, WPS, WRF-Chem and the WPS GEOGRID data (Available from the UCAR website, http://www2.mmm.ucar.edu/wrf/users/download/get_source.html).
  2. Move the downloaded tar files into the directory containing the scripts.
  3. As of this writing, WRF Version 3.7.1 is the latest stable release. You may need to change the version numbers in the variables file to match the version that you downloaded.

Running the Script

  1. In terminal, cd into the directory into which you downloaded the script and tarballs.
  2. Run sudo ./WRFSetup.sh if you have sudo privileges and are not certain that all of the required support software and libraries have been installed and you are not using Homebrew.
  • Depending on how many libraries need to be installed, this could take a long time.
  • If you have not already installed gcc/gfortran on your system, this can take a very long time and will likely look like it is hanging. Give it time (sometimes over an hour), and it will complete.
  • There may be multiple warnings about things already being tapped or installed. This is normal - it just means that 'brew has detected that some of the requirements were already installed.
  1. In subsequent runs, the script can be run without sudo regardless of operating system.