Help with Terminal please

Joined
Jun 7, 2010
Messages
3
Reaction score
0
Points
1
Hey all, lookin for some help. I'm on a 10.6.3 MBP.

Every time I open up terminal, this shows up
Code:
Last login: Mon Jun  7 23:46:54 on ttys001
-bash: sdkfolder: No such file or directory
xxxx-xxxxxs-MacBook-Pro:~ xxxxxx$

why is that -bash line in there?

Also, I cannot run 'sudo' at all. I'm on an Admin account, and I have enabled root permissions.

Code:
xxxxx-xxxxxs-MacBook-Pro:~ xxxxx$ sudo su
-bash: sudo: command not found

Thanks in advance.
 
Joined
Feb 26, 2010
Messages
2,116
Reaction score
123
Points
63
Location
Rocky Mountain High, Colorado
Your Mac's Specs
1.8 GHz i7 MBA 11" OSX 10.8.2
You probably have an error in one of your startup scripts.

Code:
cd
grep -i sdkfolder .* 
grep -i sdkfolder *

Once you figure out where that bash error is coming from - remove the line. My guess is it is in your .bash_profile - if not - you are probably sourcing something

Code:
cd
grep -i source .* 
grep -i source *

This is probably interfering with the PATH command which means you cannot find sudo - which is actually /usr/bin/sudo

If your PATH is messed up grep is actually /opt/local/bin/grep
(I hope - this may have been installed by fink or macports)
 
OP
M
Joined
Jun 7, 2010
Messages
3
Reaction score
0
Points
1
it's not recognizing 'grep' =[ same error as 'sudo'

-bash: grep: command not found
 
Joined
Feb 26, 2010
Messages
2,116
Reaction score
123
Points
63
Location
Rocky Mountain High, Colorado
Your Mac's Specs
1.8 GHz i7 MBA 11" OSX 10.8.2
That is why I gave you full paths to everything - really you should be able to type in
Code:
/opt/local/bin/grep -i sdkfolder .*

Actually you could try this
Code:
cd
/bin/mv .bash_profile .bash_profile.bak
Then see if the error goes away.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top