[英]How to set path correctly from RBENV shims on Mac M1 with zsh
I'm having trouble setting up the rbenv paths我在设置 rbenv 路径时遇到问题
I follow the instructions as specified here: rbenv installation page我按照此处指定的说明进行操作: rbenv 安装页面
I run the command on a zsh terminal:我在 zsh 终端上运行命令:
rbenv init
The terminal gives me the instruction to run终端给我运行指令
eval "$(rbenv init - zsh)"
I then close the restart the terminal and check to see if all is configured correctly by running:然后我关闭并重新启动终端并通过运行检查所有配置是否正确:
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
and I get the following failure:我得到以下失败:
Checking for rbenv shims in PATH: not found
If I try open the fils.zshrc I find only the following path written to it如果我尝试打开 fils.zshrc,我发现只有以下路径写入其中
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
but no shims.但没有垫片。 Can I add the shims manually?我可以手动添加垫片吗? I don't know what it should look like?我不知道它应该是什么样子? Or is there any reason the command eval "$(rbenv init - zsh)"
is not working properly?或者有什么原因导致命令eval "$(rbenv init - zsh)"
无法正常工作?
Got it working: I need to run echo 'eval "$(rbenv init -)"' >> ~/.zshrc
成功了:我需要运行echo 'eval "$(rbenv init -)"' >> ~/.zshrc
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.