sudo port install ghostscript ---> Computing dependencies for ghostscript The following dependencies will be installed: autoconf automake gdbm jbig2dec libpaper perl5 perl5.24 xorg-libXt Continue? [Y/n]: y ---> Fetching archive for autoconf ---> Attempting to fetch autoconf-2.69_5.darwin_16.noarch.tbz2 from https://packages.macports.org/autoconf ---> Attempting to fetch autoconf-2.69_5.darwin_16.noarch.tbz2.rmd160 from https://packages.macports.org/autoconf ---> Installing autoconf @2.69_5 ---> Activating autoconf @2.69_5 ---> Cleaning autoconf ---> Fetching archive for automake ---> Attempting to fetch automake-1.15_1.darwin_16.noarch.tbz2 from https://packages.macports.org/automake ---> Attempting to fetch automake-1.15_1.darwin_16.noarch.tbz2.rmd160 from https://packages.macports.org/automake ---> Installing automake @1.15_1 ---> Activating automake @1.15_1 ---> Cleaning automake ---> Fetching archive for jbig2dec ---> Attempting to fetch jbig2dec-0.13_0.darwin_16.x86_64.tbz2 from https://packages.macports.org/jbig2dec ---> Attempting to fetch jbig2dec-0.13_0.darwin_16.x86_64.tbz2.rmd160 from https://packages.macports.org/jbig2dec ---> Installing jbig2dec @0.13_0 ---> Activating jbig2dec @0.13_0 ---> Cleaning jbig2dec ---> Fetching archive for libpaper ---> Attempting to fetch libpaper-1.1.24.4_0.darwin_16.x86_64.tbz2 from https://packages.macports.org/libpaper ---> Attempting to fetch libpaper-1.1.24.4_0.darwin_16.x86_64.tbz2.rmd160 from https://packages.macports.org/libpaper ---> Installing libpaper @1.1.24.4_0 ---> Activating libpaper @1.1.24.4_0 ---> Cleaning libpaper ---> Fetching archive for gdbm ---> Attempting to fetch gdbm-1.13_2.darwin_16.x86_64.tbz2 from https://packages.macports.org/gdbm ---> Attempting to fetch gdbm-1.13_2.darwin_16.x86_64.tbz2.rmd160 from https://packages.macports.org/gdbm ---> Installing gdbm @1.13_2 ---> Activating gdbm @1.13_2 ---> Cleaning gdbm ---> Fetching archive for perl5.24 ---> Attempting to fetch perl5.24-5.24.1_0.darwin_16.x86_64.tbz2 from https://packages.macports.org/perl5.24 ---> Attempting to fetch perl5.24-5.24.1_0.darwin_16.x86_64.tbz2.rmd160 from https://packages.macports.org/perl5.24 ---> Installing perl5.24 @5.24.1_0 ---> Activating perl5.24 @5.24.1_0 ---> Cleaning perl5.24 ---> Fetching archive for perl5 ---> Attempting to fetch perl5-5.24.1_0+perl5_24.darwin_16.noarch.tbz2 from https://packages.macports.org/perl5 ---> Attempting to fetch perl5-5.24.1_0+perl5_24.darwin_16.noarch.tbz2.rmd160 from https://packages.macports.org/perl5 ---> Installing perl5 @5.24.1_0+perl5_24 ---> Activating perl5 @5.24.1_0+perl5_24 ---> Cleaning perl5 ---> Fetching archive for xorg-libXt ---> Attempting to fetch xorg-libXt-1.1.5_1.darwin_16.x86_64.tbz2 from https://packages.macports.org/xorg-libXt ---> Attempting to fetch xorg-libXt-1.1.5_1.darwin_16.x86_64.tbz2.rmd160 from https://packages.macports.org/xorg-libXt ---> Installing xorg-libXt @1.1.5_1 ---> Activating xorg-libXt @1.1.5_1 ---> Cleaning xorg-libXt ---> Fetching archive for ghostscript ---> Attempting to fetch ghostscript-9.21_0+x11.darwin_16.x86_64.tbz2 from https://packages.macports.org/ghostscript ---> Attempting to fetch ghostscript-9.21_0+x11.darwin_16.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/ghostscript ---> Attempting to fetch ghostscript-9.21_0+x11.darwin_16.x86_64.tbz2 from http://kmq.jp.packages.macports.org/ghostscript ---> Fetching distfiles for ghostscript ---> Attempting to fetch ghostscript-9.21.tar.gz from https://distfiles.macports.org/ghostscript ---> Attempting to fetch ghostscript-9.21.tar.gz from https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs921 ---> Attempting to fetch ghostscript-fonts-other-6.0.tar.gz from https://distfiles.macports.org/ghostscript ---> Attempting to fetch ghostscript-fonts-std-8.11.tar.gz from https://distfiles.macports.org/ghostscript ---> Attempting to fetch 28953f3423bd83688297c35129580ebb5fb9c948.zip from https://distfiles.macports.org/ghostscript ---> Attempting to fetch 28953f3423bd83688297c35129580ebb5fb9c948.zip from https://github.com/adobe-type-tools/mapping-resources-pdf/archive/ ---> Verifying checksums for ghostscript ---> Extracting ghostscript ---> Applying patches to ghostscript Warning: reinplace s|#!/usr/bin/perl|#!/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.21/freetype_local/src/tools/afblue.pl ---> Configuring ghostscript ---> Building ghostscript ---> Staging ghostscript into destroot ---> Installing ghostscript @9.21_0+x11 ---> Activating ghostscript @9.21_0+x11 ---> Cleaning ghostscript ---> Updating database of binaries ---> Scanning binaries for linking errors ---> Found 2 broken files, matching files to ports ---> Found 1 broken port, determining rebuild order You can always run 'port rev-upgrade' again to fix errors. The following ports will be rebuilt: ghostscript @9.21+x11 Continue? [Y/n]: n Fredericks-Mac-mini:~ fred$ sudo port clean ghostscript ---> Cleaning ghostscript Fredericks-Mac-mini:~ fred$ sudo port rev-upgrade ---> Scanning binaries for linking errors ---> Found 2 broken files, matching files to ports ---> Found 1 broken port, determining rebuild order You can always run 'port rev-upgrade' again to fix errors. The following ports will be rebuilt: ghostscript @9.21+x11 Continue? [Y/n]: y ---> Computing dependencies for ghostscript ---> Cleaning ghostscript ---> Scanning binaries for linking errors ---> Found 2 broken files, matching files to ports ---> Found 1 broken port, determining rebuild order ---> Rebuilding in order ghostscript @9.21 +x11 ---> Computing dependencies for ghostscript ---> Fetching distfiles for ghostscript ---> Verifying checksums for ghostscript ---> Extracting ghostscript ---> Applying patches to ghostscript Warning: reinplace s|#!/usr/bin/perl|#!/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.21/freetype_local/src/tools/afblue.pl ---> Configuring ghostscript ---> Building ghostscript ---> Staging ghostscript into destroot ---> Deactivating ghostscript @9.21_0+x11 ---> Cleaning ghostscript ---> Uninstalling ghostscript @9.21_0+x11 ---> Cleaning ghostscript ---> Computing dependencies for ghostscript ---> Installing ghostscript @9.21_0+x11 ---> Activating ghostscript @9.21_0+x11 ---> Cleaning ghostscript ---> Updating database of binaries ---> Scanning binaries for linking errors ---> Found 2 broken files, matching files to ports ---> Found 1 broken port, determining rebuild order ---> Rebuilding in order ghostscript @9.21 +x11 ---> Computing dependencies for ghostscript ---> Fetching distfiles for ghostscript ---> Verifying checksums for ghostscript ---> Extracting ghostscript ---> Applying patches to ghostscript Warning: reinplace s|#!/usr/bin/perl|#!/opt/local/bin/perl| didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.21/freetype_local/src/tools/afblue.pl ---> Configuring ghostscript ---> Building ghostscript ---> Staging ghostscript into destroot ---> Deactivating ghostscript @9.21_0+x11 ---> Cleaning ghostscript ---> Uninstalling ghostscript @9.21_0+x11 ---> Cleaning ghostscript ---> Computing dependencies for ghostscript ---> Installing ghostscript @9.21_0+x11 ---> Activating ghostscript @9.21_0+x11 ---> Cleaning ghostscript ---> Updating database of binaries ---> Scanning binaries for linking errors ---> Found 2 broken files, matching files to ports Error: Port ghostscript is still broken after rebuilding it more than 3 times. Error: Please run port -d -y rev-upgrade and use the output to report a bug. Error: rev-upgrade failed: Port ghostscript still broken after rebuilding 3 times Error: Follow https://guide.macports.org/#project.tickets to report a bug. Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ port -d -y rev-upgrade Error: Insufficient privileges to write to MacPorts install prefix. Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ Fredericks-Mac-mini:~ fred$ sudo port -d -y rev-upgrade ---> Scanning binaries for linking errors DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/ld64/ld-latest DEBUG: skipping ppc in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/apptemplate/prebuilt/main-fat since this system can't run it anyway DEBUG: skipping ppc in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/apptemplate/prebuilt/main-fat3 since this system can't run it anyway DEBUG: skipping ppc64 in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/apptemplate/prebuilt/main-universal since this system can't run it anyway DEBUG: skipping ppc in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/apptemplate/prebuilt/main-universal since this system can't run it anyway DEBUG: skipping ppc in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/apptemplate/prebuilt/secondary-fat since this system can't run it anyway DEBUG: skipping ppc in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/apptemplate/prebuilt/secondary-fat3 since this system can't run it anyway DEBUG: skipping ppc64 in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/apptemplate/prebuilt/secondary-universal since this system can't run it anyway DEBUG: skipping ppc in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/apptemplate/prebuilt/secondary-universal since this system can't run it anyway DEBUG: skipping ppc in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/bundletemplate/prebuilt/main-fat since this system can't run it anyway DEBUG: skipping ppc in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/bundletemplate/prebuilt/main-fat3 since this system can't run it anyway DEBUG: skipping ppc64 in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/bundletemplate/prebuilt/main-universal since this system can't run it anyway DEBUG: skipping ppc in /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py2app/bundletemplate/prebuilt/main-universal since this system can't run it anyway DEBUG: skipping ppc in /opt/local/share/cmake-3.8/Modules/CPack.OSXScriptLauncher.in since this system can't run it anyway Could not open libgs.9.21.dylib: Error opening or reading file (referenced from /opt/local/bin/gsc) libgs.9.21.dylib seems to be referenced using a relative path. This may be a problem with its canonical library name and require the use of install_name_tool(1) to fix. DEBUG: Marking /opt/local/bin/gsc as broken DEBUG: Marking /opt/local/bin/gsx as broken ---> Found 2 broken files, matching files to ports ---> Found 1 broken port, determining rebuild order DEBUG: Broken: ghostscript DEBUG: Processing port ghostscript @0:9.21_0 +x11 You can always run 'port rev-upgrade' again to fix errors. The following ports will be rebuilt: ghostscript @9.21+x11 Continue? [Y/n]: n