Last active
July 11, 2019 07:19
-
-
Save hobbes3/3c30c58f582d4ded7651024ba2e71d62 to your computer and use it in GitHub Desktop.
amazon linux 2 python pyenv node nodejs install yum
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
# Running as root | |
### PYENV | |
yum install -y git gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel zlib libffi-devel | |
# Switch to the user that will use pyenv | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile | |
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile | |
. ~/.bash_profile | |
### NODE | |
curl -sL https://rpm.nodesource.com/setup_11.x | bash - | |
yum install -y nodejs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment