From 5e42dc6b9ef2e78213157ef6bc4fdba6f0ca755d Mon Sep 17 00:00:00 2001 From: Guilherme Aquino Lima Barroso Date: Tue, 15 Oct 2024 08:20:22 -0300 Subject: [PATCH] NIS optional module dependency NIS optional module build seems to fail if libnsl is missing. Installing libnsl-dev on Ubuntu/Debian or libnsl2-devel on Fedora based distros fixes the dependency issue. --- getting-started/setup-building.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 8c55bc625a..d4298f3a98 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -638,7 +638,7 @@ some of CPython's modules (for example, ``zlib``). gcc gcc-c++ gdb lzma glibc-devel libstdc++-devel openssl-devel \ readline-devel zlib-devel libffi-devel bzip2-devel xz-devel \ sqlite sqlite-devel sqlite-libs libuuid-devel gdbm-libs perf \ - expat expat-devel mpdecimal python3-pip + expat expat-devel mpdecimal python3-pip libnsl2-devel On **Debian**, **Ubuntu**, and other ``apt``-based systems, try to get the @@ -674,7 +674,7 @@ some of CPython's modules (for example, ``zlib``). $ sudo apt-get install build-essential gdb lcov pkg-config \ libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \ libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \ - lzma lzma-dev tk-dev uuid-dev zlib1g-dev libmpdec-dev + lzma lzma-dev tk-dev uuid-dev zlib1g-dev libmpdec-dev libnsl-dev Note that Debian 12 and Ubuntu 24.04 do not have the ``libmpdec-dev`` package. You can safely remove it from the install list above and the Python build will use a bundled version.