Working with ubuntu

Hi, I am currently working with ubuntu, whenever I try to run a gmt command, it always says GMTTRY.sh: line 4: gmt: command not found. What do I do to fix this?