How to specify SM libraries for MOOG
MOOG will search for the libraries through a .sm file. To solve this error, download an example sm file like this one, and specify where your libraries are in this file. Then use mv .sm ~/.sm to place this in your home folder, then MOOG should be able to create plots with SM.