Kem-Templetons-MacBook-Pro:~ Kem$ sudo port uninstall ghostscript ---> Unable to uninstall ghostscript @8.64_3, the following ports depend on it: ---> ImageMagick @6.5.4-0_0+graphviz+gs+jbig+jpeg2+lcms+q16+wmf Error: port uninstall failed: Please uninstall the ports that depend on ghostscript first. Kem-Templetons-MacBook-Pro:~ Kem$ sudo port uninstall ImageMagick ---> Deactivating ImageMagick @6.5.4-0_0+graphviz+gs+jbig+jpeg2+lcms+q16+wmf ---> Uninstalling ImageMagick @6.5.4-0_0+graphviz+gs+jbig+jpeg2+lcms+q16+wmf Kem-Templetons-MacBook-Pro:~ Kem$ sudo port uninstall ghostscript ---> Deactivating ghostscript @8.64_3 ---> Uninstalling ghostscript @8.64_3 Kem-Templetons-MacBook-Pro:~ Kem$ sudo port install ghostscript ---> Building libffi Error: Target org.macports.build returned: shell command failed (see log for details) Log for libffi is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libffi/libffi/main.log Error: Problem while installing libffi Error: Unable to execute port: upgrade pkgconfig failed To report a bug, see