pherkin command not found

In this troubleshooting guide we learn how to fix pherkin command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pherkin: command not found

or when using sudo you get the following error message

sudo: pherkin: command not found

Solutions to pherkin: command not found

How To Fix pherkin: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pherkin is provided by libtest-bdd-cucumber-perl package.

libtest-bdd-cucumber-perl is:

Behavioral testing tools like Cucumber let software development teams describe in plain text how software should behave. The text is written in a business-readable domain-specific language and serves as documentation, automated tests and development-aid - all rolled into one format.

Test::BDD::Cucumber aims to be a sane and complete Cucumber implementation in Perl.

Test::BDD::Cucumber is not feature-complete yet. However, in almost all cases, where the behaviour of this module is different from the real Cucumber, the plan is to move it to be more similar to that.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libtest-bdd-cucumber-perl

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libtest-bdd-cucumber-perl.

sudo apt -y install libtest-bdd-cucumber-perl

Or if you have aptitude installed you can use the following command.

sudo aptitude install libtest-bdd-cucumber-perl

Summary

In this tutorial we learn how to fix pherkin command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.