FreeBSD#

FreeBSD (14)#

Install the required toolchain and libraries by running the package installation script provided with the xNVMe repository, as shown below. Ensure that you have sufficient system privileges when doing so (e.g., run as root or with sudo):

sudo ./xnvme/toolbox/pkgs/freebsd-14.sh

Or, run the commands contained within the script manually:

# Upgrade existing packages to avoid library version mismatches
if ( "`printenv XNVME_PKGS_NO_UPGRADE`" != "1" ) then
  pkg upgrade -qy
endif

# Install packages via the system package-manager (pkg)
pkg install -qy \
 autoconf \
 automake \
 bash \
 cunit \
 devel/py-Jinja2 \
 devel/py-pipx \
 devel/py-pyelftools \
 devel/py-tabulate \
 findutils \
 git \
 gmake \
 isa-l \
 libtool \
 libuuid \
 meson \
 nasm \
 ncurses \
 openssl \
 patch \
 pkgconf \
 python3 \
 wget

Then go ahead and configure, build and install using meson:

# configure xNVMe and build meson subprojects(SPDK)
meson setup builddir

# build xNVMe
meson compile -C builddir

# install xNVMe
meson install -C builddir

# uninstall xNVMe
# cd builddir && meson --internal uninstall

Note

Interfaces; libaio, liburing, and libvfn are not supported on FreeBSD.

FreeBSD (15)#

Install the required toolchain and libraries by running the package installation script provided with the xNVMe repository, as shown below. Ensure that you have sufficient system privileges when doing so (e.g., run as root or with sudo):

sudo ./xnvme/toolbox/pkgs/freebsd-15.sh

Or, run the commands contained within the script manually:

# Upgrade existing packages to avoid library version mismatches
if ( "`printenv XNVME_PKGS_NO_UPGRADE`" != "1" ) then
  pkg upgrade -qy
endif

# Install packages via the system package-manager (pkg)
pkg install -qy \
 autoconf \
 automake \
 bash \
 cunit \
 devel/py-Jinja2 \
 devel/py-pipx \
 devel/py-pyelftools \
 devel/py-tabulate \
 findutils \
 git \
 gmake \
 isa-l \
 libtool \
 libuuid \
 meson \
 nasm \
 ncurses \
 openssl \
 patch \
 pkgconf \
 python3 \
 wget

Then go ahead and configure, build and install using meson:

# configure xNVMe and build meson subprojects(SPDK)
meson setup builddir

# build xNVMe
meson compile -C builddir

# install xNVMe
meson install -C builddir

# uninstall xNVMe
# cd builddir && meson --internal uninstall

Note

Interfaces; libaio, liburing, and libvfn are not supported on FreeBSD.