Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Debian #589

Merged
merged 1 commit into from
Sep 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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