Last active
September 13, 2022 10:22
-
-
Save cityofships/b4883ee19f75d14534f04115892b8465 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
OFED_URL_BASE="https://content.mellanox.com/ofed" | |
OFED_VERSION="5.6-2.0.9.0" | |
# Just in case | |
mkdir -p ~/tmp && sudo mount -o remount,exec /tmp || true | |
# Make sure the dependencies are in place | |
sudo dnf -y install bison \ | |
cmake \ | |
elfutils-devel \ | |
flex \ | |
gcc \ | |
gcc-c++ \ | |
gdb-headless \ | |
glib2-devel \ | |
glibc-devel \ | |
iptables-devel \ | |
kernel-devel \ | |
kernel-rpm-macros \ | |
libdb-devel \ | |
libmnl-devel \ | |
libnl3-devel \ | |
libselinux-devel \ | |
libstdc++-devel \ | |
libtool \ | |
numactl-devel \ | |
openssl-devel \ | |
perl-generators \ | |
python3-docutils \ | |
python38-Cython \ | |
rpm-build \ | |
systemd-devel \ | |
valgrind-devel \ | |
zlib-devel | |
# Download & extract OFED sources | |
curl ${OFED_URL_BASE}/MLNX_OFED-${OFED_VERSION}/MLNX_OFED_SRC-${OFED_VERSION}.tgz \ | |
-o MLNX_OFED_SRC-${OFED_VERSION}.tgz && \ | |
tar xzf MLNX_OFED_SRC-${OFED_VERSION}.tgz && \ | |
cd MLNX_OFED_SRC-${OFED_VERSION} | |
# Start the build process - just kernel modules. | |
# Avoids usage of /var/tmp by specifying --builddir argument. | |
./install.pl --basic \ | |
--build-only \ | |
--builddir ~/tmp \ | |
--distro el8s \ | |
--kernel-only \ | |
--without-depcheck |
Author
cityofships
commented
Aug 30, 2022
python3-cython instead of python38-cython from PowerTools
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment