Skip to content

Building nvme‐cli

ksingh-ospo edited this page Jan 10, 2025 · 3 revisions

Minimal build

It's possible to build nvme-cli without using meson (Python based). muon is an implementation of the meson build system in c99 with minimal dependencies. The build.sh script provides the necessary steps for a minimal build:

  • make
  • gcc
  • git
$ build.sh -m muon

For some older distributions additional packages need to be installed, see sections below

Fedora

# dnf install json-c-devel openssl-devel keyutils-libs-devel dbus-devel python3-devel

CentOS 8

$ dnf config-manager --set-enabled powertools
$ dnf search glibc
$ dnf provides */libc.a
$ dnf install glibc-static

CentOS 7

$ yum install glibc-static

Ubuntu 24.04

Dependencies (if using meson)

$ sudo apt install gcc make git
$ sudo pip3 install meson 
$ sudo apt-get install python3 python3-pip python3-setuptools python3-wheel ninja-build

$ sudo apt install cmake swig libjson-c-dev libssl-dev libkeyutils-dev pkg-config