Open the settings app then security and at the bottom of the window are three options. Select the one that allows you I open third party applications from sources other than the mac AppStore.
If the options are greyed out click the padlock icon in the bottom left and enter your system password (the same one you used to install the apps)