ibv_devices command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ibv_devices: command not found
or when using sudo you get the following error message
sudo: ibv_devices: command not found
Solutions to ibv_devices: command not found
How To Fix ibv_devices: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ibv_devices is provided by ibverbs-utils package.
ibverbs-utils is:
libibverbs is a library that allows userspace processes to use RDMA “verbs” as described in the InfiniBand Architecture Specification and the RDMA Protocol Verbs Specification. iWARP ethernet NICs support RDMA over hardware-offloaded TCP/IP, while InfiniBand is a high-throughput, low-latency networking technology. InfiniBand host channel adapters (HCAs) and iWARP NICs commonly support direct hardware access from userspace (kernel bypass), and libibverbs supports this when available.
This package contains useful libibverbs1 example programs such as ibv_devinfo, which displays information about InfiniBand devices.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ibverbs-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ibverbs-utils.
sudo apt -y install ibverbs-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install ibverbs-utils
Summary
In this tutorial we learn how to fix ibv_devices command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.