From: ubuntu21 T on 13 May 2010 14:42 The following solution works well on my Ubuntu 10.04 x86 (32bit), tested on both Matlab R2010a and R2008b (the linux versions) + gcc-4.1 After installation, MATLAB worked out-of-the-box for me, except Simuink/"Embedded MATLAB Function", which I use a lot to run my simulations. I got all sort of errors and eventually came up with the following simple solution. The problem, as mentioned throughout all this topic is that gcc-4.4 coming with Ubuntu 10.04 is unsupported by latest matlab version (R2010a). Ok, so let us simply install a version of gcc that is supported and make the proper link towards it: Step1) one has to uncomment "multiverse" and "universe" repositories in /etc/apt/sources.list by removing the # sign before each repo, so that we may gain acces to some needed software (like gcc4.1): $sudo vi /etc/apt/sources.list <- and there remove # before all "multiverse" and "universe" repos $sudo apt-get update Step2) Since apparently gcc4.2 is not offered by default (or at least at this date), no problem, just go for gcc4.1 which is highly robust to do the job: $sudo apt-get install gcc-4.1 gcc-4.1-multilib libstdc++6-4.1-dev Step3) The trick is that by actually installing gcc-4.1, the install procedure will not also change the default symbolic link from /usr/bin/gcc -> /usr/bin/gcc-4.4 , so we will have to do it manually: $sudo cd /usr/bin/ $sudo ln -s gcc-4.1 gcc And now just verify the link was properly done: $sudo ls -la|grep gcc And one should get something like this (copy-pasted from my console) lrwxrwxrwx 1 root root 7 2010-05-09 14:59 gcc -> gcc-4.1 That's all. For me it works all very well. Good luck.
|
Pages: 1 Prev: Simulink control design operating point Next: Clustered Bar Chart with Sub-Categories |