g2p-sk command not found

In this troubleshooting guide we learn how to fix g2p-sk command not found error message

Introduction

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

g2p-sk: command not found

or when using sudo you get the following error message

sudo: g2p-sk: command not found

Solutions to g2p-sk: command not found

How To Fix g2p-sk: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu g2p-sk is provided by g2p-sk package.

g2p-sk is:

g2p-sk implements rule based approach for the phonetic transcription. Each input word represented by the sequence of the graphemes is transcribed to the sequence of of the phones in the SAMPA coding.

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

sudo apt-get -y install g2p-sk

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

You can also use apt command to install g2p-sk.

sudo apt -y install g2p-sk

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

sudo aptitude install g2p-sk

Summary

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