You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装Octave的signal包遇依赖问题:control包编译报错求助

安装Octave signal包时control-3.5.1编译失败求助

我要安装Octave的signal包,但该包依赖control包。安装control-3.5.1版本时出现编译错误,报错提示octave::range未定义,导致make执行失败。谷歌搜索没找到有效解决办法,特此求助。

具体报错信息:

pkg install "https://github.com/gnu-octave/pkg-control/releases/download/control-3.5.1/control-3.5.1.tar.gz"
In file included from __control_helper_functions__.cc:7:
lti_input_idx.cc: In function ‘octave_value_list F__lti_input_idx__(const octave_value_list&, int)’:
lti_input_idx.cc:96:13: error: ‘range’ is not a member of ‘octave’
   96 |     octave::range<double> mat_idx (1, idx-offset);
      |             ^~~~~
lti_input_idx.cc:96:19: error: expected primary-expression before ‘double’
   96 |     octave::range<double> mat_idx (1, idx-offset);
      |                   ^~~~~~
lti_input_idx.cc:97:13: error: ‘range’ is not a member of ‘octave’
   97 |     octave::range<double> opt_idx (idx+1-offset, len);
      |             ^~~~~
lti_input_idx.cc:97:19: error: expected primary-expression before ‘double’
   97 |     octave::range<double> opt_idx (idx+1-offset, len);
      |                   ^~~~~~
lti_input_idx.cc:100:17: error: ‘opt_idx’ was not declared in this scope
  100 |     retval(1) = opt_idx;
      |                 ^~~~~~~
lti_input_idx.cc:101:17: error: ‘mat_idx’ was not declared in this scope
  101 |     retval(0) = mat_idx;
      |                 ^~~~~~~
make: *** [Makefile:69: __control_helper_functions__.oct] Error 1
make: *** Waiting for unfinished jobs....
make: Entering directory '/tmp/oct-Y9iHDK/control-3.5.1/src'
tar -xzf slicot.tar.gz
/usr/bin/mkoctfile -Wall -Wno-deprecated-declarations  __control_helper_functions__.cc
mkdir sltmp
mv slicot/src/*.f ./sltmp
mv slicot/src_aux/*.f ./sltmp
if [ "1" = "1" ]; then \
        echo "copy routines using DGGES"; \
        cp SB04OD.fortran ./sltmp/SB04OD.f; \
        cp SG03AD.fortran ./sltmp/SG03AD.f; \
        cp SG03BD.fortran ./sltmp/SG03BD.f; \
fi;
copy routines using DGGES
cp AB08NX.fortran ./sltmp/AB08NX.f
cp AG08BY.fortran ./sltmp/AG08BY.f
cp SB01BY.fortran ./sltmp/SB01BY.f
cp SB01FY.fortran ./sltmp/SB01FY.f
cp SB06ND.fortran ./sltmp/SB06ND.f
cp TB01MD.fortran ./sltmp/TB01MD.f
cp TB01ND.fortran ./sltmp/TB01ND.f
cp TB01ZD.fortran ./sltmp/TB01ZD.f
cp TG04BX.fortran ./sltmp/TG04BX.f
cp ODLTZM.fortran ./sltmp/ODLTZM.f
cp makefile.slicot ./sltmp/makefile
cd sltmp; /usr/bin/mkoctfile -w -c MA02ID.f; rm MA02ID.f; /usr/bin/mkoctfile -c *.f;
ar -rc slicotlibrary.a ./sltmp/*.o
rm -rf sltmp slicot
make: Leaving directory '/tmp/oct-Y9iHDK/control-3.5.1/src'

error: pkg: error running 'make' for the control package.
error: called from
    configure_make at line 110 column 9
    install at line 198 column 7
    pkg at line 568 column 9
>> pkg install "https://downloads.sourceforge.net/project/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases/signal-1.4.3.tar.gz"
error: the following dependencies were unsatisfied:
   signal needs control >= 2.4

内容的提问来源于stack exchange,提问作者Naveed Ahmed

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.26 00:53:16