perl

Ryan Schmidt ryandesign at macports.org
Thu Feb 28 04:15:05 PST 2013


On Feb 28, 2013, at 06:06, Masha Vecherkovskaya wrote:

> It's not that I WANT to use CPAN. It was advised in Circos installation instructions. That is why I asked if I have a chance to mess up everything.

Ah ok. Yes, you can mess things up by using MacPorts CPAN directly. If you use MacPorts CPAN to install modules, they will be installed into the MacPorts prefix, which might confuse MacPorts. MacPorts likes to be in control of the files that get installed into its prefix. So use MacPorts to install ports for the needed CPAN modules instead.


> For example, I don't understand which perl is used when I instmodsh, I guess the one which came with OS? This perl sits in /opt/local/bin/perl?

I'm not a perl expert and I had not heard of "instmodsh" before but it seems to be a part of perl.

Apple's perl will be in prefix /usr (i.e. /usr/bin/perl) and that's where their instmodsh program is too (/usr/bin/instmodsh).

MacPorts is largely inside /opt/local. We offer multiple versions of perl. The default is perl5.12, which installs to /opt/local/bin/perl5.12. It has a corresponding instmodsh at /opt/local/bin/instmodsh-5.12.


> On the other hand I have a bunch of .pm files that are in opt/local/lib/perl/5.12/5.12.4/different folders
> 
> So, does it make a difference where they are? 

My understanding is that if you want perl to be able to find modules, yes they need to be in one of a number of standard places. The list of standard places can vary by perl installation. The MacPorts CPAN module ports (p5-...) are of course set up to install their files to the right places for use with MacPorts perl.


> Whatever the MacPorts prefix is at this stage I'm not the one to mess around with it.

Ok.


> As I understand, I need to search for all required modules in MacPorts, and install them through MacPorts?

That's what I would suggest.



More information about the macports-users mailing list