Search code examples
rbenv

How do I get rid of the rbenv: "command not found" error I keep getting?


I installed rbenv with homebrew on my Mac (running OS X 10.9.5) and in the instructions on the rbenv github page it says:

Afterwards you'll still need to add eval "$(rbenv init -)" to your profile as stated in the caveats. You'll only ever have to do this once.

I have no idea how to add that. Where is my profile? ...and what caveats are they talking about?

I'm totally confused but I think as soon as I can figure this out I'll be able to move forward with setting up my development environment.

If it matters, when I run echo $PATH I get:

/usr/local/heroku/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/opt/ImageMagick/bin


Solution

  • Your profile is ~/.profile. You can add eval "$(rbenv init -)" to it by typing nano ~/.profile in terminal.