Recovery from p5-io-compress-zlib conflicts with p5-io-compress? was Re: How to install Perl modules

David Corking lists at dcorking.com
Fri Sep 25 06:45:01 PDT 2009


I selfupdate'd macports and then tried a
sudo port upgrade outdated

This produced a conflict between the above packages which I attempted
to resolve with three forced uninstalls.  I attempted to follow the
suggestions at http://trac.macports.org/ticket/21167 ,  a similar
conflict, but I think I have been a bit heavy-handed.  On trying to
re-install the perl libraries, I get

g$ sudo port install p5-io-compress
--->  Computing dependencies for p5-io-compress
Error: Target org.macports.activate returned: Registry error:
p5-io-compress 2.021_3 not registered as installed.
Error: Status 1 encountered during processing.

Any suggestions as to how I could fix the registry and proceed with
the upgrades?

Below, I pasted a lengthy edited transcript of the circular
dependencies that occurred in the middle of the upgrade, and my
attempts to resolve them, in case it sheds extra light.

Best, David

==================================================

inner-farne:~ dcorking$ sudo port upgrade p5-io-compress-base
inner-farne:~ dcorking$ sudo port upgrade p5-io-compress
inner-farne:~ dcorking$ sudo port activate p5-io-compress
--->  Activating p5-io-compress
Error: port activate failed: Image error:
/opt/local/lib/perl5/vendor_perl/5.8.9/File/GlobMapper.pm is being
used by the active p5-io-compress-base port.  Please deactivate this
port first, or use 'port -f activate p5-io-compress' to force the
activation.
inner-farne:~ dcorking$ sudo port deactivate p5-io-compress-base
--->  Deactivating p5-io-compress-base
inner-farne:~ dcorking$ sudo port activate p5-io-compress
--->  Activating p5-io-compress
Error: port activate failed: Image error:
/opt/local/lib/perl5/vendor_perl/5.8.9/IO/Compress/Adapter/Deflate.pm
is being used by the active p5-io-compress-zlib port.  Please
deactivate this port first, or use 'port -f activate p5-io-compress'
to force the activation.
inner-farne:~ dcorking$ sudo port upgrade p5-io-compress-zlib
inner-farne:~ dcorking$ sudo port deactivate p5-io-compress-zlib
--->  Deactivating p5-io-compress-zlib
inner-farne:~ dcorking$ sudo port activate p5-io-compress
--->  Activating p5-io-compress
inner-farne:~ dcorking$ sudo port activate p5-io-compress-zlib
--->  Activating p5-io-compress-zlib
Error: port activate failed: Image error:
/opt/local/lib/perl5/vendor_perl/5.8.9/IO/Compress/Adapter/Deflate.pm
is being used by the active p5-io-compress port.  Please deactivate
this port first, or use 'port -f activate p5-io-compress-zlib' to
force the activation.
inner-farne:~ dcorking$ sudo port deactivate p5-io-compress
--->  Deactivating p5-io-compress
inner-farne:~ dcorking$ sudo port activate p5-io-compress-zlib
--->  Activating p5-io-compress-zlib
inner-farne:~ dcorking$ sudo port activate p5-io-compress
--->  Activating p5-io-compress
Error: port activate failed: Image error:
/opt/local/lib/perl5/vendor_perl/5.8.9/IO/Compress/Adapter/Deflate.pm
is being used by the active p5-io-compress-zlib port.  Please
deactivate this port first, or use 'port -f activate p5-io-compress'
to force the activation.
inner-farne:~ dcorking$

p5-compress-zlib depends on p5-io-compress-zlib
inner-farne:~ dcorking$ port dependents p5-compress-zlib
p5-libwww-perl depends on p5-compress-zlib
inner-farne:~ dcorking$ sudo port upgrade p5-compress-zlib

inner-farne:~ dcorking$ sudo port -f uninstall p5-compress-zlib
--->  Unable to uninstall p5-compress-zlib 2.015_0, the following
ports depend on it:
--->    p5-libwww-perl
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Uninstalling p5-compress-zlib @2.015_0
inner-farne:~ dcorking$ sudo port activate p5-io-compress
--->  Activating p5-io-compress
Error: port activate failed: Image error: p5-io-compress @2.021_3 is
already active.
inner-farne:~ dcorking$ sudo port activate p5-io-compress-zlib
--->  Activating p5-io-compress-zlib
Error: port activate failed: Image error:
/opt/local/lib/perl5/vendor_perl/5.8.9/IO/Compress/Adapter/Deflate.pm
is being used by the active p5-io-compress port.  Please deactivate
this port first, or use 'port -f activate p5-io-compress-zlib' to
force the activation.
inner-farne:~ dcorking$ sudo port dependents p5-io-compress-zlib
p5-io-compress-zlib has no dependents!
inner-farne:~ dcorking$ sudo port dependents p5-io-compress
p5-io-compress has no dependents!
inner-farne:~ dcorking$

inner-farne:~ dcorking$ sudo port uninstall p5-io-compress-zlib
--->  Uninstalling p5-io-compress-zlib @2.015_0
inner-farne:~ dcorking$ sudo port uninstall p5-io-compress
--->  Deactivating p5-io-compress @2.021_3
--->  Uninstalling p5-io-compress @2.021_3
inner-farne:~ dcorking$

inner-farne:~ dcorking$ sudo port upgrade outdated
--->  Computing dependencies for p5-io-compress
Error: Target org.macports.activate returned: Registry error:
p5-io-compress 2.021_3 not registered as installed.
Error: Problem while installing p5-io-compress
inner-farne:~ dcorking$

inner-farne:~ dcorking$ sudo port upgrade p5-io-compress
Error: p5-io-compress is not installed
inner-farne:~ dcorking$ sudo port install p5-io-compress
--->  Computing dependencies for p5-io-compress
Error: Target org.macports.activate returned: Registry error:
p5-io-compress 2.021_3 not registered as installed.
Error: Status 1 encountered during processing.
inner-farne:~ dcorking$ port contents p5-io-compress
Port p5-io-compress is not installed.

inner-farne:~ dcorking$ sudo port -f uninstall p5-libwww-perl
--->  Unable to uninstall p5-libwww-perl 5.825_0, the following ports
depend on it:
--->    p5-finance-quote
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating p5-libwww-perl @5.825_0
--->  Uninstalling p5-libwww-perl @5.825_0
inner-farne:~ dcorking$
inner-farne:~ dcorking$ sudo port install p5-libwww-perl
--->  Computing dependencies for p5-libwww-perl
Error: Target org.macports.activate returned: Registry error:
p5-io-compress 2.021_3 not registered as installed.
Error: The following dependencies failed to build: p5-io-compress
Error: Status 1 encountered during processing.
inner-farne:~ dcorking$


More information about the macports-users mailing list