Last active
January 3, 2024 12:30
-
-
Save pacharanero/94a9a8a4171539327ad07e9ea2c81d45 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash -x | |
set -e | |
# COMMAND | |
# curl -Lks https://gist.github.com/pacharanero/94a9a8a4171539327ad07e9ea2c81d45/raw | /bin/bash | |
# installs pyenv and build dependencies for Debian based distros | |
rm -rf $HOME/.pyenv | |
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash | |
sudo apt update | |
sudo DEBIAN_FRONTEND=noninteractive apt install -y build-essential libssl-dev zlib1g-dev \ | |
libbz2-dev libreadline-dev libsqlite3-dev curl \ | |
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev | |
echo '\nexport PYENV_ROOT="$HOME/.pyenv"\nexport PATH="$PYENV_ROOT/bin:$PATH"\neval"$(pyenv init --path)"' >> $HOME/.profile | |
# installs rbenv and build dependencies for Debian based distros | |
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash | |
sudo apt -y install autoconf patch build-essential rustc libssl-dev libyaml-dev \ | |
libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 \ | |
libgdbm-dev libdb-dev uuid-dev | |
# installs docker | |
curl -fsSL get.docker.com | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment