【发布时间】:2016-02-14 05:15:52
【问题描述】:
我刚刚安装了 octave-geometry 包,并尝试调用:
drawShape('rect', [20 20 40 10 pi/3]);
结果是:
error: 'rectAsPolygon' undefined near line 78 column 21
error: called from
drawShape at line 78 column 19
我正在运行 Linux Mint 17 (Qiana)。最初,我通过使用 octave 3.8 的 apt-get 进行安装,得到了类似的结果。所以,我安装了 octave 4.0 版本,采取以下路线:
sudo apt-add-repository ppa:octave/stable
GUI 安装好了,但是还是不能使用geometry包。
>> pkg load geometry;
>> ver
----------------------------------------------------------------------
GNU Octave Version: 4.0.0
GNU Octave License: GNU General Public License
Operating System: Linux 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64
----------------------------------------------------------------------
Package Name | Version | Installation directory
--------------+---------+-----------------------
general | 2.0.0 | /usr/share/octave/packages/general-2.0.0
geometry *| 2.1.0 | /home/jack/octave/geometry-2.1.0
有什么想法吗?非常感谢。
【问题讨论】:
-
这看起来像是几何包中的一个错误。您应该在 Octave 的 bug tracker 上报告它