Fixing the oc and Red Hat OpenShift install “not downloaded” error on macOS
I recently decided to use my macOS machine to create a Red Hat OpenShift cluster. After downloading the
openshift-install command-line tool and running it, however, I received the following error:
(Yes, I know the above error is related to the
oc command, but it also threw the error and, after I fixed the
openshift-install command, I was unable to “unfix” it.)
Everything you need to grow your career.
With your free Red Hat Developer program membership, unlock our library of cheat sheets and ebooks on next-generation application development.SIGN UP
This error is thrown by the macOS “Gatekeeper” subsystem, which checks to make sure executables are notarized by the builder. Any app that is downloaded from the App Store must first be notarized. Apps are that not installed via the App Store may still be notarized by the developer — that’s a choice they make. However, un-notarized applications will throw this error, and you are stopped.
The answer is quite simple: Find the application in Finder, right-click on it, select Open, and it will display a dialog box like this:
Simply click the “Open” button, and the app will be regarded as safe. You can now execute it from the command line with no problems.