I was trying to install CLI package from github but I messed up during the process and ended up getting this error. It is persistent and won't go away. Terminal wont accept any commands like mkdir, ls, clear screen. To fix this error I ended up deleting the info.plist file for the terminal ( I am not a very smart person) which somehow bricked terminal and it won't start anymore. I decided to download iTerm, and it still launches with the same old error. What am I supposed to do. Please help me .
1 Answer
Well the error you're getting sounds like you've tried changing the $PATH variable somewhere. Possible candidates (not all of them need to exist) are
- /etc/profile
- /etc/bashrc
- ~/.bash_profile
- ~/.bash_login
- ~/.bashrc
- ~/.profile
Find all lines starting with export
that contain the path you've posted above in those files and prefix them with a #
to disable them. Restart iTerm and the error should be gone.
Regarding the deleted .plist, do you happen to have a TimeMachine (or other) backup that you might recover it from? Before re-installing everything you could also test creating a new user and copying the file from this account to yours.
-
Well it actually might not have a PATH= in front of it and that is the problem. Commented Dec 25, 2014 at 11:16
-
@Asmus where do I find the lines starting with "export PATH" it has been 3 days since I've been with the error Commented Dec 25, 2014 at 13:10
-
-
@nashmaniac for a quick fix open iTerm, and enter
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
this should give you the default tools back. Test withecho $PATH
.– AsmusCommented Dec 25, 2014 at 14:11 -
1@nashmaniac I've updated my answer to give you an idea where to look.– AsmusCommented Dec 25, 2014 at 14:20