xref: /spdk/scripts/pkgdep/debian.sh (revision 14e26b9d0410a98689caffcba7bfacac8d85c74d)
1#!/usr/bin/env bash
2#  SPDX-License-Identifier: BSD-3-Clause
3#  Copyright (C) 2020 Intel Corporation
4#  Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES.
5#  All rights reserved.
6#  Copyright (c) 2022 Dell Inc, or its subsidiaries.
7#
8
9apt-get install -y gcc g++ make libcunit1-dev libaio-dev libssl-dev libjson-c-dev libcmocka-dev uuid-dev libiscsi-dev
10apt-get install -y libncurses5-dev libncursesw5-dev python3 python3-pip python3-dev unzip libfuse3-dev
11pip3 install ninja
12pip3 install meson
13pip3 install pyelftools
14pip3 install ijson
15pip3 install python-magic
16pip3 install grpcio
17pip3 install grpcio-tools
18pip3 install pyyaml
19pip3 install Jinja2
20# Additional dependencies for SPDK CLI
21apt-get install -y python3-configshell-fb python3-pexpect
22
23# Additional dependencies for DPDK
24apt-get install -y nasm libnuma-dev
25# Additional dependencies for ISA-L used in compression
26apt-get install -y autoconf automake libtool help2man
27# Additional dependencies for USDT
28apt-get install -y systemtap-sdt-dev
29if [[ $INSTALL_DEV_TOOLS == "true" ]]; then
30	# Tools for developers
31	apt-get install -y git astyle lcov clang sg3-utils pciutils shellcheck \
32		abigail-tools bash-completion ruby-dev pycodestyle
33	# Additional dependencies for nvmf performance test script
34	apt-get install -y python3-paramiko
35fi
36if [[ $INSTALL_PMEM == "true" ]]; then
37	# Additional dependencies for building pmem based backends
38	apt-get install -y libpmem-dev libpmemblk-dev libpmemobj-dev
39fi
40if [[ $INSTALL_RBD == "true" ]]; then
41	# Additional dependencies for RBD bdev in NVMe over Fabrics
42	apt-get install -y librados-dev librbd-dev
43fi
44if [[ $INSTALL_RDMA == "true" ]]; then
45	# Additional dependencies for RDMA transport in NVMe over Fabrics
46	apt-get install -y libibverbs-dev librdmacm-dev
47fi
48if [[ $INSTALL_DOCS == "true" ]]; then
49	# Additional dependencies for building docs
50	apt-get install -y doxygen mscgen graphviz
51fi
52# Additional dependencies for Avahi
53if [[ $INSTALL_AVAHI == "true" ]]; then
54	# Additional dependencies for Avahi
55	apt-get install -y libavahi-client-dev
56fi
57