简体   繁体   中英

How to set path correctly from RBENV shims on Mac M1 with 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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM