Installing general package in octave has error

99封情书 提交于 2019-12-04 14:21:31

I find the solution! Using this comment

xcode-select --install

and it's success!

octave:1> ver
----------------------------------------------------------------------
GNU Octave Version 3.8.0
GNU Octave License: GNU General Public License
Operating System: Darwin 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
----------------------------------------------------------------------
no packages installed.
octave:2> pkg install -forge general
For information about changes from previous versions of the general package, run 'news general'.
octave:3> ver
----------------------------------------------------------------------
GNU Octave Version 3.8.0
GNU Octave License: GNU General Public License
Operating System: Darwin 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
     general  |   1.3.4 | /Users/apple/octave/general-1.3.4

I was having the same issue when trying to install the Octave Signal Package without success. The following finally appears to be working.

  1. code-select --install from the Terminal window to install the command line tools
  2. Install MacPorts for Mac. This is a standard installer that you can download from Macports.
  3. sudo port install gcc48 --> This is a Fortran compiler, which is necessary for installing octave-general
  4. sudo port install octave-general [NOTE: THIS TOOK A VERY LONG TIME, and I had to disable Spotlight indexing...Hours on a Macbook Pro]
  5. sudo port install octave-control
  6. sudo port install octave-signal

I found this theard looking how to install control pkg. I found solution on Arch Linux wiki:

Note: Some Octave's packages, like control, need the gcc-fortran ArchLinux's package in order to compile and install.

So you just need find fortan compiler for your distribution (or other operation system) and install it.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!