[HOWTO] Rebuild all ports on MacOS/OSX

By | August 25, 2017

Once in a while, you’ll try to install something and you’ll get errors such as:

Error: Failed to activate libdvdread: Image error: /opt/local/include/dvdread/bitreader.h already exists and does not belong to a registered port. Unable to activate port libdvdread. Use ‘port -f activate libdvdread’ to force the activation.

To fix this, you can either force the port install:

sudo port -f activate libdvdread

Or go the safe way and rebuild all ports:

sudo port upgrade –force installed

NOTE: This is dash dash but wordpress sucks and prints this weirdass char instead.

This will probably take a while, especially if you have a lot of (big) ports installed. But it should resolve the above issues.

Leave a Reply

Your email address will not be published. Required fields are marked *