我面临一些困难,安装软件包的八度(5.2.0通过snap)。我在运行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++,make等。
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]
发布于 2020-03-14 16:58:44
我可以确认问题与快照包,但deb-打包版本的工作,如预期的.
因此,我建议删除snap remove octave
中的Snap,然后安装4.4.1Deb:
sudo apt-get install octave
对于安装自deb的Octave,我们通常需要安装liboctave-dev
包来编译来自Octave Forge的软件包:
sudo apt-get install liboctave-dev
然后您可以从Octave Forge安装任何软件包:
pkg install -forge control
或将控制包安装为deb-package
sudo apt install octave-control
你必须等待几个月,你将得到10月5.2封装在20.04 LTS。
如果您现在确实需要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
https://askubuntu.com/questions/1217100
复制相似问题