Skip to content

Compile Source Codes on Red Hat Enterprise Linux 7.4

zhanxw edited this page Sep 16, 2017 · 3 revisions

(Edited on September 15, 2017)

Enter the following commands to install prerequisite software and libraries:

sudo yum -y install epel-release
sudo yum -y update
sudo yum -y install \
  wget \
  bzip2 \
  gcc \
  gcc-c++ \
  gcc-gfortran \
  make \
  git \
  zlib-devel
sudo yum clean all

Then obtain RVTESTS source codes and compile:

git clone https://github.com/zhanxw/rvtests
cd rvtests
make

After compilation, the executable file can be found under rvtests/executable. You can start with:
rvtests/executable --help

If you encounter problems related to memory, please try to allocate more swap space and compile again.

# allocate swap space
sudo dd if=/dev/zero of=/mnt/1GB.swap count=1024 bs=1M
sudo mkswap /mnt/1GB.swap
sudo swapon /mnt/1GB.swap
# compile again
make STATIC_FLAG=""