Skip to content

Commit d04c3b0

Browse files
committed
Experimental support for RedHat Enterprise Linux user
1 parent 031aa2a commit d04c3b0

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

deps/igraph-0.10.x/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ExternalProject_Add(igraph_0_10
1919
PREFIX "${IGRAPH_INSTALL}"
2020
URL "https://github.com/igraph/igraph/releases/download/0.10.12/igraph-0.10.12.tar.gz"
2121
SOURCE_DIR "${IGRAPH_DOWNLOAD}"
22-
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${IGRAPH_INSTALL}" "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" "-Wno-deprecated" "-DIGRAPH_VERSION=0.10.12"
22+
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${IGRAPH_INSTALL}" "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_INSTALL_LIBDIR=${IGRAPH_INSTALL}/lib" "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" "-Wno-deprecated" "-DIGRAPH_VERSION=0.10.12"
2323
BINARY_DIR "${IGRAPH_BUILD}"
2424
PATCH_COMMAND echo "No patch for igraph-0.10.x required"
2525
INSTALL_DIR "${IGRAPH_INSTALL}"

install_dependencies.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ if [[ "$platform" == 'macOS' ]]; then
6868
exit 255
6969
fi
7070
elif [[ "$platform" == 'linux' ]]; then
71+
. /etc/os-release
7172
if [ "$distribution" == 'Ubuntu' ] || [ "$distribution" == 'LinuxMint' ]; then
7273

7374
sudo apt-get update && sudo apt-get install -y build-essential verilator \
@@ -85,6 +86,23 @@ elif [[ "$platform" == 'linux' ]]; then
8586
gcovr python-sphinx doxygen python-sphinx_rtd_theme python-jedi \
8687
python-pip pybind11 rapidjson spdlog graphviz boost \
8788
python-dateutil z3
89+
elif [[ "$ID" == 'rhel' ]]; then
90+
RHEL_VERSION=`echo $VERSION_ID | cut -d. -f1`
91+
echo "Running experimental setup for RedHat Enterprise Linux version $RHEL_VERSION <$VERSION_ID>."
92+
read -p "Will try to install some development packages from Fedora Rawhide. Is this OK? [yN] " yn
93+
if [ "$yn" != 'y' ] && [ "$yn" != 'Y' ]; then
94+
echo "Aborted installation"
95+
exit 255
96+
fi
97+
for pkg in pkgconfig git qtv llvm cmake flex bison python graphviz boost readline g++ make; do
98+
sudo yum install -y $pkg
99+
done
100+
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$RHEL_VERSION.noarch.rpm
101+
sudo yum update -y
102+
for pkg in boost-devel z3 rapidjson-devel qt5-qtbase-devel qt5-qtsvg-devel z3-devel python-devel verilator; do
103+
sudo yum install -y $pkg
104+
done
105+
exit 255
88106
else
89107
echo "Unsupported Linux distribution: abort!"
90108
exit 255

0 commit comments

Comments
 (0)