イントロ
- gnuplotをcatalinaで使おうとして失敗.
- 結論: 古いgnuplotを入れろ.
brewのgnuplotのオプション指定ができなくなったので対処する に従って.
brew tap ie-developers/ie
brew install ie-developers/ie/gnuplot --with-cairo --with-aquaterm
症状
- rubyでgnuplotがないと怒られた.
- gem install numo-gnuplot
- gnuplotがlibなしで動かない.
- brew install gnuplot –with-aquaterm
- したら,–with-aquatermがナイト..
- なしでinstallしたら,今度はnumo/gnuplotでエラー
gnuplot.rb:307:in `run': (Numo::GnuplotError)
_example
ruby site_ks_new.rb
Traceback (most recent call last):
...
/Users/bob/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/numo-gnuplot-0.2.4/lib/numo/gnuplot.rb:307:in `run': (Numo::GnuplotError)
対処
にある通りに入れ直す.初めての人はaquatermも忘れずにinstall.してなかった場合は,以下の通りunknownが出ます.えっと,この間にXcodeも入れてます.
> brew unlink gnuplot
Unlinking /usr/local/Cellar/gnuplot/5.4.0_1... 3 symlinks removed
> brew install ie-developers/ie/gnuplot --with-cairo --with-aquater
> gnuplot
G N U P L O T
Version 5.2 patchlevel 6 last modified 2019-01-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2018
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type is now 'unknown'
aquatermをinstall
aquatermをinstallして再度,brew uninstall gnuplotからやり直すと,
gnuplot
G N U P L O T
Version 5.2 patchlevel 6 last modified 2019-01-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2018
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type is now 'aqua'
gnuplot> plot sin(x)
と普通にaqua.
多分,rubyのnumo/gnuplotもいけるでしょ.いけた.めでたしめでたし.
–with-cairo –wtih-aquatermとしたときにerrorが出た場合でも同じ対応でok.
- source ~/materials/al_twist/docs/qiita/gnuplot_install.org