Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I accidentally deleted the /System/Library/Perl/ folder. Now I am not be able to run any of my projects.

How can I reinstall Perl on OS X?

share|improve this question

migrated from stackoverflow.com Mar 20 '12 at 0:25

This question came from our site for professional and enthusiast programmers.

How did you "accidentally" do that ? Anyway, just update your system software and you will get the OS X Perl installation back again. –  Paul R Mar 19 '12 at 21:59
@yrosen is there a way like "apt-get install perl" on Mac? I don't have the installation disk. –  Terminal User Mar 19 '12 at 22:05
@PaulR How to update my system? I don't have the installation disk –  Terminal User Mar 19 '12 at 22:06
See @yrosen's link to a similar question on SuperUser above - you can use Pacifist to extract the relevant packages. –  Paul R Mar 19 '12 at 22:08
What version of OS X do you have? –  slhck Mar 20 '12 at 9:30

Your Answer


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