liblinear-train command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
liblinear-train: command not found
or when using sudo you get the following error message
sudo: liblinear-train: command not found
Solutions to liblinear-train: command not found
How To Fix liblinear-train: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu liblinear-train is provided by liblinear-tools package.
liblinear-tools is:
LIBLINEAR is a library for learning linear classifiers for large scale applications. It supports Support Vector Machines (SVM) with L2 and L1 loss, logistic regression, multi class classification and also Linear Programming Machines (L1-regularized SVMs). Its computational complexity scales linearly with the number of training examples making it one of the fastest SVM solvers around. It also provides Python bindings.
This package contains the standalone applications.
To fix this problem, we can install more using the command below.
sudo apt-get -y install liblinear-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install liblinear-tools.
sudo apt -y install liblinear-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install liblinear-tools
Summary
In this tutorial we learn how to fix liblinear-train command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.