There is an automated build script that can install all dependencies and build EOSIO.
The script supports the following operating systems.
Amazon Linux 2
MacOS 10.14 (Mojave)
Run the build script from the
cd eos ./scripts/eosio_build.sh
After the script has completed, install EOSIO