c++ - 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,但仍然出现所有相同的错误。任何帮助将不胜感激。
解决方案
推荐阅读
- javascript - problem with JS comparison logic if/and/or
- azure-devops-migration-tools - TfsAreaAndIterationProcessorOptions 错误
- python-3.x - 用作 Docker 基础镜像时出现 TensorFlow 错误
- ionic-framework - 带有 Microsoft SSO 的 Ionic 5 电容器
- java - 使用流删除所有文件和子目录,但不删除 java 中的目录本身
- python - 构建 CNN 时出现 PyTorch 错误:“仅支持 1 批空间目标(3D 张量),但目标大小为:: [1, 2, 64, 64]”
- asp.net - 在 GitHub 操作期间运行 Dotnet 测试未连接到数据库
- ubuntu - 无法从命令行登录 Heroku 帐户
- aggregate - Tableau 计数具有该字段最大值的记录数
- java - 已导入“slf4j-api”和“slf4j-simple”时,如何解决“未找到 SLF4J 提供程序”?