在Mac OS上安装Octave io软件包

时间:2020-06-22 15:36:34

标签: macos package config octave

我在网上上下搜索都无济于事,所以我只想在这里提问。

我想将io软件包安装到MacOS Catalina(10.15.5)上的Octave 4.4.1。我尝试直接从Forge以及从.gz文件再次安装,但是每次都会出现以下错误:

configure: error: in `/var/folders/rh/y2fddn916sg3v_8pkln9z7jr0000gq/T/oct-JsL8yQ/io-2.6.1/src':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
checking for mkoctfile... /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app@4.4.1/4.4.1/bin/mkoctfile-4.4.1
checking for octave-config... /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app@4.4.1/4.4.1/bin/octave-config-4.4.1
checking whether the C++ compiler works... no

pkg: error running the configure script for io.
error: called from
    configure_make at line 82 column 9
    install at line 184 column 7
    pkg at line 437 column 9

我知道我需要提供config.log文件来进行故障排除,但是我无法在我的生活中找到它。所以:

  1. 在哪里可以找到配置文件?
  2. 如何安装io?

我不假装对编程一无所知,因此,如果可能的话,不要接受技术含量较低的答案。我使用网站上的本地mac应用版本安装了Octave。

1 个答案:

答案 0 :(得分:0)

configure: error: C++ compiler cannot create executables
...
checking whether the C++ compiler works... no

这通常意味着您已经安装了Xcode但尚未运行它并接受EULA(在使用Xcode进行任何操作(包括命令行工作)之前必须执行一次),和/或没有Xcode命令已安装Line Tools(您可以使用sudo xcode-select --install来完成)。

话虽如此,在macOS上安装几个Octave Forge软件包存在一些突出的问题。如果您还有其他问题,可以the Octave.app repo on GitHub寻求支持。