简体   繁体   English

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

[英]Installing image pgk on Octave on Mac OS X

I installed GNU Octave, version 4.2.0-rc2 on my Mac[0] using Homebrew[1].我使用 Homebrew[1] 在我的 Mac[0] 上安装了 GNU Octave,版本 4.2.0-rc2。

But now I tried to install the image pkg[2].但是现在我尝试安装图像 pkg[2]。

I tried downloading it and then using this line:我尝试下载它,然后使用这一行:

"pkg install image-2.6.0.tar.gz"

Then I tried installing it with this line of code:然后我尝试用这行代码安装它:

"pkg install -forge image"

Both resulted in the following output:两者都导致以下输出:

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

But I think I installed GCC correctly:但我认为我正确安装了 GCC:

gcc -v

Has the following output:有以下输出:

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) 

What is my mistake?我的错误是什么? Or what have i done wrong?或者我做错了什么?


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

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

[0] Macbook Specifications: MacBook Pro (13-inch, Mid 2012) [0] Macbook 规格:MacBook Pro(13 英寸,2012 年中)

2,5 GHz Intel Core i5 2,5 GHz 英特尔酷睿 i5

16 GB 1600 MHz DDR3 16 GB 1600 MHz DDR3

macOS Sierra (Version 10.12) macOS Sierra(版本 10.12)

I had the exact same problem.我有同样的问题。 Just download the older version 2.4.1 of image and installation should work as expected.只需下载旧版本的 2.4.1 image ,安装应该会按预期工作。

Download Link:下载链接:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM