如何使用ZSH上的Mac M1上的RBENV垫片正确设置路径

发布于 2025-01-26 19:29:40 字数 797 浏览 1 评论 0原文

我很难设置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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不必在意 2025-02-02 19:29:40

使它起作用:我需要运行echo'eval“ $(rbenv init-)”'>> 〜/.zshrc

Got it working: I need to run echo 'eval "$(rbenv init -)"' >> ~/.zshrc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文