使用 Homebrew 安裝 gnuplot 發現無法使用 Aquaterm
必須額外動一些手腳才行
首先,先 uninstall gnuplot
$ brew uninstall gnuplot
接下來按以下步驟:
Step.1 安裝 Aquaterm from http://sourceforge.net/projects/aquaterm
Step.2 準備 Aquaterm Library and Include files
先檢查是不是早就已經準備好
$ ls /usr/local/lib/libaquaterm* $ ls /usr/local/include/aquaterm/*
若沒有,則執行下列命令
$ sudo ln -s /Library/Frameworks/AquaTerm.framework/Versions/A/AquaTerm /usr/local/lib/libaquaterm.dylib $ sudo ln -s /Library/Frameworks/AquaTerm.framework/Versions/A/AquaTerm /usr/local/lib/libaquaterm.1.0.0.dylib $ sudo ln -s /Library/Frameworks/AquaTerm.framework/Versions/A/Headers /usr/local/include/aquaterm
Step.3 安裝 gnuplot
$ brew install gnuplot
搞定!