gen_unigram command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gen_unigram: command not found
or when using sudo you get the following error message
sudo: gen_unigram: command not found
Solutions to gen_unigram: command not found
How To Fix gen_unigram: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gen_unigram is provided by libpinyin-utils package.
libpinyin-utils is:
libpinyin is a set of core algorithms designed for intelligent sentence-based Chinese PinYin input methods.
This package provides the utilities for manipulating dict files.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libpinyin-utils
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libpinyin-utils.
sudo apt -y install libpinyin-utils
Or if you have aptitude installed you can use the following command.
sudo aptitude install libpinyin-utils
Summary
In this tutorial we learn how to fix gen_unigram command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.