2019年4月21日 星期日

macOSX 10.14 Mojave 無法安裝inkscape問題的解決紀錄


今天為了安裝Inkscape在新版的macOS 10.14系統之上,發生了一些問題。下面是解決安裝問題的過程摘要。


$ sudo port install inkscape
Warning: MacPorts is configured to use an unsigned source for the ports tree. Please edit sources.conf and change 'rsync://rsync.macports.org/release/ports/' to 'rsync://rsync.macports.org/release/tarballs/ports.tar'.
Warning: MacPorts is configured to use an unsigned source for selfupdate. Please edit macports.conf and change the rsync_dir setting to match macports.conf.default.
--->  Computing dependencies for inkscape
.
.
.
.
 popt
 potrace
 py27-cython
 py27-lxml
 py27-nose
 py27-numpy
 texinfo
 urw-fonts
 webp
 xar
Continue? [Y/n]: 
--->  Configuring ghostscript
Error: Failed to configure ghostscript: autoreconf failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_ghostscript/ghostscript/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Error: Processing of port inkscape failed


首先確認是否安裝
  xcode-select --install
再來確認是否有確認過xcode的license
  sudo xcodebuild -license
一直出現錯誤情況,先針對ghostscript的安裝,詳細觀察安裝過程:
port clean ghostscript
port -d -v install ghostscript
發現問題出在gmp的安裝,再進一步追踪安裝gmp,發現要先安裝m4,才順利安裝gmp。
sudo port install m4
sudo port load dbus
sudo port clean gmp
sudo port install gmp
sudo port -f activate gmp
最後才順利安裝inkscape。