specrb command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
specrb: command not found
or when using sudo you get the following error message
sudo: specrb: command not found
Solutions to specrb: command not found
How To Fix specrb: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu specrb is provided by ruby-test-spec package.
ruby-test-spec is:
The test/spec library layers an RSpec-inspired interface on top of Test::Unit, so you can mix test-driven and behavior-driven development.
test/spec is a clean-room implementation that maps most kinds of Test::Unit assertions to a `should’-like syntax.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-test-spec
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-test-spec.
sudo apt -y install ruby-test-spec
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-test-spec
Summary
In this tutorial we learn how to fix specrb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.