Install Required RHEL/CentOS Packages

Before installing the Vitis software platform on CentOS or RedHat, you must install the Extra Packages for Enterprise Linux (EPEL), and ensure you have the proper kernel-headers and kernel-devel packages installed. The initial setup commands depend on your operating system. For more information, see https://fedoraproject.org/wiki/EPEL.
  1. Install EPEL.

    On RedHat:

    To enable an additional repository on your system and install the packages, open a terminal window, and enter the following command:

    $ sudo yum-config-manager --enable rhel-7-server-optional-rpms
    
    $ sudo yum install -y https://dl.fedoraproject.org/pub/epel/
    epel-release-latest-7.noarch.rpm
    

    On CentOS:

    Open a terminal window, and enter the following command:

    sudo yum install epel-release
  2. To install kernel headers and kernel development packages, run the following commands:
    $ sudo yum install kernel-headers-`uname -r` 
    $ sudo yum install kernel-devel-`uname -r`
    Note: Ensure that uname is surrounded by backticks (`) and not single quotes (').
  3. To install additional packages required for emulation, run the following commands.
    sudo yum install gcc
    sudo yum install gcc-c++
    sudo yum install python2
    ln -s /usr/bin/python2 /usr/bin/python
    
  4. Cold reboot your system.
TIP: To verify that you have installed all required packages on your machine, use this script: https://github.com/Xilinx/XRT/blob/master/src/runtime_src/tools/scripts/xrtdeps.sh.