@@ -661,7 +661,7 @@ on Linux, macOS and iOS.
661
661
$ sudo apt-get install build-essential gdb lcov pkg-config \
662
662
libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \
663
663
libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \
664
- lzma lzma-dev tk-dev uuid-dev zlib1g-dev
664
+ lzma lzma-dev tk-dev uuid-dev zlib1g-dev libmpdec-dev
665
665
666
666
667
667
.. tab :: macOS
@@ -692,9 +692,17 @@ on Linux, macOS and iOS.
692
692
693
693
For example, with **Homebrew **, install the dependencies::
694
694
695
- $ brew install pkg-config [email protected] xz gdbm tcl-tk
695
+ $ brew install pkg-config [email protected] xz gdbm tcl-tk mpdecimal
696
696
697
- Then, for Python 3.11 and newer, run ``configure ``::
697
+ Then, for Python 3.13 and newer, run ``configure ``::
698
+
699
+ $ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
700
+ GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
701
+ ./configure --with-pydebug \
702
+ --with-system-libmpdec \
703
+ --with-openssl="$(brew --prefix [email protected] )"
704
+
705
+ For Python 3.11 and 3.12::
698
706
699
707
$ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
700
708
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
@@ -716,9 +724,16 @@ on Linux, macOS and iOS.
716
724
717
725
Alternatively, with **MacPorts **::
718
726
719
- $ sudo port install pkgconfig openssl xz gdbm tcl tk +quartz
727
+ $ sudo port install pkgconfig openssl xz gdbm tcl tk +quartz mpdecimal
728
+
729
+ Then, for Python 3.13 and newer, run ``configure ``::
730
+
731
+ $ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
732
+ GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
733
+ ./configure --with-pydebug \
734
+ --with-system-libmpdec
720
735
721
- Then , for Python 3.11 and newer , run ``configure ``::
736
+ Or , for Python 3.11 and 3.12 , run ``configure ``::
722
737
723
738
$ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \
724
739
GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \
0 commit comments