macos – Octave安装包在mac osx上失败(分段错误)

我正在尝试将通用软件包(general-1.3.4.tar.gz)安装到octave 3.8.0.我正在使用mac osx Yosemite.我得到分段错误.无论我尝试安装哪个软件包(例如,singal),都会发生这种情况.我安装了xcode和命令行工具.所有帮助将不胜感激.

以下是执行pkg install general-1.3.4.tar.gz时出现的错误:

octave:3> pkg install general-1.3.4.tar.gz
/usr/local/octave/3.8.0/bin/mkoctfile-3.8.0: line 512: 15159 Segmentation fault: 11  /usr/local/octave/3.8.0/bin/g++-mp-4.7 -c -fPIC -I/usr/local/octave/3.8.0/include/octave-3.8.0/octave/.. -I/usr/local/octave/3.8.0/include/octave-3.8.0/octave -I/usr/local/octave/3.8.0/include -pipe -Os -m64 -D_THREAD_SAFE -pthread SHA1.cc -o SHA1.o
make: *** [SHA1.oct] Error 139
/usr/local/octave/3.8.0/bin/mkoctfile-3.8.0 SHA1.cc
pkg: error running `make' for the general package.
error: called from 'configure_make' in file /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/configure_make.m near line 82, column 9
error: called from:
error:   /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/install.m at line 199, column 5
error:   /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/pkg.m at line 394, column 9*
最佳答案
我可能已经从网络上的其他网站找到了解决方法:

在尝试安装Octave信号包时没有成功,我遇到了同样的问题.以下最终似乎正在起作用.

> code-select – 从终端窗口安装以安装命令行工具
>安装适用于Mac的MacPorts.这是一个标准安装程序,您可以从Macports下载.
> sudo port install gcc48 – >这是一个Fortran编译器,它是安装octave-general所必需的
> sudo port install octave-general
> sudo port install octave-control
> sudo port install octave-signal

转载注明原文:macos – Octave安装包在mac osx上失败(分段错误) - 代码日志