Skip to content

Docs: Add troubleshooting for OpenSSL build errors#1731

Open
Vikash-Kumar-23 wants to merge 2 commits intopython:mainfrom
Vikash-Kumar-23:fix-openssl-docs
Open

Docs: Add troubleshooting for OpenSSL build errors#1731
Vikash-Kumar-23 wants to merge 2 commits intopython:mainfrom
Vikash-Kumar-23:fix-openssl-docs

Conversation

@Vikash-Kumar-23
Copy link
Copy Markdown

This PR adds documentation for the --with-openssl-rpath=auto flag to the Unix build instructions in setup-building.rst.

Technical Context
On several modern Linux distributions and WSL environments, the CPython ./configure script can fail to link the SSL module correctly, even when a compatible OpenSSL version is present. This typically results in the error: Could not build the ssl module! Python requires a OpenSSL 1.1.1 or newer.

Using the --with-openssl-rpath=auto flag ensures the build system correctly identifies the runtime search path for OpenSSL, allowing the _ssl extension to build successfully.

Related Issue
Fixes #1727

Adds the --with-openssl-rpath=auto flag to help resolve "Python requires a OpenSSL 1.1.1 or newer" errors on Linux/WSL. Fixes python#1727.
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot bot commented Feb 8, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community bot commented Feb 8, 2026

Copy link
Copy Markdown
Collaborator

@willingc willingc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Vikash-Kumar-23 for the submission.

@hugovk @encukou I would like a second pair of eyes on this recommendation as it's out of my Windows expertise. Thanks.

Comment thread getting-started/setup-building.rst Outdated
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
@willingc willingc requested review from encukou and hugovk April 16, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Mention how to configure path to OpenSSL

2 participants