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

时间:2016-10-18 13:21:36

标签: macos install octave

我使用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] Macbook规格: MacBook Pro(13英寸,2012年中)

2,5 GHz Intel Core i5

16 GB 1600 MHz DDR3

macOS Sierra(版本10.12)

1 个答案:

答案 0 :(得分:1)

我遇到了完全相同的问题。只需下载image的旧版本2.4.1,安装应该按预期工作。

下载链接:

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