image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old December 12th, 2008, 03:49 PM
Registered User
 
Join Date: Dec 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jstorimer is on a distinguished road
Can't open terminal

I think I may have done a stupid thing.

I wanted to be able to start a program from the terminal so I just what I thought was the binary into the /bin/bash folder of my OS X install.

Now when I try to open my terminal I get this:
Code:
dyld: Library not loaded: @loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle
  Referenced from: /bin/bash
  Reason: image not found
/bin/bash ; exit;

[Process completed]
The program in question is gitx if that makes a difference.
Now I can't open a terminal, or /bin/bash or bin/tcsh or any of those and I can't seem to get at the /bin/bash folder (if that is even a folder!)
Any suggestions?

Thanks,
Jesse
Reply With Quote
  #2  
Old December 12th, 2008, 04:16 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,602
Thanks: 7
Thanked 370 Times in 352 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
/bin/bash isn't a directory. It's a file -- more specifically, the bash shell.

/bin is a directory.

bash is a file in that directory.

If you copied something over the bash file in the /bin directory, then that's why your terminal doesn't work anymore. Unless you removed the whole /bin directory. You'd have to tell us what's there and what's not.

Do this: from the Finder, from the "Go" menu, select "Go to Folder" and type "/bin" at the folder prompt. Post a screenshot or list what you find in the resulting Finder window, or, in the case of an error message when trying to go there, post the text of the error message verbatim.
__________________
Mac mini 2.0GHz 10.6.1 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.1 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #3  
Old December 12th, 2008, 04:25 PM
Registered User
 
Join Date: Dec 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jstorimer is on a distinguished road
Thanks for the quick reply.

I attached a screenshot.
Attached Images
File Type: png bin.png (52.0 KB, 5 views)
Reply With Quote
  #4  
Old December 12th, 2008, 04:29 PM
Registered User
 
Join Date: Dec 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jstorimer is on a distinguished road
Interestingly enough. I am able to run single commands by clicking Shell => Run Command from the Terminal menu.

If I
Code:
cat /bin/bash
it looks like there is the usual garbage text but there is also some random plain text mixed in that mentions gitx, the program I was attempting to copy.

Could it be a simple case of replacing my /bin/bash file with a fresh one? And where is the best place to get this?
Reply With Quote
  #5  
Old December 12th, 2008, 04:37 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,602
Thanks: 7
Thanked 370 Times in 352 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
You can use a program called "Pacifist" to extract a number of different things from the install packages located on your Mac OS X Install CD/DVD.

I would think that the bash executable would be located in the "BSD Subsystem" (or similarly named) install package.

And yeah, it looks like you've borked your bash executable.
__________________
Mac mini 2.0GHz 10.6.1 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.1 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
  #6  
Old December 12th, 2008, 04:54 PM
Registered User
 
Join Date: Dec 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jstorimer is on a distinguished road
Awesome! It worked.
Thank you for your help and quick replies.
Reply With Quote
  #7  
Old December 12th, 2008, 05:13 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,602
Thanks: 7
Thanked 370 Times in 352 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Glad to hear it's sorted for you!
__________________
Mac mini 2.0GHz 10.6.1 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.1 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
Reply

Bookmarks

Tags
bash, gitx, terminal

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.