Rbenv post-installation issue

Hi!

After following the rbenv installation instructions, I now see the following whenever I open a new console window:

# Load rbenv automatically by appending
# the following to ~/.bash_profile:

eval "$(rbenv init -)"

-bash: eval: line 2: syntax error near unexpected token `)'
-bash: eval: line 2: ` -)'
# Load rbenv automatically by appending
# the following to ~/.bash_profile:

eval "$(rbenv init -)"

-bash: eval: line 2: syntax error near unexpected token `)'
-bash: eval: line 2: ` -)'

Is this something I need to address before continuing the alpha course? A bit wary of proceeding until I know.

Thanks!

Andrew

Run the command cat ~/.bashrc and paste the output here. Make sure to put the text between these: ``` so the formatting doesn’t get messed up. Like this:

```
Paste plain text here
```

Note those are graves not single quotes. They’re on the same key as the ~.

Edit: Also post the output of this command: cat ~/.bash_profile

Hey, thanks for the pointers. I found a couple of your previous posts and used them to clean up both .bashrc and .bash_profile. Running cat commands for both, I now see…

For cat ~/.bashrc:

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

…and for cat ~/.bash_profile:

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
source ~/.bashrc

This seems to have done the trick. Look alright to you?

Much appreciated,
A

That should work perfectly fine, but it is a bit redundant. You can remove these lines from your .bash_profile

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

and just leave them in your .bashrc

Ah, yes, great point. Thanks for the help!