wiki:ProblemHotlist

Version 6 (modified by markd@…, 17 years ago) (diff)

--

Problem Hotlist

1. A port failed to build, upgrade, or quit with message referring to lbintl.3.dylib

dyld: Library not loaded: /opt/local/lib/libintl.3.dylib

The gettext port was recently updated from 0.14.x to 0.15.x. If you've upgraded gettext to 0.15.x, all ports that depend upon gettext will need to be rebuilt, which may be quite a few ports.

Here is a script that can tell you what ports you have installed that depend on gettext.

#!/bin/bash
for file in `find /opt/local/lib -name *.dylib`; do
  # Skip this match if it's a symbolic link
  if [[ ! -h $file ]]; then
    # Look for references to the missing library
    otool -L $file | grep --silent $1
    if [[ "$?" == "0" ]]; then
      port provides `echo $file`
    fi
  fi
# Grab the name of the port and make sure to list each port just once
done | awk -F: ' { print $2 } ' | sort | uniq

Now you’ve got a list of ports you need to fix. Force uninstall each of these ports and remove their archives.

port uninstall -f <port>
port clean --archive <port>

Once that’s done, force an install of each one.

port install -f <port>

If you’ve got old nonactivated versions of the port hanging around, you'll need to emove the old versions first. You may remove all old versions this way.

port -duf uninstall