Failed to activate imath

Christoph Kukulies kuku at kukulies.org
Fri Feb 7 09:20:15 UTC 2025


I was trying the following today:

$ port install sqlite3
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
Error: Insufficient privileges to write to MacPorts install prefix.
$ sudo port install sqlite3
Password:
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
--->  Computing dependencies for sqlite3
--->  Cleaning sqlite3
--->  Scanning binaries for linking errors
--->  Found 3 broken files, matching files to ports
--->  Found 2 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
 ImageMagick @6.9.11-60+x11
 gimp2 @2.10.34+python27
Continue? [Y/n]:
--->  Fetching archive for libdeflate
--->  Attempting to fetch libdeflate-1.22_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/libdeflate
--->  Attempting to fetch libdeflate-1.22_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/libdeflate
--->  Installing libdeflate @1.22_0
--->  Cleaning libdeflate
--->  Deactivating libdeflate @1.21_0
--->  Cleaning libdeflate
--->  Activating libdeflate @1.22_0
--->  Cleaning libdeflate
--->  Computing dependencies for libraw
--->  Fetching archive for libraw
--->  Attempting to fetch libraw-0.21.3_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/libraw
--->  Attempting to fetch libraw-0.21.3_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/libraw
--->  Installing libraw @0.21.3_0
--->  Cleaning libraw
--->  Computing dependencies for libraw
--->  Deactivating libraw @0.21.2_0
--->  Cleaning libraw
--->  Activating libraw @0.21.3_0
--->  Cleaning libraw
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.6.4_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/expat
--->  Attempting to fetch expat-2.6.4_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/expat
--->  Installing expat @2.6.4_0
--->  Cleaning expat
--->  Deactivating expat @2.6.3_0
--->  Cleaning expat
--->  Activating expat @2.6.4_0
--->  Cleaning expat
--->  Computing dependencies for libxml2
--->  Fetching archive for libxml2
--->  Attempting to fetch libxml2-2.13.5_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/libxml2
--->  Attempting to fetch libxml2-2.13.5_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/libxml2
--->  Installing libxml2 @2.13.5_0
--->  Cleaning libxml2
--->  Computing dependencies for libxml2
--->  Deactivating libxml2 @2.13.4_0
--->  Cleaning libxml2
--->  Activating libxml2 @2.13.5_0
--->  Cleaning libxml2
--->  Fetching archive for imath
--->  Attempting to fetch imath-3.1.12_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/imath
--->  Attempting to fetch imath-3.1.12_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/imath
--->  Installing imath @3.1.12_0
--->  Activating imath @3.1.12_0
Error: Failed to activate imath: The following ports have active files that conflict with imath's:
ilmbase @2.3.0_1
  /opt/local/lib/libImath.dylib
Image error: Conflicting file(s) present. Please deactivate the conflicting port(s) first, or use 'port -f activate imath' to force the activation.
    while executing
"throw registry::image-error $msg"
    ("foreach" body line 35)
    invoked from within
"foreach file $imagefiles {
                incr progress_step
                _progress update $progress_step $progress_total_steps
                se..."
    invoked from within
"registry::write {
            foreach file $imagefiles {
                incr progress_step
                _progress update $progress_step $progress_..."
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_imath/imath/main.log for details.
Error: Problem while installing imath
Error: rev-upgrade failed: Error rebuilding ImageMagick
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
$ scipt
-bash: scipt: command not found
$ script
Script started, output file is typescript
$ port rev-upgrade
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
Error: Insufficient privileges to write to MacPorts install prefix.
$ sudo port rev-upgrade
Password:
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  Found 3 broken files, matching files to ports
--->  Found 2 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
 ImageMagick @6.9.11-60+x11
 gimp2 @2.10.34+python27
Continue? [Y/n]:
--->  Computing dependencies for openexr
--->  Dependencies to be installed: imath
--->  Activating imath @3.1.12_0
Error: Failed to activate imath: The following ports have active files that conflict with imath's:
ilmbase @2.3.0_1
  /opt/local/lib/libImath.dylib
Image error: Conflicting file(s) present. Please deactivate the conflicting port(s) first, or use 'port -f activate imath' to force the activation.
    while executing
"throw registry::image-error $msg"
    ("foreach" body line 35)
    invoked from within
"foreach file $imagefiles {
                incr progress_step
                _progress update $progress_step $progress_total_steps
                se..."
    invoked from within
"registry::write {
            foreach file $imagefiles {
                incr progress_step
                _progress update $progress_step $progress_..."
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_imath/imath/main.log for details.
Error: rev-upgrade failed: Error rebuilding ImageMagick
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
$

(macOS BigSur, FWIW).

Thank you.

--
Christoph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250207/92e81138/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250207/92e81138/attachment.sig>


More information about the macports-users mailing list