Skip to content

Commit

Permalink
Add build script for RedHat
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaweiZhuang committed Jan 31, 2018
1 parent 731541a commit 1c4d0df
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build_library/quick_build_RedHat.sh
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

0 comments on commit 1c4d0df

Please sign in to comment.