-1

I am trying to install ruby on rails on my me elementary OS 0.3.2 Freya. and now i am seeing the following errors on my terminal. even if when i restart the terminal the errors shows on the first line on my terminal.

'bash: /home/smehsan/.bashrc: line 168: syntax error near unexpected token PATH="$HOME/.rbenv/bin:$PATH"' bash: /home/smehsan/.bashrc: line 168:esacexport PATH="$HOME/.rbenv/bin:$PATH"'

I hope you will help me.
Thank You

1 Answer 1

1

shouldn't esacexport be esac export ? If the words are stick together your shell won't take it as an instruction

16
  • Thank You. So should i open the .bashrc file in text editor and edit that line on code ?
    – smehsan
    May 19, 2016 at 18:33
  • Yes, it's a perfectly editable file, this script is run every time you start a shell under your user, it is the place where you commonly put your environment variables declaration, like PATH in your example, by writing export VARIABLE = /path/to/dir/or/file. Just put a space between esac and export and you're good to go :) May 19, 2016 at 18:36
  • I have make the changes esac export PATH="$HOME/.rbenv/bin:$PATH" and now it shows the following errors bash: /home/smehsan/.bashrc: line 168: syntax error near unexpected token export' bash: /home/smehsan/.bashrc: line 168: esac export PATH="$HOME/.rbenv/bin:$PATH"'
    – smehsan
    May 19, 2016 at 18:39
  • Did it do it? For some explanations, esac is the word closing the case instruction case some code esac May 19, 2016 at 18:40
  • sorry i did not understand.
    – smehsan
    May 19, 2016 at 18:42

Not the answer you're looking for? Browse other questions tagged .