0

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

closed as off-topic by Pilot6, muru, Videonauth, Kevin Bowen, Eric Carvalho Jun 4 '16 at 12:20

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Pilot6, muru, Videonauth, Kevin Bowen, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.

1

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

  • Thank You. So should i open the .bashrc file in text editor and edit that line on code ? – smehsan May 19 '16 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 :) – ChickenMcNuggets May 19 '16 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 '16 at 18:39
  • Did it do it? For some explanations, esac is the word closing the case instruction case some code esac – ChickenMcNuggets May 19 '16 at 18:40
  • sorry i did not understand. – smehsan May 19 '16 at 18:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.