Macos 在Mac OS X的倍频程上安装image pgk
我使用自制软件[1]在Mac[0]上安装了GNU Octave版本4.2.0-rc2 但是现在我尝试安装镜像包[2] 我试着下载它,然后用这句话:Macos 在Mac OS X的倍频程上安装image pgk,macos,installation,octave,Macos,Installation,Octave,我使用自制软件[1]在Mac[0]上安装了GNU Octave版本4.2.0-rc2 但是现在我尝试安装镜像包[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 se
"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
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)
但我认为我正确安装了GCC:
gcc -v
具有以下输出:
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
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] [2] [0]Macbook规格: MacBook Pro(13英寸,2012年年中) 2.5 GHz Intel Core i5 16 GB 1600 MHz DDR3
macOS Sierra(10.12版)我遇到了完全相同的问题。只需下载较旧版本的
image
即可,安装应按预期进行
下载链接:
您正受到影响。这里有一个补丁,它将是版本2.6.1的一部分,以及关于如何从开发源生成包版本的说明。