Back to Setup

It means `rvm` is not on your computer, that's what we want!

_partials/cn/rbenv.md

latest716 B
Original Source

rbenv

让我们安装rbenv,一个帮助我们安装和管理ruby环境的软件。

首先,我们需要清理你可能已经安装过的Ruby:

bash
rvm implode && sudo rm -rf ~/.rvm
# If you got "zsh: command not found: rvm", carry on.
# It means `rvm` is not on your computer, that's what we want!
rm -rf ~/.rbenv

然后在终端里运行:

bash
sudo apt install -y build-essential tklib zlib1g-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev libreadline-dev libyaml-dev
bash
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
bash
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
exec zsh