以八度为单位安装常规包有错误

时间:2014-06-17 14:06:03

标签: octave

使用说明安装通用软件包时出错。

pkg install -forge general

并获取消息

octave:3> pkg install -forge general
In file included from /usr/local/octave/3.8.0/lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3/include/stdint.h:3:0,
                 from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/oct-conf-post.h:167,
                 from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/config.h:3351,
                 from /usr/local/octave/3.8.0/include/octave-3.8.0/octave/../octave/oct.h:31,
                 from SHA1.cc:19:
/usr/local/octave/3.8.0/lib/gcc47/gcc/x86_64-apple-darwin13/4.7.3/include-fixed/stdint.h:27:32: fatal error: sys/_types/_int8_t.h: No such file or directory
compilation terminated.
make: *** [SHA1.oct] Error 1
/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:3> 

我不知道解决这个问题。我的电脑操作系统是Mac 10.9.3 Mavericks。 Octave版本是3.8.0

octave:1> ver
----------------------------------------------------------------------
GNU Octave Version 3.8.0
GNU Octave License: GNU General Public License
Operating System: Darwin 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
----------------------------------------------------------------------
no packages installed.

有人有想法吗?

3 个答案:

答案 0 :(得分:3)

我找到了解决方案!使用此评论

xcode-select --install

这是成功的!

octave:1> ver
----------------------------------------------------------------------
GNU Octave Version 3.8.0
GNU Octave License: GNU General Public License
Operating System: Darwin 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
----------------------------------------------------------------------
no packages installed.
octave:2> pkg install -forge general
For information about changes from previous versions of the general package, run 'news general'.
octave:3> ver
----------------------------------------------------------------------
GNU Octave Version 3.8.0
GNU Octave License: GNU General Public License
Operating System: Darwin 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
     general  |   1.3.4 | /Users/apple/octave/general-1.3.4

答案 1 :(得分:1)

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

  1. 代码选择 - 从终端窗口安装以安装命令行工具
  2. 安装适用于Mac的MacPorts。这是一个标准安装程序,您可以从Macports下载。
  3. sudo port install gcc48 - >这是一个Fortran编译器,它是安装octave-general
  4. 所必需的
  5. sudo port install octave-general [注意:这是非常长时间,我必须禁用Spotlight索引... Macbook Pro上的小时数]
  6. sudo port install octave-control
  7. sudo port install octave-signal

答案 2 :(得分:0)

我发现这个问题看着如何安装control pkg。我在Arch Linux wiki上找到了解决方案:

  

注意:有些Octave的软件包(如控件)需要gcc-fortran ArchLinux软件包才能编译和安装。

所以你只需要为你的发行版(或其他操作系统)找到fortan编译器并安装它。