cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dreadedhill
Observer
Observer
292 Views
Registered: ‎01-26-2019

How to work-around Vitis 2021.1 installLibs.sh errors?

At the end of the 2021.1 install, a popup requested that I run installLibs.sh, which emitted obscure errors. Looked at the script, and was slightly horrified.

While I might still be learning FPGA programming, I can fix shell scripts. Only tested on Linux Mint (i.e. Ubuntu). Run as the a normal user (with sudo privilege). Shorter and cleaner...

FILE: scripts/installLibs.sh

#!/bin/bash

echo "
==== Can we sudo?"
sudo echo "We can." || {
    echo "ERROR cannot sudo!"
    exit 1
}

STAMP=$(date '+%Y-%m-%d_%H-%M-%S')
LOGFILE=$HOME/.Xilinx/xinstall/$( basename $0 )_$STAMP

TMP_RELEASE=/tmp/os-release
{
    cat /etc/os-release || lsb_release -a
} > $TMP_RELEASE

(
    grep -qi Ubuntu $TMP_RELEASE && cat <<XXXX
### AIE Tools prerequisite libraries
### Vitis Tools prerequisite libraries
apt-get update
apt-get install -y libc6-dev-i386 net-tools graphviz make unzip g++ libtinfo5 xvfb git
XXXX
    grep -qi 'Redhat\|Centos' $TMP_RELEASE && cat <<XXXX
### AIE Tools prerequisite libraries
### Vitis Tools prerequisite libraries
### To install kernel headers and kernel development packages
yum update
yum install -y graphviz redhat-lsb openssl libXScrnSaver gcc gcc-c++ git kernel-headers-`uname -r` kernel-devel-`uname -r`
XXXX
    grep -qi 'Centos' $TMP_RELEASE && cat <<XXXX
yum install -y epel-release 
XXXX
) | sudo sh -x >> $LOGFILE

 

1 Reply
hongh
Moderator
Moderator
176 Views
Registered: ‎11-04-2010

The answer post: https://forums.xilinx.com/t5/Vitis-Acceleration-SDAccel-SDSoC/Corrected-installLibs-sh-script-for-Vitis/td-p/1211835

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos