Troubleshooting
Problem
One of the steps required to perform the installation of Cloud Pak for Data is to install the OpenShift command-line interface, "oc" as per the following link when attempting to set up a client Workstation:
https://www.ibm.com/docs/en/cloud-paks/cp-data/4.6.x?topic=installing-setting-up-client-workstation
https://www.ibm.com/docs/en/cloud-paks/cp-data/4.6.x?topic=installing-setting-up-client-workstation
One part of installing oc on a Mac Workstation is to move the oc binary to a folder in a directory within the PATH environment variable. During this step, you may not have enough permissions for the OS to allow the move and the following error may be seen:
username@hostname oc-4.12.10-macos % cp oc /usr/local/bin
cp: /usr/local/bin/oc: Permission denied
username@hostname oc-4.12.10-macos %
Changing the user to root will allow the copy to take place:
username@hostname bin % sudo -i
Password:
hostname:~ root# pwd
/var/root
hostname:~ root# cd /usr/local/bin
hostname:bin root# cp "/Users/username/Downloads/oc-4.12.10-macos/oc" .
hostname:bin root# ls -l oc
-rwxr-xr-x@ 1 root wheel 104730320 8 Apr 13:01 oc
hostname:bin root#
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSHGYS","label":"IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m3p000000UoQtAAK","label":"Administration"}],"ARM Case Number":"","Platform":[{"code":"PF040","label":"Red Hat OpenShift"}],"Version":"4.0.0;and future releases"}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
16 July 2023
UID
ibm16982467