八度安装软件包在Mac OS X上失败(分段错误) [英] Octave installing package fails on mac osx (Segmentation fault)

查看:66
本文介绍了八度安装软件包在Mac OS X上失败(分段错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将通用软件包(general-1.3.4.tar.gz)安装到八度3.8.0.我正在使用Mac OS X优胜美地.我正在细分错误.无论我尝试安装哪个软件包(例如,单个),都会发生这种情况.我安装了xcode和命令行工具.所有帮助将不胜感激.

I am trying to install general package (general-1.3.4.tar.gz) to octave 3.8.0. Im using mac osx Yosemite. Im getting segmentation fault. This occurs no matter which package I try to install (for example singal). I have xcode and command line tools installed. All help will be appreciated.

这是我执行pkg install general-1.3.4.tar.gz时遇到的错误:

Here is the error i get when executing 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*

推荐答案

我可能已经从网络上的其他站点找到了解决方法:

I may have found a workaround from other sites on the web:

尝试安装Octave Signal Package时遇到相同的问题,但没有成功.以下内容似乎终于可以正常工作了.

I was having the same issue when trying to install the Octave Signal Package without success. The following finally appears to be working.

    从终端窗口中
  1. code-select --install安装命令行工具
  2. 安装Mac的MacPorts.您可以从Macports下载此标准安装程序.
  3. sudo port install gcc48->这是一个Fortran编译器,对于安装octave-general是必需的
  4. sudo端口安装八度通用
  5. sudo端口安装八度控制
  6. sudo端口安装八度信号
  1. code-select --install from the Terminal window to install the command line tools
  2. Install MacPorts for Mac. This is a standard installer that you can download from Macports.
  3. sudo port install gcc48 --> This is a Fortran compiler, which is necessary for installing octave-general
  4. sudo port install octave-general
  5. sudo port install octave-control
  6. sudo port install octave-signal

这篇关于八度安装软件包在Mac OS X上失败(分段错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆