Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install the EB CLI on Linux and macOS (ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?))

Following the link https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html?icmpid=docs_elasticbeanstalk_console I am trying to install the EB CLI on MAC. From the page, I have successfully done upto point 1 of Install the EB CLI on Linux and macOS

But when I run the command from point 2 which is ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer then I am getting the below messages/errors

` ============================================== I. Installing Python
==============================================

*************************************************************
1. Determining whether pyenv is already installed and in PATH
*************************************************************
    - pyenv was not found in PATH.

*********************************************************
2. Determining whether pyenv should be cloned from GitHub
*********************************************************
    - pyenv git repository already cloned to /Users/cispl-reserve/.pyenv-repository. Won't attempt to clone again.

*******************************************
3. Temporarily export necessary pyenv paths
*******************************************

****************************************************************************
4. Checking whether Python can be downloaded (through curl, wget, or aria2c)
****************************************************************************

************************************************************
5. Installing Python 3.7.2. This step may take a few minutes
************************************************************
Downloading openssl-1.0.2k.tar.gz...
-> https://pyenv.github.io/pythons/6b3977c61f2aedf0f96367dcfb5c6e578cf37e7b8d913b4ecb6643c3cb88d8c0
Installing openssl-1.0.2k...
Installed openssl-1.0.2k to /Users/cispl-reserve/.pyenv/versions/3.7.2

Downloading readline-6.3.tar.gz...
-> https://pyenv.github.io/pythons/56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
Installing readline-6.3...
Installed readline-6.3 to /Users/cispl-reserve/.pyenv/versions/3.7.2

Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems


BUILD FAILED (OS X 10.12.1 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/hq/znb1htl568j9rxcgqpgtkg5w0000gp/T/python-build.20190705142457.64163
Results logged to /var/folders/hq/znb1htl568j9rxcgqpgtkg5w0000gp/T/python-build.20190705142457.64163.log

Last 10 log lines:
            install|*) ensurepip="" ;; \
        esac; \
        ./python.exe -E -m ensurepip \
            $ensurepip --root=/ ; \
    fi
Looking in links: /var/folders/hq/znb1htl568j9rxcgqpgtkg5w0000gp/T/tmpobl4rhc0
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-18.1 setuptools-40.6.2
Exiting due to failure

==============================================
II. Creating self-contained EBCLI installation
==============================================
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: line 51: /Users/cispl-reserve/.pyenv/versions/3.7.2/bin/python: No such file or directory
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: line 28: echo_with_indentation: command not found

`

like image 278
Santanu Biswas Avatar asked Jul 05 '19 09:07

Santanu Biswas


1 Answers

Had the same problem, answer is in 4.1 section on repository.

4.1. Can I skip the Python installation?

Yes. If you already have Python installed on your system, after step 2.1., run the following.

On Bash and Zsh:

python aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py
like image 160
robothanoglu Avatar answered Oct 24 '22 09:10

robothanoglu