[issue44319] setup openssl faild on linux (ubuntu 20.04)

2021-10-21 Thread Devin Prescott


Devin Prescott  added the comment:

I'm having the same issue trying to build python3.10 on CentOS 7.9

==
==
$ lsb_release -a
Distributor ID: CentOS
Description:CentOS Linux release 7.9.2009 (Core)
Release:7.9.2009
Codename:   Core

$ scl --list
devtoolset-8

$ gcc --version
gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ uname -r | cut -d"-" -f1
5.4.72
==
==

I've built and installed openssl 3.0.0 in the default location.

==
==

$ which openssl
/usr/bin/openssl

$ whereis openssl
openssl: /usr/bin/openssl /usr/lib64/openssl /usr/include/openssl 
/usr/share/man/man1/openssl.1ossl

==
==

Attempting the fix listed in https://bugs.python.org/issue45371 I still am met 
with the same issue:

$ ./configure --enable-optimizations --with-lto --with-system-ffi 
--with-computed-gotos --enable-loadable-sqlite-extensions 
--with-openssl=/usr/lib64/openssl --with-openssl-rpath=auto

$ make -j40

...

Could not build the ssl module!
Python requires a OpenSSL 1.1.1 or newer

==
==

Should I be using a path other than /usr/lib64/openssl?

--
nosy: +DevinCharles, alex, christian.heimes, dstufft, janssen
type:  -> compile error
versions: +Python 3.10

___
Python tracker 
<https://bugs.python.org/issue44319>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44319] setup openssl failed on linux

2021-10-25 Thread Devin Prescott


Devin Prescott  added the comment:

This docker file will get you the same environment:

## Build Command ##
#docker build --rm -t centos7/builder .
## Run Command ##
#docker run --rm -it centos7/builder
# INSIDE DOCKER:
#make -j $(nproc)

FROM centos:7

###
##   Update & Get Dependencies   ##
###

RUN yum -y update

RUN yum -y install deltarpm epel-release
RUN yum -y groups install Development\ Tools
RUN yum -y install libtemplate-perl wget make gcc perl-core pcre-devel 
zlib-devel
RUN yum -y install libffi-devel bzip2-devel pkgconfig
RUN yum install -y openssl11 openssl11-devel openssl11-libs openssl11-static
RUN mkdir -p /home/builder
WORKDIR /home/builder

###
##Enable SCL Dev Toolset8##
###
RUN yum -y install centos-release-scl
RUN yum-config-manager --enable rhel-server-rhscl-7-rpms
RUN yum -y install devtoolset-8
RUN scl enable devtoolset-8 bash

###
##Prep Build for Python-3##
###
RUN wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
RUN tar xzf Python-3.10.0.tgz
WORKDIR Python-3.10.0

RUN /home/builder/Python-3.10.0/configure --enable-optimizations --with-lto 
--with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions 
--with-openssl=/usr/lib64/openssl11 --with-openssl-rpath=auto

--
title: setup openssl faild on linux (ubuntu 20.04) -> setup openssl failed on 
linux

___
Python tracker 
<https://bugs.python.org/issue44319>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com