Does Anyone have Precompiled Bash?
I accidentally deleted most of /usr/local/bin by using rm -r the deleted files include bash. I have been looking out for solutions, but all of them require bash. Can someone send their copy of Bash (someone who's also using MacOS Mojave) to me? Any version can do. You don't need to send me the bash profile.
Thanks in advance! (P.S. it isn't in /usr/bin) |
Quote:
What version of what distribution are you running? What hardware are you running on? |
I think OP is using a Mac and nuked /usr/local/bin. Pretty sure the bash binary on a Mac will not run in Linux but I could be wrong...
|
Quote:
|
Quote:
The only Apple I ever owned was a Newton. Still sits on my bookshelf to remind me never to waste more money on i-anything ... |
Not at all - Macs don't work that way - I believe a reinstall is in order. They are essentially just like windows in that the OS is only available from the install medium. They also aren't Linux based, but some sort of proprietary BSD so pretty sure a bash binary from Linux won't work.
|
If you're on a Mac you need to re-install the OS. That's how you get it back. It's easy and you won't lose your personal files and preferences.
You really DON'T want someone to just send you the file. That's a big invitation for someone sending you a malicious binary that you will likely never know is a trojan. Just fix it with a re-install. Afterwards, you might want to consider installing Homebrew (https://brew.sh), which is a full Linux-style package manger for the Mac and get a more recent version of BASH, as well as access to all kinds of other packages for the command line. |
MacOS is a version of FreeBSD with the Aqua desktop, if memory serves me right, so it would be a FreeBSD bash that would be required, but as has been said, just re install, we all learned by making mistakes. ;)
|
You should start making regular Time Machine backups as well. If you had them you could just restore the whole directory from there.
|
Exactly - timemachine works very well, as far as a complete OS and data recovery tool anyway.
|
So how do I reinstall?
BTW I do have homebrew. I really like everything it offers like cask(though command-not-found didn't work) |
Quote:
|
Quote:
|
Quote:
|
Darwin is based on BSD but that's neither here nor there as that's only a base, with a LOT integrated into it. Like ingredients of a cake, not discrete OS and graphics layers. You can't just "grab a package". Time machine restore of the directory would be the thing, if he had the backups.
As for how to re-install, Google is your friend! How to reinstall macOS from macOS Recovery |
All times are GMT -5. The time now is 12:19 PM. |