xslate command not found

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

Introduction

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

xslate: command not found

or when using sudo you get the following error message

sudo: xslate: command not found

Solutions to xslate: command not found

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

In Ubuntu xslate is provided by libtext-xslate-perl package.

libtext-xslate-perl is:

Text::Xslate is a template engine, tuned for persistent applications, safe as an HTML generator, and with rich features.

There are a lot of template engines in CPAN, for example Template-Toolkit, Text::MicroTemplate, HTML::Template, and so on, but all of them have some weak points: a full-featured template engine may be slow, while a fast template engine may be too simple to use. This is why Text::Xslate is developed, which is to be the best template engine for web applications.

The concept of Text::Xslate is strongly influenced by Text::MicroTemplate and Template-Toolkit 2, but the central philosophy of Text::Xslate is different from them. That is, the philosophy is one of sandboxing; that the template logic should not have no access outside the template beyond your permission.

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

sudo apt-get -y install libtext-xslate-perl

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

You can also use apt command to install libtext-xslate-perl.

sudo apt -y install libtext-xslate-perl

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

sudo aptitude install libtext-xslate-perl

Summary

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