更新时间:2023-12-02 16:44:58
我采取了以下步骤,在运行El Capitan(10.11.4)的Mac上成功摆脱了rbenv.根据我的经验,Rbenv是Failed to build gem native extension errors
的主要原因.
I took these steps to successfully get rid of rbenv on my mac running El Capitan (10.11.4). Rbenv is a major cause of Failed to build gem native extension errors
from my experience.
brew remove rbenv
.rbenv
目录:rm -rf ~/.rbenv
.bash_profile
文件并删除其中包含rbenv的所有行:vi ~/.bash_profile
.bashrc
文件并删除其中包含rbenv的所有行:vi ~/.bashrc
brew remove rbenv
.rbenv
directory: rm -rf ~/.rbenv
.bash_profile
file and delete any lines with rbenv in them: vi ~/.bash_profile
.bashrc
file and delete any lines with rbenv in them: vi ~/.bashrc
最后,重新加载.bash_profile
和.bashrc
:
. 〜/.bash_profile&& . 〜/.bashrc
. ~/.bash_profile && . ~/.bashrc