我使用以下命令通过Homebrew安装了gnuplot:
brew reinstall gnuplot --with-aquaterm --with-qt --with-x11
当我尝试运行gnuplot
时,它会显示以下错误消息:
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.9.dylib
Referenced from: /usr/local/lib/libgd.3.dylib
Reason: image not found
[1] 59841 abort gnuplot
要加载jpeg v.9b,我运行了以下内容:
brew switch jpeg 9b
再次运行gnuplot
会产生不同的错误消息:
dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /usr/local/bin/gnuplot
Reason: image not found
[1] 62256 abort gnuplot
所以我重新安装了gnuplot,我的jpeg v.9b切换如上所述:
brew reinstall gnuplot --with-aquaterm --with-qt --with-x11
运行gnuplot会产生相同的错误消息:
dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /usr/local/bin/gnuplot
Reason: image not found
[1] 70518 abort gnuplot
我该如何解决这个问题?
作为参考,我的操作系统是macOS 10.13.2。