我在使用 forge 命令在 GNU Octave 中安装名为 control 的包时遇到错误。
error: pkg: error running 'make' for the control package.
error: called from
configure_make at line 110 column 9
install at line 196 column 7
pkg at line 568 column 9
我也尝试过手动安装,但没有成功。谁能指导一下有什么问题吗?我使用的是八度版本 6.2.0
编辑
warning: LFLAGS is deprecated and will be removed in a future
version of Octave, use LDFLAGS instead
sh: line 1: gfortran: command not found
make: *** [Makefile:35: slicotlibrary.a] Error 127
make: *** Waiting for unfinished jobs....
make: Entering directory '/tmp/oct-i08hVt/control-3.2.0/src'
tar -xzf slicot.tar.gz
/usr/bin/mkoctfile-6.2.0 -Wall -Wno-deprecated-declarations __control_helper_functions__.cc
mkdir sltmp
mv slicot/src/*.f ./sltmp
mv slicot/src_aux/*.f ./sltmp
cp TG04BX.fortran ./sltmp/TG04BX.f
cp TB01ZD.fortran ./sltmp/TB01ZD.f
cd sltmp; /usr/bin/mkoctfile-6.2.0 -c *.f
make: Leaving directory '/tmp/oct-i08hVt/control-3.2.0/src'
我正在运行 arch,并且安装了 make,结果发现问题是 fortran,所以我只是简单地
yay -S gcc-fortran
并安装了 fortran。这为我解决了问题