I have tried to run metapost with the command:
mpost myfigure.mp
I got an error which I've seen a lot of people ask about:
Sorry, I can't find the 'mpost' preload file; will try 'plain'.
I can't find the 'plain' preload file!
But for me, the solution of running:
sudo apt-get install texlive
made no difference.
How exactly is metapost run?
sudo apt update
and thenapt-cache search metapost
(the latter does not need sudo)mpost
is looking for/usr/local/texlive/2017/texmf-dist/metapost/base/mpost.mp
and/usr/local/texlive/2017/texmf-dist/metapost/base/plain.mp
but it can't find them on your system.... (or ..2018.. if you are more up to date than me)