Ratna I think you installed it yourself manually, since it's not installed by default.
AlexN Has anybody gotten Ghostscript to work with MoodleBox?
To install Ghostscript, log into the CLI of the MoodleBox, then type in
sudo apt-get update
sudo apt-get install ghostscript -y
You can then test your Ghostcript path: