[Python] Python-3.8.2 installation from source causes undefined reference to `SSL_new' on...

Discussão em 'Python' iniciado por Stack, Março 11, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to install python3.8.2 from python source by following this link, everything works fine except ssl module.

    when i try command like below.


    ./configure --with-openssl=/usr --enable-optimizations
    ​

    config.log looks like below

    configure:17204: checking for openssl/ssl.h in /usr
    configure:17211: result: yes
    configure:17227: checking whether compiling and linking against OpenSSL works
    Trying link with OPENSSL_LDFLAGS=-L/usr/lib; OPENSSL_LIBS=-lssl -lcrypto; OPENSSL_INCLUDES=-
    I/usr/include
    configure:17249: gcc -pthread -o conftest -I/usr/include -L/usr/lib conftest.c -lssl -
    lcrypto -lcrypt -lpthread -ldl -lutil -lm >&5
    /tmp/ccnYKZ7g.o: In function `main':
    conftest.c:(.text+0xa): undefined reference to `SSL_new'
    collect2: error: ld returned 1 exit status


    and when i run


    make -j 8
    ​

    am getting error like follow

    Could not build the ssl module!
    Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with
    X509_VERIFY_PARAM_set1_host().

    Continue reading...

Compartilhe esta Página