My Oracle Support Banner

Oracle Cloud Infrastructure - Error while Installing OCI-CLI Utility in Oracle Linux 6 (Doc ID 2587531.1)

Last updated on SEPTEMBER 28, 2021

Applies to:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Linux OS - Version Oracle Linux 6.10 to Oracle Linux 8.4 [Release OL6U10 to OL8U4]
Linux x86-64

Symptoms

Error on Oracle Linux 6 instance for OCI-CLI installation :

[root@localhost ~]# bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13968 100 13968 0 0 35027 0 --:--:-- --:--:-- --:--:-- 106k

******************************************************************************
You have started the OCI CLI Installer in interactive mode. If you do not wish
to run this in interactive mode, please include the --accept-all-defaults option.
If you have the script locally and would like to know more about
input options for this script, then you can run:
./install.sh -h
If you would like to know more about input options for this script, refer to:
https://github.com/oracle/oci-cli/blob/master/scripts/install/README.rst
******************************************************************************
Downloading Oracle Cloud Infrastructure CLI install script from https://raw.githubusercontent.com/oracle/oci-cli/v2.5.15/scripts/install/install.py to /tmp/oci_cli_install_tmp_Jcim.
######################################################################## 100.0%
System version of Python must be either a Python 2 version >= 2.7.5 or a Python 3 version >= 3.5.0.
Running install script.
python3 /tmp/oci_cli_install_tmp_Jcim
Traceback (most recent call last):
File "/tmp/oci_cli_install_tmp_Jcim", line 21, in <module>
import ssl
File "/usr/local/lib/python3.6/ssl.py", line 101, in <module>
import _ssl # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'

 

Changes

 NA

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.