Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change default perl installation to the one installed by macports

Tags:

perl

macports

I installed perl5.14 via macports.

By typing

which perl

I get

/usr/bin/perl

How do I change the perl to point the macports one.

My .profile is:

    # MacPorts Installer addition on 2012-02-02_at_14:42:32: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
like image 997
Karan Avatar asked Dec 27 '22 06:12

Karan


2 Answers

Maybe the perl port isn't active? try:

$ sudo port activate perl5
like image 139
Ibmurai Avatar answered Dec 29 '22 19:12

Ibmurai


sudo port install perl5 +perl5_14
like image 33
ryandesign Avatar answered Dec 29 '22 20:12

ryandesign