Mac Port tip for deailing with ports with failing checksums
While trying to install rmagick I ran into a faulty mirror or something and the libxml2 distribution file wasn’t verifying.
I’d tried to clean the port and reinstall but that failed.
Here’s the magic:
sudo port clean --work --dist <port_name>
Until I did that it told me again and again it was fetching the port but it was actually just pulling a cached version.
E.g.,
tim@manhattan:~$ sudo port install rb-rmagick ---> Fetching libxml2 ---> Verifying checksum(s) for libxml2 Error: Checksum (md5) mismatch for libxml2-2.6.30.tar.gz Error: Checksum (sha1) mismatch for libxml2-2.6.30.tar.gz Error: Checksum (rmd160) mismatch for libxml2-2.6.30.tar.gz Error: Target org.macports.checksum returned: Unable to verify file checksums Error: The following dependencies failed to build: ImageMagick libxml2 pkgconfig tiff ruby readline Error: Status 1 encountered during processing. tim@manhattan:~$ sudo port clean --work --dist libxml2 ---> Cleaning libxml2