首页 > 解决方案 > Octave(IO包错误)无法运行C++编译的程序

问题描述

我在仪器分析课上。我们正在使用 Octave 来编写我们的实验室笔记本。我们需要使用的功能之一是pkg install -forge statistics. 当我进入时,我得到

error: the following dependencies were unsatisfied: statistics needs io >= 1.0.18

当我尝试时pkg update -forge io,我得到

warning: pkg: package io is not installed - skipping update warning: called from
    pkg at line 572 column 13

当我尝试pkg install -forge io时,它会尝试安装它,然后我得到

configure: error: in `/var/folders/7z/xkztb9z11xs99kzrkzrd4rpr0000gn/T/oct-okgmrt/io-2.6.1/src':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
checking for mkoctfile... /usr/local/Cellar/octave/5.2.0_7/bin/mkoctfile-5.2.0
checking for octave-config... /usr/local/Cellar/octave/5.2.0_7/bin/octave-config-5.2.0
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... 
pkg: error running the configure script for io.
error: called from
    configure_make at line 82 column 9
    install at line 190 column 7
    pkg at line 441 column 9

我已尝试重新安装 Homebrew 和 Octave,但仍然出现所有相同的错误。任何帮助将不胜感激。

标签: c++homebrewoctave

解决方案


推荐阅读