How to install port versions of perl modules for perl5.14 in freebsd 9.0

Posted by jm666 on Super User See other posts from Super User or by jm666
Published on 2012-06-02T21:17:55Z Indexed on 2012/06/02 22:44 UTC
Read the original article Hit count: 423

Filed under:
|
|
|

Trying to use perl5.14 on Freebsd with port based p5-modules.

uname -impr
9.0-RELEASE amd64 amd64 ALTQ

delete all installed ports, start with a clean system

# pkg_delete -a
# rm -rf /var/db/pkg /var/db/ports /usr/local

installing portmaster, checking /etc/make.conf (here is only WITHOUT_X11=YES). Now installing perl.

# portmaster -g --force-config lang/perl5.14
# perl -v
This is perl 5, version 14, subversion 2 (v5.14.2) built for amd64-freebsd-multi

Now perl modules from the ports,

# portmaster -g devel/p5-Moose  #install Moose and its deps

check with pkg_info and got zilion errors like:

# pkg_info
pkg_info: corrupted record (pkgdep line without argument), ignoring

dpendecy check with portmaster - showing dependecies on perl5.12

#portmaster --check-depends
Checking p5-Class-C3-0.24
    ===>>> lang/perl5.12 is listed as a dependency
    ===>>> but there is no installed version
    ===>>> Delete this dependency data? y/n [n] 

when tried

# perl-after-upgrade -f
got:
Fixed 0 packages (0 files moved, 0 files modified)

In short:

  • i got installed Moose into /usr/local/lib/perl5/site_perl/5.14.2/
  • but all its dependencies into /usr/local/lib/perl5/site_perl/5.12.4/

Yes, it is possible fix this with:

# portmaster p5-

what reinstall all installed p5-packages once again, now correctly for the 5.14 but it is terrible installing them twice...

Questions:

  • What is the correct way install p5-MODULES from ports with installed perl5.14 in an clean system?
  • How to fix wrong dependency data on perl5.12 without the need install and reinstall them again
  • What i'm doing wrong?

Ps: know perlbrew and/or Local::lib - but for this case - want port versions.

© Super User or respective owner

Related posts about freebsd

Related posts about perl