[Python-Dev] Re: compiling errors, SSL

2022年7月20日 12:44:01 -0700

On Tue, Jul 19, 2022 at 2:17 PM Kevin T via Python-Dev <
[email protected]> wrote:
> I have built this on systems at work, that are populated by CAD guys who
> have developed a good set of libraries to maintain in a linux
> distribution. Went without a hitch.
>
> I am trying to build this at home with an opensuse distribution. I am not
> trying to do any modifications to python, now or in the future. I am
> trying to build this as another software installation wants 3.7 or better
> and opensuse provided 3.6.
>
> I am stuck with a early compile error after the make command.
>
> I have downloaded, built and installed the openSSl.
> I have changed the ld.so.conf to include the newly built ssl in the list
> and re-ran ldconfig. Even though I have added the newly built ssl to the
> conf file a dump of the ldconfig does not show the locally built ssl libs.
> Does this process depend on LD_LIBRARY_PATH ? Defining LD_LIBRARY_PATH
> made no discernable difference.
>
> kevin@localhost:~/Sources/Python-3.10.5> sudo ldconfig -p | grep ssl
> [sudo] password for root:
> libssl3.so (libc6,x86-64) => /usr/lib64/libssl3.so
> libssl.so.1.1 (libc6,x86-64) => /usr/lib64/libssl.so.1.1
> libevent_openssl-2.1.so.6 (libc6,x86-64) =>
> /usr/lib64/libevent_openssl-2.1.so.6
>
> The newly built ssl dir:
> kevin@localhost:~/Sources/Python-3.10.5> ls -lrt /usr/local/ssl
> total 40
> drwxr-xr-x 1 root root 14 Jul 18 15:17 include
> drwxr-xr-x 1 root root 190 Jul 18 15:17 lib64
> drwxr-xr-x 1 root root 30 Jul 18 15:17 bin
> drwxr-xr-x 1 root root 0 Jul 18 15:17 private
> drwxr-xr-x 1 root root 0 Jul 18 15:17 certs
> drwxr-xr-x 1 root root 36 Jul 18 15:17 misc
> -rw-r--r-- 1 root root 12292 Jul 18 15:17 openssl.cnf.dist
> -rw-r--r-- 1 root root 12292 Jul 18 15:17 openssl.cnf
> -rw-r--r-- 1 root root 412 Jul 18 15:17 ct_log_list.cnf.dist
> -rw-r--r-- 1 root root 412 Jul 18 15:17 ct_log_list.cnf
> drwxr-xr-x 1 root root 12 Jul 18 15:18 share
>
>
> I see in the web pages the known prerequisites and installed them.
> kevin@localhost:/usr/local/ssl/lib64> sudo zypper install python310-idle
> python310-devel python310-curses python310-dbm python310-tk
>
> kevin@localhost:/usr/local/ssl/lib64> sudo zypper install build-essential
> gdb lcov pkg-config libbz2-dev libffi-dev libgdbm-dev
> libgdbm-compat-dev liblzma-dev libncur
> ses5-dev libreadline6-dev libsqlite3-dev libssl-dev lzma lzma-dev
> tk-dev uuid-dev zlib1g-dev
>
> I see in the web pages this snip:
>
> Python build finished successfully!
> The necessary bits to build these optional modules were not found:
> _bz2 _dbm _gdbm
> _lzma _sqlite3 _ssl
> _tkinter _uuid readline
> zlib
> To find the necessary bits, look in setup.py in detect_modules()
> for the module's name.
>
> What is one supposed to do with detect_modules? Add something or remove
> something ?
>
It's up to you. It's more of a hint to let you know how Python searches for
what it needs to build those modules. Also know that setup.py is going away
in Python 3.12: https://github.com/python/cpython/pull/94474 .
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/NEZNAJA42G7A6ZTQFD4O33CUBFTUBWQ5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to