Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save questionlp/8d2b89e34136b349df83c617d0313bf9 to your computer and use it in GitHub Desktop.
Save questionlp/8d2b89e34136b349df83c617d0313bf9 to your computer and use it in GitHub Desktop.
Installing Requirements for Building CPython and Ruby on Fedora

Installing Requirements for Building CPython on Fedora

Tested with Fedora 39 through 41.

First we install some common development tools like gcc and make, Fedora provides a group of packages for that call Development Tools

Fedora 39 and 40

sudo dnf groupinstall "Development Tools" 

Fedora 41

sudo dnf group install development-tools

To build Python we need some additional packages

sudo dnf install zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel libffi-devel findutils tk-devel libyaml-devel gcc-g++ cmake scdoc

Minimal Install

sudo dnf install gcc wget tar make zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel libffi-devel findutils tk-devel libyaml-devel gcc-g++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment