To install goal
, follow Install a Node - Algorand Developer Portal
If you’re on Windows, see How to connect ASA with purestake API? - #9 by fabrice
Note that you can compile TEAL using the API instead of goal
too: Using the SDKs - Algorand Developer Portal (search “compile”).