Code:
pkg-static: perl5-5.22.2_1 conflicts with perl5.22-5.22.2_1 (installs files into the same place). Problematic file: /usr/local/bin/perl5.22.2
This says to me that you have an extra Perl install with messed up version numbers, possibly from settings in
/etc/make.conf. The bad one would be
perl5.22-5.22.2_1. Note the repeated version numbers compared to the real one.
First, I would try to delete that obviously-wrong Perl. But it might be that all your other Perl packages depend on it. In that case,
portmaster(8) has a way to change the "origin" of a package, to switch a bunch of packages to depending on a new package. That is shown in the 20150914 entry in
/usr/ports/UPDATING.
I am confused regarding where the "break" in the string
perl5.22-5.22.2_1. Note the repeated version numbers compared to the real one.
separated the good from bad. Is it the "hyphen"? in other words, perl5.22 vs. 5.22.2_1 ?
Well, I've reinstalled
perl 5, version 22, subversion 2 (v5.22.2) built for i386-freebsd-thread-multi-64int yet again (as confirmed using
perl5.22.2 -v
), and the following objects are found in
/usr/local/bin:
Code:
-rwxr-xr-x 1 root wheel 44K May 18 13:39 perl5.22.2
-rwxr-xr-x 2 root wheel 44K May 18 13:39 perlbug5.22.2
-rwxr-xr-x 1 root wheel 248B May 18 13:39 perldoc5.22.2
-rwxr-xr-x 1 root wheel 11K May 18 13:39 perlivp5.22.2
-rwxr-xr-x 2 root wheel 44K May 18 13:39 perlthanks5.22.2
I confirmed that
/etc/make.conf contains the specification:
Code:
DEFAULT_VERSIONS+= perl5=5.22
Now, I'm running make build on
p5-DBI and it has once again choked complaining:
Code:
install -m 0644 /usr/ports/lang/perl5.22/work/perl-man.conf /usr/ports/lang/perl5.22/work/stage/usr/local/etc/man.d/perl5.conf
====> Compressing man pages (compress-man)
===> Installing ldconfig configuration file
===> Installing for perl5-5.22.2_1
===> Checking if perl5 already installed
===> Registering installation for perl5-5.22.2_1 as automatic
Installing perl5-5.22.2_1...
pkg-static: perl5-5.22.2_1 conflicts with perl5.22-5.22.2_1 (installs files into the same place). Problematic file: /usr/local/bin/perl5.22.2
*** Error code 70
Stop.
make[3]: stopped in /usr/ports/lang/perl5.22
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/lang/perl5.22
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/databases/p5-DBI
*** Error code 1
Stop.
make: stopped in /usr/ports/databases/p5-DBI
I simply cannot understand the diagnostic:
pkg-static: perl5-5.22.2_1 conflicts with perl5.22-5.22.2_1 (installs files into the same place). Problematic file: /usr/local/bin/perl5.22.2
. . .so if they are the same, then what is the problem?
Is there some problem with the port,
p5-DBI? Is it quibbling over the low-order suffix, "_1" and somehow looking for "5.22.2" without the "_1"?
In the first place, why is the
make build
of the
p5-DBI module apparently trying to Install perl5-5.22.2_1...
it's supposed to be the DBI module . . .not perl5-5.22.2_1.
I just need the Perl5/DBI to work. I'm an applications programmer . . .not a compiler writer. I've tried to wipe out all things Perl and start fresh with new installs . . .nothing seems to work.