简体   繁体   English

八度安装matlab软件包

[英]octave install matlab package

Recently I choose to use Octave instead of Matlab in Ubuntu12.04 due to the fact that it is open sourced. 最近,由于它是开源的,因此我选择在Ubuntu12.04中使用Octave代替Matlab。 One problem I encounter is that when I try to install some additional package of matlab, it always fails. 我遇到的一个问题是,当我尝试安装一些附加的matlab软件包时,它总是失败。 For example, I want to install the randomforest matlab package (http://code.google.com/p/randomforest-matlab/), it needs to run command "make" to compile the c++ code etc. But first it tells me there's no mex command. 例如,我要安装randomforest matlab软件包(http://code.google.com/p/randomforest-matlab/),它需要运行命令“ make”来编译c ++代码等。但是首先它告诉我没有mex命令。 To solve this, I modified the Makefile by replacing "mex" with "mkotfile --mex", after the second run, there are errors associated with the source code of the package. 为了解决这个问题,我修改了Makefile,将“ mex”替换为“ mkotfile --mex”,在第二次运行后,与包的源代码相关的错误出现了。 This happens for multiple times, like I fails to install the libsvm in Octave. 这会发生多次,就像我无法在Octave中安装libsvm一样。 Does anyone know how to solve this? 有谁知道如何解决这个问题? Or I have to return to use Matlab. 否则我必须返回使用Matlab。

Octave and Matlab are different enough to cause situations like these. 八度和Matlab的差异足以导致此类情况。 Things developed for Matlab will usually not work as-is on Octave, especially external packages (ie, not developed by the Mathworks). 为Matlab开发的东西通常无法在Octave上按原样工作,尤其是外部软件包(即不是由Mathworks开发的东西)。

You'll just have to persist -- re-write some parts of the code, install additional libraries here and there, etc. to get it to work. 您只需要坚持不懈-重新编写代码的某些部分,在各处安装额外的库等,即可使其正常工作。

It's always possible, but whether it's practical , that's for you to decide. 总是可能的,但是是否可行 ,则由您决定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM