ubtuntu 安装octave

前言

以前学过m语言,现在转向linux系统,不便使用MATLAB,而且有license问题,Octave是开源软件,编程语言与matlab通用,搞起来!!!!

1. 安装 octave

sudo apt update
sudo apt install octave
# 配置文件在/home/**/.config/octave/qt-settings

# 安装优化依赖包,出现错误
pkg install -forge optim
   warning: creating installation directory /home/cwg/octave
warning: called from
    install at line 30 column 5
    pkg at line 441 column 9
error: the following dependencies were unsatisfied:
   optim needs struct >= 1.0.12
 optim needs statistics >= 1.4.0
# 需要安装optim依赖
pkg install -forge struct #成功
pkg install -forge statistics #报错,待解决,
error: the following dependencies were unsatisfied:
   statistics needs octave >= 7.2.0
# 要5.2.0,可是通过 apt 安装的最新版是 5.2.0

猜你喜欢

转载自blog.csdn.net/cwg213_code/article/details/131772284
今日推荐