我试图在Octave中安装杂项,但它说GNU单元是必需的。我无法弄清楚如何安装它,并且此问题上的所有现有页面都没有帮助。我有Octave 4.0。 This link说我可能不得不自己安装杂项,但我不知道该怎么做或甚至意味着什么。这是我得到的错误:
>> pkg install -forge miscellaneous
configure: error: The program GNU Units is required to install Octave-Forge miscellaneous package.
checking for gcc... gcc
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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking term.h usability... yes
checking term.h presence... yes
checking for term.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for units... no
pkg: error running the configure script for miscellaneous.
error: called from 'configure_make' in file /usr/share/octave/4.0.0/m/pkg/private/configure_make.m near line 79, column 9