xasy command not found

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

Introduction

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

xasy: command not found

or when using sudo you get the following error message

sudo: xasy: command not found

Solutions to xasy: command not found

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

In Ubuntu xasy is provided by asymptote-x11 package.

asymptote-x11 is:

Asymptote is a powerful script-based vector graphics language for technical drawings, inspired by MetaPost but with an improved C++-like syntax. Asymptote provides for figures the same high-quality level of typesetting that LaTeX does for scientific text.

In the event that adjustments to the final figure are required, the preliminary Graphical User Interface (GUI) xasy included with Asymptote allows you to move graphical objects and draw new ones. The modified figure can then be saved as a normal Asymptote file.

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

sudo apt-get -y install asymptote-x11

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

You can also use apt command to install asymptote-x11.

sudo apt -y install asymptote-x11

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

sudo aptitude install asymptote-x11

Summary

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