-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
731541a
commit 1c4d0df
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# The quickest way to install NetCDF libraries on RedHat/CentOS/AmazonLinux | ||
|
||
# sudo yum update -y # this take quite long, don't have to do it | ||
sudo yum install -y git vim emacs # RHEL and CentOS both lack them | ||
sudo yum install -y gcc gcc-gfortran gcc-c++ | ||
|
||
# Pre-built NC lib is in only available in EPEL | ||
# see https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/ | ||
sudo yum-config-manager --enable epel # for Amazon Linux | ||
#sudo yum install -y epel-release # for CentOS | ||
|
||
# this pre-built packages lacks netcdf.mod | ||
# But GC-classic only uses `include 'netcdf.inc'`, not `use netcdf` | ||
sudo yum install -y netcdf-devel netcdf-fortran-devel |