我想安装 GNU Octave optim 包,但在此过程中不断收到错误。显然我需要先安装一些其他包,其中一个是通用包。但是,当我尝试安装时,我收到此错误:
octave:17> pkg install general-1.3.2.tar.gz
make: /usr/bin/mkoctfile: Command not found
make: *** [__exit__.oct] Error 127
'make' returned the following error: make: Entering directory `/tmp/oct-CGIPo9/general/src'
/usr/bin/mkoctfile __exit__.cc
make: Leaving directory `/tmp/oct-CGIPo9/general/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.6.1/m/pkg/pkg.m near line 1391, column 9
error: called from:
error: /usr/share/octave/3.6.1/m/pkg/pkg.m at line 834, column 5
error: /usr/share/octave/3.6.1/m/pkg/pkg.m at line 383, column 9
答案1
应该使用以下命令解决这个问题:
sudo apt-get install octave-pkg-dev
它安装缺少的mkoctfile
程序。