spctl: command not found
$ type spctl
spctl is /usr/sbin/spctl


So make sure to add /usr/sbin (and /sbin) to your PATH.

Usually this is done automatically in /etc/profile which takes all the paths listed in /etc/paths. As has been pointed out in the comments, you override this by setting the PATH to LD_LIBRARY_PATH in line 2 of your .bash_profile. If you fix this, you won't need line 3 (nor probably line 4) any longer.