找不到命令“我的客户中心" [英] No command MCC found

查看:249
本文介绍了找不到命令“我的客户中心"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Ubuntu 14.04中使用Matlab 2013a创建可执行文件,经过一番研究,我了解了以下命令,创建了可执行文件

I am trying to create an executable using Matlab 2013a in Ubuntu 14.04, and after some research, I understood the following command, creates the executable

    mcc -mv matlabfile.m

但是,当我运行此命令时,出现以下错误

However, when I run this command, I get following error

    No command 'mcc' found, but there are 33 similar ones
    mcc: command not found

这是由于安装了Matlab而导致的错误,还是应该将编译器包含在任何路径变量中,以便可以使用命令mcc访问它.我该如何解决?

Is this an error due to Matlab installation or should I include the compiler into any path variable, so that I can access it using the command mcc.? How do I solve this?

更新1

我在matlab中运行了 ver 命令,并显示了部分输出,只是为了证明它包括Maltab编译器.

I ran the ver command in my matlab and am showing the partial output, just to prove it includes Maltab Compiler.

    Image Processing Toolbox                              Version 8.2            (R2013a)
    Instrument Control Toolbox                            Version 3.3        (R2013a)
    MATLAB Builder JA                                     Version 2.2.6      (R2013a)
    MATLAB Coder                                          Version 2.4        (R2013a)
    MATLAB Compiler                                       Version  4.18.1     (R2013a)
    MATLAB Distributed Computing Server                   Version 6.2        (R2013a)
    MATLAB Report Generator                               Version 3.14       (R2013a)
    Mapping Toolbox                                       Version 3.7        (R2013a)
    Model Predictive Control Toolbo

推荐答案

如果安装了Matlab编译器工具箱,则可以通过Matlab命令行运行mcc.m函数:

If you have the Matlab Compiler toolbox installed, you can either run the mcc.m function through the Matlab command line:

mcc -mv matlabfile.m

或者您可以直接在shell中运行mcc二进制文件:

Or you can run the mcc binary directly in your shell:

/path/to/matlab/bin/mcc -mv matlabfile.m

或者您可以将包含mcc二进制文件的文件夹添加到PATH中,然后运行它:

Or you can add the folder containing the mcc binary to you PATH and then run it:

PATH="$PATH:/path/to/matlab/bin/"
mcc -mv matlabfile.m

这篇关于找不到命令“我的客户中心"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆