sysbench command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
sysbench: command not found
or when using sudo you get the following error message
sudo: sysbench: command not found
Solutions to sysbench: command not found
How To Fix sysbench: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu sysbench is provided by sysbench package.
sysbench is:
SysBench is a modular, scriptable and multi-threaded benchmark tool based on LuaJIT. It is most frequently used for database benchmarks, but can also be used to create arbitrarily complex workloads that do not involve a database server.
The idea of this benchmark suite is to quickly get an impression about system performance without setting up complex database benchmarks or even without installing a database at all.
Current features allow one to test the following system parameters:
- file I/O performance
- scheduler performance
- memory allocation and transfer speed
- POSIX threads implementation performance
- database server performance (OLTP benchmark)
Primarily written for MySQL server benchmarking, SysBench will be further extended to support multiple database backends, distributed benchmarks and third-party plug-in modules.
To fix this problem, we can install more using the command below.
sudo apt-get -y install sysbench
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install sysbench.
sudo apt -y install sysbench
Or if you have aptitude installed you can use the following command.
sudo aptitude install sysbench
Summary
In this tutorial we learn how to fix sysbench command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.