trietool-0.2 command not found

In this troubleshooting guide we learn how to fix trietool-0.2 command not found error message

Introduction

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

trietool-0.2: command not found

or when using sudo you get the following error message

sudo: trietool-0.2: command not found

Solutions to trietool-0.2: command not found

How To Fix trietool-0.2: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu trietool-0.2 is provided by libdatrie1-bin package.

libdatrie1-bin is:

Trie is a kind of digital search tree, an efficient indexing method in which search time is independent of database size. It only takes O(m) search time, where m is the length of the search string. Comparably as efficient as hashing, trie also provides flexibility on incremental matching and key spelling manipulation. This makes it ideal for lexical analyzers, as well as spelling dictionaries.

This library is an implementation of double-array structure for representing trie, as proposed by Junichi Aoe. The details of the implementation can be found at https://linux.thai.net/~thep/datrie/datrie.html

This package contains the program files which is used with the library, including trietool, the trie manipulation tool.

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

sudo apt-get -y install libdatrie1-bin

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

You can also use apt command to install libdatrie1-bin.

sudo apt -y install libdatrie1-bin

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

sudo aptitude install libdatrie1-bin

Summary

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