Skip to content

Instantly share code, notes, and snippets.

@funwarioisii
Last active November 14, 2020 05:34
Show Gist options
  • Save funwarioisii/9757f15500e156ac715e667180ba1789 to your computer and use it in GitHub Desktop.
Save funwarioisii/9757f15500e156ac715e667180ba1789 to your computer and use it in GitHub Desktop.
Ubuntu 20.04にrbenvを入れる

GCEでUbuntu 20.04をイメージに選択し、まっさらな状態でrbenvを入れるときにOpenSSL周りのdefault gem 周りで詰まっていたので、回避策のメモ

sudo apt update
sudo apt install build-essential libssl-dev zlib1g-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
~/.rbenv/bin/rbenv init
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment