How can I achieve phase unwrapping with snaphu in Ubuntu?

I’ve uesd snaphu for phase unwrapping in VMware and Mint successful.But some unwrappings couldn’t be accpmplished,such as a region of BAM. The PC has a cpu i5 4590 and 16G memory .I don’t think it can’t accomplish it.So I want to have a try with Ubuntu for the phase unwrapping job.But some error happened.How can I achieve phase unwrapping with snaphu in Ubuntu? Some steps? Thnks