DM-VancouverWA
DM-VancouverWA

Reputation: 21

Installing Ruby 'rbenv: shell integration not enabled...' - have homebrew installed on macOS Mojave 10.14.6

I'm no developer or even remotely close, sorry please excuse my ignorance. I'm just trying to do a few things to improve my knowledge and communication with the Dev team. I'm trying to install Ruby for use with our system. I installed the most recent version of Homebrew and installed Ruby 2.5.1 (I think).

In the terminal I see:

rbenv shell 2.5.1
rbenv: shell integration not enabled. Run `rbenv init' for instructions.
rbenv init
# Load rbenv automatically by appending
# the following to ~/.bash_profile:
eval "$(rbenv init -)"

I have tried several things mentioned on various web boards, no luck.

I open the .bash_profile and eval "$(rbenv init -)" is the 1st entry.

Is this a problem? If yes, can I proceed?

Upvotes: 2

Views: 5624

Answers (2)

petestmart
petestmart

Reputation: 402

I am new and had this same issue.

I ended up running echo 'eval $rebenv init -' >> ~/.bashrc

Then source ~/.bashrc

Upvotes: 0

Martin Sarosi
Martin Sarosi

Reputation: 82

What you will find is that on some systems .bash_profile just does not get used or executed.

Add eval "$(rbenv init -)" to you .bashrc and then run

source .bashrc

Upvotes: 2

Related Questions