Last active
July 15, 2021 08:02
-
-
Save bmmalone/f3bb86d248ebc8970f9b6868bd85516b to your computer and use it in GitHub Desktop.
Install all of the packages necessary to build all of the optional modules for python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
sudo apt-get --assume-yes install build-essential | |
sudo apt-get --assume-yes install gfortran | |
sudo apt-get --assume-yes install zlib1g-dev | |
sudo apt-get --assume-yes install libreadline-dev | |
sudo apt-get --assume-yes install libncursesw5-dev | |
sudo apt-get --assume-yes install lib32ncurses5-dev | |
sudo apt-get --assume-yes install libgdbm-dev | |
sudo apt-get --assume-yes install libsqlite3-dev | |
sudo apt-get --assume-yes install libbz2-dev | |
sudo apt-get --assume-yes install liblzma-dev | |
sudo apt-get --assume-yes install libssl-dev | |
sudo apt-get --assume-yes install tk-dev | |
sudo apt-get --assume-yes install libc6-dev | |
sudo apt-get --assume-yes install libffi-dev |
After installing dependencies, the configure command for python is similar to the following:
CXX="/home/bmalone/gcc/install/gcc-10.1.0/bin/g++" ./configure --prefix=$HOME/local --enable-shared
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is specifically for Ubuntu 16.04. The package manager and names differ on other OSs, but the actual packages should be the same.