Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I accidently deleted the default Perl library on Mac OSX Mountain Lion. I know it was a stupid mistake, but how do I fix it? Whenever I try to use Perl I get

dyld: Library not loaded: /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/libperl.dylib 
Referenced from: /usr/bin/perl5.12
Reason: image not found
Trace/BPT trap: 5

What do I do so I can use Perl again?

share|improve this question
4  
Just restore from your backup (e.g. Time Machine). – Paul R Jan 2 at 10:34
do you get any output when you do a perl -v ? – Tudor Constantin Jan 2 at 10:35
I can't restore from a backup because I dont know when it happened. When I do perl -v I get that output. @TudorConstantin – Ulmer Jan 2 at 10:39
2  
Nuclear option: backup your data, reinstall osx, start using perlbrew and try not to touch system perl ever again – nickisfat Jan 2 at 12:24

migrated from stackoverflow.com Jan 2 at 16:39

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.