How to reinstall Perl on OS X

0

1

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?

Terminal User

Posted 2012-03-19T21:54:17.597

Reputation:

2How did you "accidentally" do that ? Anyway, just update your system software and you will get the OS X Perl installation back again. – Paul R – 2012-03-19T21:59:38.703

@yrosen is there a way like "apt-get install perl" on Mac? I don't have the installation disk. – None – 2012-03-19T22:05:47.160

@PaulR How to update my system? I don't have the installation disk – None – 2012-03-19T22:06:12.853

1See @yrosen's link to a similar question on SuperUser above - you can use Pacifist to extract the relevant packages. – Paul R – 2012-03-19T22:08:16.597

What version of OS X do you have? – slhck – 2012-03-20T09:30:22.153

You could install perl through macports (there is a macports tag in the question). However, depending on which version you need, it may require some more work than the default 'port install', check this: http://stackoverflow.com/questions/3942520/how-do-i-upgrade-my-macports-perl-installation

– lupincho – 2012-03-20T09:42:39.237

@lupincho: you don't need to get Perl from MacPorts - it's already installed as part of OS X – Paul R – 2012-03-20T12:00:09.653

@Paul R: what I meant is that he could also install it through macports if he deleted the built-in version and doesn't have the OS install disk – lupincho – 2012-03-20T15:52:52.883

No answers