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?
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.
Most helpful comment
Add a newline between
asac
andexport
.I think your
.bashrc
did not have final newline beforeecho 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
.