我在以八度(通过 snap 5.2.0)安装软件包时遇到了一些困难。我正在运行 ubuntu 19.10
问题是:
>> pkg install -forge control
configure: error: in `/tmp/oct-bdXz48/control-3.2.0/src':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
checking for mkoctfile... /snap/octave/22/bin/mkoctfile-5.2.0
checking for octave-config... /snap/octave/22/bin/octave-config-5.2.0
checking whether the C++ compiler works... no
pkg: error running the configure script for control.
error: called from
configure_make at line 82 column 9
install at line 190 column 7
pkg at line 441 column 9
>> which make
>> which gcc
>> which g++
我是apt
那种人,而且很新,所以我不知道我是否在寻找正确的方向。该which
内部倍频没有与编译器相关的工具运气好的话,但基本安装有GCC,G ++,使等...
hoo2@shirka:~$ uname -a
Linux shirka 5.3.0-40-generic #32-Ubuntu SMP Fri Jan 31 20:24:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
hoo2@shirka:~$ apt list --installed build*
Listing... Done
build-essential/eoan,now 12.8ubuntu1 amd64 [installed]
我可以确认 Snap 包的问题,但 deb 打包版本按预期工作。
所以我建议删除 Snapsnap remove octave
并安装 4.4.1 deb:
sudo apt-get install octave
对于从 deb 安装的 Octave,我们通常需要安装liboctave-dev
包来编译来自 Octave Forge 的包:
sudo apt-get install liboctave-dev
然后你可以从 Octave Forge 安装任何软件包:
pkg install -forge control
或者将 Control 包安装为 deb-package
sudo apt install octave-control
您必须等待几个月,您将获得打包在 20.04 LTS 中的 Octave 5.2。
如果你今天真的需要 5.2 - 使用 FlatPak:
sudo apt-get install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.octave.Octave
flatpak run org.octave.Octave
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句