如何使用ZSH上的Mac M1上的RBENV垫片正确设置路径
我很难设置RBENV路径,
请按照此处指定的指示进行操作: rbenv安装页面
我在ZSH终端上运行命令:
rbenv init
终端给我运行的指令
eval "$(rbenv init - zsh)"
,然后关闭重新启动终端,然后检查是否通过运行:正确配置了所有内容:
curl -fssl https://github.com/rbenv/rbenv-installer/raw/main/main/bin/rbenv-doctor | bash
,我会遇到以下故障:
Checking for rbenv shims in PATH: not found
如果我尝试打开fils .zshrc,我只会找到以下路径,
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
但没有垫片。我可以手动添加垫片吗?我不知道它应该是什么样的?还是有任何原因命令eval eval“ $(rbenv init -zsh)”
无法正常工作?
I'm having trouble setting up the rbenv paths
I follow the instructions as specified here: rbenv installation page
I run the command on a zsh terminal:
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
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使它起作用:我需要运行
echo'eval“ $(rbenv init-)”'>> 〜/.zshrc
Got it working: I need to run
echo 'eval "$(rbenv init -)"' >> ~/.zshrc