Terminal problem: "-bash: $: command not found"
$  represents the standard shell prompt and is usually used to show that the commands need to be entered in Terminal. So you only need to enter the part starting with export.