How to resolve Terminal error/messaging somehow related to rbenv

165 Views Asked by At

I've been receiving the following error/messaging right after I start up Terminal. This started happening after multiple attempts to install sass (which is another issue on its own).

I've since uninstalled rbenv. I'm running osx el capitan.

-bash: ‘export: command not found
-bash: /Users/JO/.bash_profile: line 5: syntax error near unexpected token `('
-bash: /Users/JO/.bash_profile: line 5: `‘eval “export PATH="/Users/JO/.rbenv/shims:${PATH}" export RBENV_SHELL=bash source '/usr/local/Cellar/rbenv/1.1.2/libexec/../completions/rbenv.bash' command rbenv rehash 2>/dev/null rbenv() { local command command="${1:-}" if [ "$#" -gt 0 ]; then shift fi case "$command" in rehash|shell) eval "$(rbenv "sh-$command" "$@")";; *) command rbenv "$command" "$@";; esac }”’'

I'm way over my head with Terminal issues. So, any help on this is much appreciated. Cheers.

1

There are 1 best solutions below

0
Paulo Felipe Souza On

It is said (Basic Github checkout, part 2) to you to copy and past one of the following options, according to your running terminal:

For Bash: echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile

For Ubuntu: echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc

For Zsh: echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc

Checking your log above, I saw you use 'eval, which you must delete, and let just "one of the options above".

Alternatively, you may run the rbenv doctor to see what you missed:

curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash

Do not forget to open a new terminal to see your changes running.