Skip to content

Instantly share code, notes, and snippets.

@bmmalone
Last active July 15, 2021 08:02
Show Gist options
  • Save bmmalone/f3bb86d248ebc8970f9b6868bd85516b to your computer and use it in GitHub Desktop.
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
#! /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
@bmmalone
Copy link
Author

bmmalone commented May 1, 2017

This is specifically for Ubuntu 16.04. The package manager and names differ on other OSs, but the actual packages should be the same.

@bmmalone
Copy link
Author

bmmalone commented Jul 15, 2021

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