0

All the instructions I can find for running CPAN on Mac OS X (eg. 1, 2 & 3) say to start by running this command in terminal:

sudo perl –MCPAN –e shell

However when I do so I get this error:

Can't open perl script "–MCPAN": No such file or directory

Why is this and how can I fix it? I'm running Lion (10.7.3) and have installed XCode 4.2.1.

1

Try this:

sudo cpan

cpan is an executable that comes installed in OS X (or installs with Xcode).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .