在 Mac OS X 上的 Octave 上安装图像 pgk

Installing image pgk on Octave on Mac OS X

我使用 Homebrew[1] 在我的 Mac[0] 上安装了 GNU Octave,版本 4.2.0-rc2。

但现在我尝试安装镜像 pkg[2]。

我尝试下载它然后使用这一行:

"pkg install image-2.6.0.tar.gz"

然后我尝试用这行代码安装它:

"pkg install -forge image"

两者都产生了以下输出:

configure: error: *** A compiler with support for C++11 is required
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for octave... /usr/local/Cellar/octave/4.2.0-rc2/bin/octave-4.2.0-rc2
checking for mkoctfile... /usr/local/Cellar/octave/4.2.0-rc2/bin/mkoctfile-4.2.0-rc2
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -std=gnu++11 accepts -g... yes
checking for clang++ -std=gnu++11 option to enable C++11 features... unsupported

pkg: error running the configure script for image.
error: called from
    install at line 200 column 5
    pkg at line 392 column 9

但我认为我正确安装了 GCC:

gcc -v

具有以下输出:

Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/6.2.0/lto-wrapper
Ziel: x86_64-apple-darwin15.6.0
Konfiguriert mit: ../gcc-6.2.0/configure --enable-languages=c++,fortran --with-gmp=/usr/local
Thread-Modell: posix
gcc-Version 6.2.0 (GCC) 

我的错误是什么?或者我做错了什么?


[1] http://wiki.octave.org/Octave_for_MacOS_X#Homebrew

[2]http://octave.sourceforge.net/image/index.html

[0] Mac书籍规格: MacBook Pro(13 英寸,2012 年中)

2.5 GHz 英特尔酷睿 i5

16 GB 1600 MHz DDR3

macOS Sierra(版本 10.12)

我遇到了完全相同的问题。只需下载 image 的旧版本 2.4.1,即可按预期进行安装。

下载Link:

https://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases/image-2.4.1.tar.gz/download