我正在尝试在Octave中安装一些软件包,但是我遇到了错误。任何帮助都感激不尽。我从Octave主目录尝试了这个。 (我也尝试过:pkg install general-1.3.4.tar.gz)
octave:1> 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
答案 0 :(得分:3)
在新的终端窗口上运行以下命令,在命令行和基于gui的版本上为我解决了这个问题:
xcode-select --install
答案 1 :(得分:2)
我找到了网络上其他网站的解决方法:
在尝试安装Octave信号包时没有成功,我遇到了同样的问题。以下最终似乎正在起作用。
答案 2 :(得分:0)
我遇到与八度音阶3.8.0和优胜美地
相似的问题pkg install /Users/Andrew/Downloads/odepkg-0.8.4.tar.gz configure:error:in
/var/tmp/oct-ZcfViL/odepkg/src': configure: error: C compiler cannot create executables See
config.log'更多细节 检查gcc ... /usr/local/octave/3.8.0/bin/gcc-mp-4.7 检查C编译器是否正常工作......没有pkg:运行odepkg的配置脚本时出错。 错误:来自' configure_make'在文件/usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/configure_make.m第72行第9栏附近 错误:来自: 错误:/usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/install.m,第199行,第5栏 错误:/usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/pkg.m,第394行,第9栏
我安装了xcode命令行工具。