【发布时间】:2017-02-27 19:14:18
【问题描述】:
我使用 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 英特尔酷睿 i5
16 GB 1600 MHz DDR3
macOS Sierra(10.12 版)
【问题讨论】:
-
您正受到此bug #49306 的影响。那里有一个修复程序,它将成为 2.6.1 版的一部分,以及有关如何从开发源制作软件包版本的说明。
标签: macos installation octave