Skip to content

Instantly share code, notes, and snippets.

@tdegrunt
Created September 20, 2021 11:53
Show Gist options
  • Save tdegrunt/e2cb727c49ae8c628e3f67f3eb09dab8 to your computer and use it in GitHub Desktop.
Save tdegrunt/e2cb727c49ae8c628e3f67f3eb09dab8 to your computer and use it in GitHub Desktop.
ubuntu 20.04 ruby / rails bootstrap
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev
sudo apt-get update
sudo apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev postgresql-13 postgresql-13-postgis-3 libpq-dev libtool-bin cmake pkg-config
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
sh -c 'echo "export PATH=~/.rbenv/bin:\$PATH" >> ~/.bash_profile'
sh -c 'echo "eval \"\$(rbenv init - bash)\"" >> ~/.bash_profile'
rbenv install 2.7.4
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment