mml2musicxml command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mml2musicxml: command not found
or when using sudo you get the following error message
sudo: mml2musicxml: command not found
Solutions to mml2musicxml: command not found
How To Fix mml2musicxml: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mml2musicxml is provided by mmllib-tools package.
mmllib-tools is:
MMLlib is a pure Python implementation of functionality related to the Music Macro Language as implemented by Microsoft® GW-BASIC® and compatibles, which is its most common form, also implemented by the PC speaker driver in Linux and BSD, with a number of extensions and changes.
This package contains command-line tools for handling MML. These currently are:
mml2musicxml - convert MML to MusicXML (cf. musescore) mmllint - check various aspects of MML files for correctness
To fix this problem, we can install more using the command below.
sudo apt-get -y install mmllib-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mmllib-tools.
sudo apt -y install mmllib-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install mmllib-tools
Summary
In this tutorial we learn how to fix mml2musicxml command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.