2020-05-18 13:14:34 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
VERSION_ID_NUM=$(sed 's/\.//g' <<< $VERSION_ID)
|
|
|
|
# Includes Ubuntu, Debian
|
|
|
|
# Minimal install
|
2020-11-26 04:40:15 +00:00
|
|
|
apt-get install -y gcc g++ make cmake libcunit1-dev libaio-dev libssl-dev libjson-c-dev libcmocka-dev \
|
2020-05-18 13:14:34 +00:00
|
|
|
uuid-dev libiscsi-dev python libncurses5-dev libncursesw5-dev python3-pip
|
|
|
|
pip3 install ninja
|
2021-02-15 09:02:50 +00:00
|
|
|
if ! pip3 install meson; then
|
|
|
|
# After recent updates pip3 on ubuntu1604 provides meson version which requires python >= 3.6.
|
|
|
|
# Unfortunately, the latest available version of python3 there is 3.5.2. In case pip3 fails to
|
|
|
|
# install meson fallback to packaged version of it ubuntu1604's repos may provide.
|
|
|
|
apt-get install -y meson
|
|
|
|
fi
|
2021-01-26 14:45:32 +00:00
|
|
|
pip3 install pyelftools
|
2021-06-10 10:35:05 +00:00
|
|
|
pip3 install ijson
|
2021-09-02 10:09:39 +00:00
|
|
|
pip3 install python-magic
|
2020-05-18 13:14:34 +00:00
|
|
|
# Additional dependencies for SPDK CLI - not available on older Ubuntus
|
|
|
|
apt-get install -y python3-configshell-fb python3-pexpect || echo \
|
|
|
|
"Note: Some SPDK CLI dependencies could not be installed."
|
|
|
|
|
|
|
|
# Additional dependencies for DPDK
|
|
|
|
if [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID_NUM -lt 1900 ]]; then
|
2020-08-20 12:07:46 +00:00
|
|
|
echo "Ubuntu $VERSION_ID needs NASM version 2.14 for DPDK but is not in the mainline repository."
|
2020-05-18 13:14:34 +00:00
|
|
|
echo "You can install it manually"
|
|
|
|
else
|
|
|
|
apt-get install -y nasm
|
|
|
|
fi
|
|
|
|
apt-get install -y libnuma-dev
|
|
|
|
# Additional dependencies for ISA-L used in compression
|
|
|
|
apt-get install -y autoconf automake libtool help2man
|
usdt: add User Space DTrace support to SPDK
For now, we will keep this disabled by default,
enable with --with-usdt option to the configure
script. Long-term we will want to enable this by
default, and only disable via configure.
Modules can include spdk_internal/usdt.h and add
probes such as:
SPDK_DTRACE_PROBE2(probe_name, ptr, val);
When USDT is enabled, these will translate to
DTRACE_PROBE2(spdk, probe_name, ptr, val). When
USDT is disabled, these will translate to nothing.
Later patches will add some probe points to the
nvmf target, some bpftrace scripts, and instructions
for how to successfully capture data with these
probe points and scripts.
Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Id168e2c800fa5522815a175026386319014cfdaa
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7173
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2021-03-31 22:33:20 +00:00
|
|
|
# Additional dependencies for USDT
|
|
|
|
apt-get install -y systemtap-sdt-dev
|
2020-05-18 13:14:34 +00:00
|
|
|
if [[ $INSTALL_DEV_TOOLS == "true" ]]; then
|
|
|
|
# Tools for developers
|
2021-08-10 12:00:42 +00:00
|
|
|
apt-get install -y git astyle pep8 lcov clang sg3-utils pciutils shellcheck \
|
|
|
|
abigail-tools bash-completion ruby-dev
|
2020-05-18 13:14:34 +00:00
|
|
|
# Additional python style checker not available on ubuntu 16.04 or earlier.
|
|
|
|
apt-get install -y pycodestyle || true
|
2021-11-25 01:40:59 +00:00
|
|
|
# Additional dependencies for nvmf performance test script
|
2020-05-18 13:14:34 +00:00
|
|
|
apt-get install -y python3-paramiko
|
|
|
|
fi
|
|
|
|
if [[ $INSTALL_PMEM == "true" ]]; then
|
|
|
|
# Additional dependencies for building pmem based backends
|
|
|
|
if [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID_NUM -gt 1800 ]]; then
|
|
|
|
apt-get install -y libpmem-dev
|
2020-10-21 23:59:44 +00:00
|
|
|
apt-get install -y libpmemblk-dev
|
2021-08-03 15:47:36 +00:00
|
|
|
apt-get install -y libpmemobj-dev
|
2020-05-18 13:14:34 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [[ $INSTALL_FUSE == "true" ]]; then
|
|
|
|
# Additional dependencies for FUSE and NVMe-CUSE
|
|
|
|
if [[ $NAME == "Ubuntu" ]] && ((VERSION_ID_NUM > 1400 && VERSION_ID_NUM < 1900)); then
|
|
|
|
echo "Ubuntu $VERSION_ID does not have libfuse3-dev in mainline repository."
|
|
|
|
echo "You can install it manually"
|
|
|
|
else
|
|
|
|
apt-get install -y libfuse3-dev
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [[ $INSTALL_RDMA == "true" ]]; then
|
|
|
|
# Additional dependencies for RDMA transport in NVMe over Fabrics
|
|
|
|
apt-get install -y libibverbs-dev librdmacm-dev
|
|
|
|
fi
|
|
|
|
if [[ $INSTALL_DOCS == "true" ]]; then
|
|
|
|
# Additional dependencies for building docs
|
|
|
|
apt-get install -y doxygen mscgen graphviz
|
|
|
|
fi
|