port install doesn't create symlink

Ryan Schmidt ryandesign at macports.org
Sat Nov 5 20:42:36 PDT 2011

On Nov 5, 2011, at 17:43, Jim Anderson wrote:

> That worked, but now when I enter "cpan", a binary in the perl5.14 dist, I get
> jim-andersons-macbook-pro:~ jander$ cpan
> -bash: /usr/local/bin/cpan: /usr/local/bin/perl: bad interpreter: No such file or directory
> Why is it looking on /usr/local and not in /opt/local?

You apparently have the file /usr/local/bin/cpan on your system, and you have /usr/local/bin in your PATH. Please remove /usr/local/bin/cpan and anything else in /usr/local; files there will often interfere with MacPorts.

More information about the macports-users mailing list