Building Audacity 2.4.2 on Debian 10 (with cmake 3.18)

Audacity 2.4.2 requires cmake version 3.15 or later.
At time of writing, the Debian 10 repository version of cmake is 3.13.4-1, which is too old, so the first task is to install a more recent version of cmake.

  1. Uninstall any version of cmake currently installed:
sudo apt purge cmake
  1. Download cmake-3.18.1-Linux-x86_64.sh from https://cmake.org/download/
  2. Copy cmake-3.18.1-Linux-x86_64.sh to /usr/local
sudo cp cmake-3.18.1-Linux-x86_64.sh /usr/local
  1. Navigate to /usr/local and set the executable permission for cmake-3.18.1-Linux-x86_64.sh
cd /usr/local
sudo chmod +x cmake-3.18.1-Linux-x86_64.sh
  1. Run the installation script:
sudo sh cmake-3.18.1-Linux-x86_64.sh
  1. Follow the on-screen instructions. Note that:
  2. You must respond “Y” when asked if you accept the license agreement
  3. Respond “n” when prompted:
By default the CMake will be installed in:
  "/usr/local/cmake-3.18.1-Linux-x86_64"
Do you want to include the subdirectory cmake-3.18.1-Linux-x86_64?
Saying no will install in: "/usr/local" [Yn]:
  1. Check the cmake version
cmake --version

Once cmake 3.18 is installed, follow the Ubuntu 20.04 instructions to install Audacity: https://forum.audacityteam.org/t/building-audacity-2-4-2-on-ubuntu-20-04/57719/1