How can I recover after deleting libc++?











up vote
0
down vote

favorite












I stupidly deleted libc++ from my Mac (Mojave 10.14 on a 2015 MacBook Air). I had several versions and wanted to just use the newest... but now nothing works. The kernel panicked and for a while, it would panic/shutdown/boot/panic again without any interaction.



Now it doesn't even get to the panic screen! it just makes the startup sound over and over again -- even with the screen down or after pressing the power button repeatedly.



How can I get an OS installed again? Preferably macOS. All my important files were backed up so that's no issue. I don't have access to another computer, but I do have a flash drive with Ubuntu sitting around...or I could try to get to another computer to make an OS if necessary.



edit: I held down the power button for a while and now it is no longer trying to start over and over again.










share|improve this question




























    up vote
    0
    down vote

    favorite












    I stupidly deleted libc++ from my Mac (Mojave 10.14 on a 2015 MacBook Air). I had several versions and wanted to just use the newest... but now nothing works. The kernel panicked and for a while, it would panic/shutdown/boot/panic again without any interaction.



    Now it doesn't even get to the panic screen! it just makes the startup sound over and over again -- even with the screen down or after pressing the power button repeatedly.



    How can I get an OS installed again? Preferably macOS. All my important files were backed up so that's no issue. I don't have access to another computer, but I do have a flash drive with Ubuntu sitting around...or I could try to get to another computer to make an OS if necessary.



    edit: I held down the power button for a while and now it is no longer trying to start over and over again.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I stupidly deleted libc++ from my Mac (Mojave 10.14 on a 2015 MacBook Air). I had several versions and wanted to just use the newest... but now nothing works. The kernel panicked and for a while, it would panic/shutdown/boot/panic again without any interaction.



      Now it doesn't even get to the panic screen! it just makes the startup sound over and over again -- even with the screen down or after pressing the power button repeatedly.



      How can I get an OS installed again? Preferably macOS. All my important files were backed up so that's no issue. I don't have access to another computer, but I do have a flash drive with Ubuntu sitting around...or I could try to get to another computer to make an OS if necessary.



      edit: I held down the power button for a while and now it is no longer trying to start over and over again.










      share|improve this question















      I stupidly deleted libc++ from my Mac (Mojave 10.14 on a 2015 MacBook Air). I had several versions and wanted to just use the newest... but now nothing works. The kernel panicked and for a while, it would panic/shutdown/boot/panic again without any interaction.



      Now it doesn't even get to the panic screen! it just makes the startup sound over and over again -- even with the screen down or after pressing the power button repeatedly.



      How can I get an OS installed again? Preferably macOS. All my important files were backed up so that's no issue. I don't have access to another computer, but I do have a flash drive with Ubuntu sitting around...or I could try to get to another computer to make an OS if necessary.



      edit: I held down the power button for a while and now it is no longer trying to start over and over again.







      macos recovery






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 at 2:26









      Spiff

      76k10116158




      76k10116158










      asked Nov 22 at 0:21









      sudo rm -rf slash

      1325




      1325






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Hold down Cmd-R at boot time to boot into recovery mode.



          When you install macOS, it makes a small, usually somewhat invisible emergency/recovery boot partition on your internal drive. Holding Cmd-R at boot tells your Mac to boot from it so you can reinstall the OS.



          If that doesn't work, hold down Cmd-Opt-R at boot to enter Internet Recovery mode. You will need an Internet connection via Ethernet or Wi-Fi. If the Wi-Fi network uses security, it must be one of the flavors that only requires a password. It can't be the enterprise-grade security that requires a username & password or any certificates. Your Mac will attempt to contact Apple's recovery servers and download the necessary bootable OS image from there.



          Generally, reinstalling macOS over an existing install of the same version of macOS does a "repair install"; it should only overwrite the files that are part of the OS, and it should leave all your other files in place. But as always, if you have files you can't lose and you don't have a recent, tested backup, you should avoid doing this until you have a good backup.



          If you can borrow another Mac, you can hold down T at boot to boot into Target Disk Mode, where your Mac just acts like an external hard drive and you can connect it to another Mac via Thunderbolt (or USB or FireWire, on older machines), and get to its hard drive contents that way.






          share|improve this answer





















          • cmd-opt-r did the trick! It's up and running now. T is good to know for the future
            – sudo rm -rf slash
            Nov 22 at 4:42











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377444%2fhow-can-i-recover-after-deleting-libc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          Hold down Cmd-R at boot time to boot into recovery mode.



          When you install macOS, it makes a small, usually somewhat invisible emergency/recovery boot partition on your internal drive. Holding Cmd-R at boot tells your Mac to boot from it so you can reinstall the OS.



          If that doesn't work, hold down Cmd-Opt-R at boot to enter Internet Recovery mode. You will need an Internet connection via Ethernet or Wi-Fi. If the Wi-Fi network uses security, it must be one of the flavors that only requires a password. It can't be the enterprise-grade security that requires a username & password or any certificates. Your Mac will attempt to contact Apple's recovery servers and download the necessary bootable OS image from there.



          Generally, reinstalling macOS over an existing install of the same version of macOS does a "repair install"; it should only overwrite the files that are part of the OS, and it should leave all your other files in place. But as always, if you have files you can't lose and you don't have a recent, tested backup, you should avoid doing this until you have a good backup.



          If you can borrow another Mac, you can hold down T at boot to boot into Target Disk Mode, where your Mac just acts like an external hard drive and you can connect it to another Mac via Thunderbolt (or USB or FireWire, on older machines), and get to its hard drive contents that way.






          share|improve this answer





















          • cmd-opt-r did the trick! It's up and running now. T is good to know for the future
            – sudo rm -rf slash
            Nov 22 at 4:42















          up vote
          2
          down vote



          accepted










          Hold down Cmd-R at boot time to boot into recovery mode.



          When you install macOS, it makes a small, usually somewhat invisible emergency/recovery boot partition on your internal drive. Holding Cmd-R at boot tells your Mac to boot from it so you can reinstall the OS.



          If that doesn't work, hold down Cmd-Opt-R at boot to enter Internet Recovery mode. You will need an Internet connection via Ethernet or Wi-Fi. If the Wi-Fi network uses security, it must be one of the flavors that only requires a password. It can't be the enterprise-grade security that requires a username & password or any certificates. Your Mac will attempt to contact Apple's recovery servers and download the necessary bootable OS image from there.



          Generally, reinstalling macOS over an existing install of the same version of macOS does a "repair install"; it should only overwrite the files that are part of the OS, and it should leave all your other files in place. But as always, if you have files you can't lose and you don't have a recent, tested backup, you should avoid doing this until you have a good backup.



          If you can borrow another Mac, you can hold down T at boot to boot into Target Disk Mode, where your Mac just acts like an external hard drive and you can connect it to another Mac via Thunderbolt (or USB or FireWire, on older machines), and get to its hard drive contents that way.






          share|improve this answer





















          • cmd-opt-r did the trick! It's up and running now. T is good to know for the future
            – sudo rm -rf slash
            Nov 22 at 4:42













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          Hold down Cmd-R at boot time to boot into recovery mode.



          When you install macOS, it makes a small, usually somewhat invisible emergency/recovery boot partition on your internal drive. Holding Cmd-R at boot tells your Mac to boot from it so you can reinstall the OS.



          If that doesn't work, hold down Cmd-Opt-R at boot to enter Internet Recovery mode. You will need an Internet connection via Ethernet or Wi-Fi. If the Wi-Fi network uses security, it must be one of the flavors that only requires a password. It can't be the enterprise-grade security that requires a username & password or any certificates. Your Mac will attempt to contact Apple's recovery servers and download the necessary bootable OS image from there.



          Generally, reinstalling macOS over an existing install of the same version of macOS does a "repair install"; it should only overwrite the files that are part of the OS, and it should leave all your other files in place. But as always, if you have files you can't lose and you don't have a recent, tested backup, you should avoid doing this until you have a good backup.



          If you can borrow another Mac, you can hold down T at boot to boot into Target Disk Mode, where your Mac just acts like an external hard drive and you can connect it to another Mac via Thunderbolt (or USB or FireWire, on older machines), and get to its hard drive contents that way.






          share|improve this answer












          Hold down Cmd-R at boot time to boot into recovery mode.



          When you install macOS, it makes a small, usually somewhat invisible emergency/recovery boot partition on your internal drive. Holding Cmd-R at boot tells your Mac to boot from it so you can reinstall the OS.



          If that doesn't work, hold down Cmd-Opt-R at boot to enter Internet Recovery mode. You will need an Internet connection via Ethernet or Wi-Fi. If the Wi-Fi network uses security, it must be one of the flavors that only requires a password. It can't be the enterprise-grade security that requires a username & password or any certificates. Your Mac will attempt to contact Apple's recovery servers and download the necessary bootable OS image from there.



          Generally, reinstalling macOS over an existing install of the same version of macOS does a "repair install"; it should only overwrite the files that are part of the OS, and it should leave all your other files in place. But as always, if you have files you can't lose and you don't have a recent, tested backup, you should avoid doing this until you have a good backup.



          If you can borrow another Mac, you can hold down T at boot to boot into Target Disk Mode, where your Mac just acts like an external hard drive and you can connect it to another Mac via Thunderbolt (or USB or FireWire, on older machines), and get to its hard drive contents that way.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 22 at 2:35









          Spiff

          76k10116158




          76k10116158












          • cmd-opt-r did the trick! It's up and running now. T is good to know for the future
            – sudo rm -rf slash
            Nov 22 at 4:42


















          • cmd-opt-r did the trick! It's up and running now. T is good to know for the future
            – sudo rm -rf slash
            Nov 22 at 4:42
















          cmd-opt-r did the trick! It's up and running now. T is good to know for the future
          – sudo rm -rf slash
          Nov 22 at 4:42




          cmd-opt-r did the trick! It's up and running now. T is good to know for the future
          – sudo rm -rf slash
          Nov 22 at 4:42


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377444%2fhow-can-i-recover-after-deleting-libc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido