Kaushal Shriyan
2021-Nov-09 17:30 UTC
[CentOS] Install OpenSSL 1.1.1 on CentOS Linux release 7.9.2009 (Core).
On Tue, Nov 9, 2021 at 9:26 PM Steve Meier <email at steve-meier.de> wrote:> Hello Kaushal, > > the EPEL repository has OpenSSL 1.1 packages available: > > # yum install epel-release > # yum install openssl11 openssl11-libs openssl11-devel > > If you want to compile software with OpenSSL 1.1 instead of 1.0 > you may have to set the proper path or environment variables > such as LDFLAGS. > > Hope this helps. > > Kind regards, > Steve > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centosHi Steve, I have installed openssl11 package. I still face the same issue. # cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) # whereis openssl openssl: /usr/bin/openssl /usr/lib64/openssl /usr/include/openssl /usr/share/man/man1/openssl.1ssl.gz # whereis openssl11 openssl11: /usr/bin/openssl11 /usr/lib64/openssl11 /usr/include/openssl11 /usr/share/man/man1/openssl11.1.gz # # rpm -qa | grep epel epel-release-7-14.noarch # rpm -qa | grep openssl openssl11-1.1.1g-3.el7.x86_64 openssl-libs-1.0.2k-22.el7_9.x86_64 openssl-devel-1.0.2k-22.el7_9.x86_64 openssl11-libs-1.1.1g-3.el7.x86_64 openssl11-devel-1.1.1g-3.el7.x86_64 openssl-1.0.2k-22.el7_9.x86_64 # #cd Python-3.10.0 #*./configure LDFLAGS="-L/usr/lib64/openssl11"* #make altinstall # pip3.10 install mysql-connector WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysql-connector/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysql-connector/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysql-connector/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysql-connector/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/mysql-connector/ Could not fetch URL https://pypi.org/simple/mysql-connector/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/mysql-connector/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement mysql-connector (from versions: none) ERROR: No matching distribution found for mysql-connector WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available. You should consider upgrading via the '/usr/local/bin/python3.10 -m pip install --upgrade pip' command. # /usr/local/bin/python3.10 -m pip install --upgrade pip WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Requirement already satisfied: pip in /usr/local/lib/python3.10/site-packages (21.2.3) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/ Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available. You should consider upgrading via the '/usr/local/bin/python3.10 -m pip install --upgrade pip' command. # Thanks in advance and I look forward to hearing from you. Best Regards, Kaushal
Anand Buddhdev
2021-Nov-09 17:55 UTC
[CentOS] Install OpenSSL 1.1.1 on CentOS Linux release 7.9.2009 (Core).
On 09/11/2021 18:30, Kaushal Shriyan wrote: Kaushal,> #cd Python-3.10.0 > #*./configure LDFLAGS="-L/usr/lib64/openssl11"*You really are making no effort to understand how to compile packages on Linux. Steve told you that you might need to use LDFLAGS, but it is not the only option you have to set when calling configure. You also need to tell configure where the header files are. Instead of examining the output of "configure --help" or using google, you're just asking to be spoon-fed all the solutions. Try to help yourself by doing some google searching and reading. Anand
Steve Meier
2021-Nov-09 21:29 UTC
[CentOS] Install OpenSSL 1.1.1 on CentOS Linux release 7.9.2009 (Core).
Hi Kaushal, Am 2021-11-09 18:30, schrieb Kaushal Shriyan:> # > #cd Python-3.10.0 > #*./configure LDFLAGS="-L/usr/lib64/openssl11"* > #make altinstall > # pip3.10 install mysql-connector > WARNING: pip is configured with locations that require TLS/SSL, however > the > ssl module in Python is not available.compiling Python with a separate OpenSSL version seems a bit more difficult then it really should be. I have tried some approaches but ran into different errors. The only workable solution I found was to build OpenSSL 1.1 from scratch: # wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz # tar xzf openssl-1.1.1l.tar.gz # cd openssl-1.1.1l # ./config --prefix=/opt/openssl && make && make install And then have Python explicitly use that: # cd Python-3.10.0 # ./configure --with-openssl=/opt/openssl Afterwards, python3.10 loads the ssl module fine and pip works: # python3.10 -c "import ssl; print (ssl.OPENSSL_VERSION)" OpenSSL 1.1.1g FIPS 21 Apr 2020 pip3.10 install mysql-connector Collecting mysql-connector Downloading mysql-connector-2.2.9.tar.gz (11.9 MB) |????????????????????????????????| 11.9 MB 21.4 MB/s Using legacy 'setup.py install' for mysql-connector, since package 'wheel' is not installed. Installing collected packages: mysql-connector Running setup.py install for mysql-connector ... done Successfully installed mysql-connector-2.2.9 Kind regards, Steve
Gordon Messmer
2021-Nov-10 02:17 UTC
[CentOS] Install OpenSSL 1.1.1 on CentOS Linux release 7.9.2009 (Core).
On 11/9/21 09:30, Kaushal Shriyan wrote:> #*./configure LDFLAGS="-L/usr/lib64/openssl11"*I believe that at a minimum, you would need: ./configure LDFLAGS="-L/usr/lib64/openssl11" CFLAGS="-I/usr/include/openssl11"