しぐまっく

愛機MacBook Pro(Mid 2010)を研究やら趣味やらに使っている際のおぼえがき.homebrewとかlinuxとかwebサービスとかも.

Octave

Matlabのスクリプトも扱える,GNU系フリー数値計算ソフト.

インストール方法(Homebrew)

# brew tap homebrew/science
# brew update && brew upgrade
# brew install gfortran
# brew install octave

しかしエラー.

Trouble Shooting

エラー内容

==> Installing octave
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Building with an alternative Fortran compiler
This is unsupported.
==> Building with an alternative Fortran compiler
This is unsupported.
==> Downloading http://ftpmirror.gnu.org/octave/octave-3.6.4.tar.bz2
######################################################                    76.0%
curl: (18) transfer closed with 3756305 bytes remaining to read
Trying a mirror...
==> Downloading http://ftp.gnu.org/gnu/octave/octave-3.6.4.tar.bz2
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file configure.ac
Hunk #1 succeeded at 1605 (offset 2 lines).
==> autoreconf -ivf
==> ./configure --prefix=/usr/local/Cellar/octave/3.6.4 --with-blas=-Wl,-framewo
==> make all
==> make install
./plot.texi:3957: warning: node `Multiple Plot Windows' is prev for `Printing and Saving Plots' in menu but not in sectioning
make[3]: *** [octave.info] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not mxcl/homebrew):
  https://github.com/homebrew/homebrew-science/issues

brew doctor

Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:

    /usr/local/share/man/de
    /usr/local/share/man/de/man1

Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/share/ghostscript/9.02/Resource/CIDFont/LiHeiPro

Warning: Your XQuartz (2.7.4) is outdated
Please install XQuartz 2.7.5:
  https://xquartz.macosforge.org

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/liblkdynam.dylib
    /usr/local/lib/liblkrealt.dylib
    /usr/local/lib/liblksec.dylib
    /usr/local/lib/liblksock.dylib
    /usr/local/lib/libosxfuse_i32.2.dylib
    /usr/local/lib/libosxfuse_i64.2.dylib

Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libosxfuse_i32.la
    /usr/local/lib/libosxfuse_i64.la

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib/pkgconfig/osxfuse.pc

Warning: Your compilers are different from the standard versions for your Xcode.
If you have Xcode 4.3 or newer, you should install the Command Line Tools for
Xcode from within Xcode's Download preferences.
Otherwise, you should reinstall Xcode.
対処
$ sudo chown tomkimra:admin /usr/local/share/man/de
$ sudo chown tomkimra:admin /usr/local/share/man/de/man1
configure: WARNING: I didn't find ghostscript, so reconstructing figures for the manual will fail, and saving graphics in some output formats will fail when using Octave
configure: WARNING: building documentation disabled; make dist will fail
configure: WARNING: 
configure: WARNING: I didn't find gnuplot.  Plotting commands will use the
configure: WARNING: native graphics toolkit.
configure: WARNING: 
configure: WARNING: If gnuplot is installed, but isn't in your path, you can
configure: WARNING: tell Octave where to find it by using the gnuplot_binary
configure: WARNING: function.  For example,
configure: WARNING: 
configure: WARNING: gnuplot_binary ("/full/path/and/name/of/gnuplot/binary")
configure: WARNING: 
configure: WARNING: at the Octave prompt.
configure: WARNING: 
configure: WARNING: Setting default value to gnuplot
configure: WARNING: 
configure: 
configure: NOTE: libraries may be skipped if a library is not found OR
configure: NOTE: if the library on your system is missing required features.
  • suite-sparseを4.2.1?から4.0.2に落として,--without-fltkオプション付けてもう一度octaveをインストール
  • libgd.2.0.0.dylibがどうも見つからないらしいので,/usr/local/Celler/gd/2.0.ほにゃ/lib/ のそれからシンボリックリンクを引いたらプロットできるようになりまみた....