the error "no such file or directory" when setting your $path means that your syntax is wrong.
The shell interpreted your command to set $path in a wrong way because of that.
The correct syntax for setting environment variables depends on the shell you're using. Try looking
at the shell's man page.
For bash/sh, try something like:
or in 1 command:
This simply adds "/usr/lib/gcc" to the end of $PATH.