在 macOS 上安装 Octave io 包
Octave io package installation on macOS
我在网上到处搜索都无济于事,所以我求助于这里..
我想在 MacOS Catalina (10.15.5) 上将 io 包安装到 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 文件来进行故障排除,但我一生 无法在任何地方找到它。所以:
- 在哪里可以找到配置文件?
- 如何安装 io?
我不会假装对编程一无所知,因此如果可能的话,我会感谢不太技术性的回答。我使用网站上的本机 mac 应用程序版本安装了 Octave。
configure: error: C++ compiler cannot create executables
...
checking whether the C++ compiler works... no
这通常意味着您已经 Xcode 安装但尚未 运行 它并接受了最终用户许可协议(您必须在使用 Xcode 之前完成一次,包括命令行工作),and/or 没有安装 Xcode 命令行工具(您可以使用 sudo xcode-select --install
安装)。
也就是说,在 macOS 上安装多个 Octave Forge 软件包时存在一些突出的问题。如果您还有进一步的问题,可以到 the Octave.app repo on GitHub 寻求支持。
我在网上到处搜索都无济于事,所以我求助于这里..
我想在 MacOS Catalina (10.15.5) 上将 io 包安装到 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 文件来进行故障排除,但我一生 无法在任何地方找到它。所以:
- 在哪里可以找到配置文件?
- 如何安装 io?
我不会假装对编程一无所知,因此如果可能的话,我会感谢不太技术性的回答。我使用网站上的本机 mac 应用程序版本安装了 Octave。
configure: error: C++ compiler cannot create executables
...
checking whether the C++ compiler works... no
这通常意味着您已经 Xcode 安装但尚未 运行 它并接受了最终用户许可协议(您必须在使用 Xcode 之前完成一次,包括命令行工作),and/or 没有安装 Xcode 命令行工具(您可以使用 sudo xcode-select --install
安装)。
也就是说,在 macOS 上安装多个 Octave Forge 软件包时存在一些突出的问题。如果您还有进一步的问题,可以到 the Octave.app repo on GitHub 寻求支持。