0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

gnuplotをcatalinaで使おうとして失敗.

Last updated at Posted at 2019-10-20

イントロ

  • gnuplotをcatalinaで使おうとして失敗.
  • 結論: 古いgnuplotを入れろ.

brewのgnuplotのオプション指定ができなくなったので対処する に従って.

brew tap ie-developers/ie
brew install ie-developers/ie/gnuplot  --with-cairo  --with-aquaterm

症状

  1. rubyでgnuplotがないと怒られた.
  2. gem install numo-gnuplot
  3. gnuplotがlibなしで動かない.
  4. brew install gnuplot –with-aquaterm
    1. したら,–with-aquatermがナイト..
  5. なしで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
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?