PDA

View Full Version : problem with matlab on ubuntu 12.04



michal11
October 13th, 2014, 03:07 PM
i must united library EhterLab and Matlab 2012b and i follow instructions :

Regardless whether you install using a package manager or from source
code, the package has to be configured to work with MATLAB .

Start MATLAB, and call setup:
>> run /opt/etherlab/rtw/setup_etherlab.m

and i have little problem with configuration because, one file not found.


run /home/michal/vol/opt/etherlab/src/etherlab-2.1.0/rtw/setup_etherlab.m
http://www.matlab.pl/images/nums/2.pngEtherLAB search directories are already in $MATLABPATH
http://www.matlab.pl/images/nums/3.pngPrecompiling functions in /home/michal/vol/opt/etherlab/src/etherlab-2.1.0/rtw/blocks
http://www.matlab.pl/images/nums/4.png/usr/bin/ld: cannot find -lstdc++
http://www.matlab.pl/images/nums/5.pngcollect2: ld returned 1 exit status
http://www.matlab.pl/images/nums/6.png
http://www.matlab.pl/images/nums/7.png mex: link of ' "world_time.mexa64"' failed.

steeldriver
October 13th, 2014, 04:20 PM
Hello and welcome to the forums

It looks like that particular matlab file is trying to compile some stuff using mex / C++

It's been a while since I played with mex, but at the least you will need a C/C++ development environment installed on your machine - you can do that by installing the build-essential metapackage

There may be other hoops to jump through (such as configuring your matlab installation to recognize the GNU compiler)