Rbenv: Error exec $SHELL on elementaryos

Created on 28 Aug 2017  ·  3Comments  ·  Source: rbenv/rbenv

screenshot from 2017-08-28 14-24-29

i am elementary user, i want to install rbenv with this tutorial https://gorails.com/setup/ubuntu/16.04
but if i run exec $SHELL, error like this:
suganda@toshiba:~$ exec $SHELL
bash: /home/suganda/.bashrc: line 171: syntax error near unexpected token PATH="$HOME/.rbenv/bin:$PATH"' bash: /home/suganda/.bashrc: line 171:esacexport PATH="$HOME/.rbenv/bin:$PATH"'

how to fix this?

Most helpful comment

Add a newline between asac and export.
I think your .bashrc did not have final newline before echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc.

All 3 comments

Add a newline between asac and export.
I think your .bashrc did not have final newline before echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc.

ok, thank you. works!

This can be closed.

Was this page helpful?
0 / 5 - 0 ratings