Skip to content

Commit

Permalink
Merge pull request #589 from JKJameson/master
Browse files Browse the repository at this point in the history
Add support for Debian
  • Loading branch information
mikechristie authored Sep 4, 2019
2 parents 1385e13 + eff210c commit 7376017
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions extra/install_dep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# Userspace side of the LIO TCM-User backstore
#
Expand All @@ -23,8 +23,22 @@ if [ y`uname`y = yLinuxy ]; then
yum search librbd-devel | grep -q "N/S matched" && LIBRBD=librbd || LIBRBD=librbd1
$SUDO yum install -y $LIBRBD-devel
;;
debian)
# Update APT cache
$SUDO apt update

# for generic
$SUDO apt install -y cmake make gcc libnl-3-dev libglib2.0-dev zlib1g kmod
$SUDO apt install -y libnl-3-dev libglib2.0-0 libkmod-dev libgoogle-perftools-dev

# for glusterfs
$SUDO apt install -y libglusterfs-dev

# for ceph
$SUDO apt install -y librados2 librbd-dev
;;
*)
echo "TODO: only fedora/rhel/centos are supported for now!"
echo "TODO: only fedora/rhel/centos/debian are supported for now!"
;;
esac
else
Expand Down

0 comments on commit 7376017

Please sign in to comment.