Prev: Clustered Bar Chart with Sub-Categories
Next: Physics
From: ubuntu21 T on 13 May 2010 15:08 "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message .... > On a 64 bit Linux machine using 2010a and GCC 4.4.1 this yields to the message: > cc1: error: unrecognized command line option "-std=C99" > > In addition the MEX command suggests: > Warning: You are using gcc version "4.4.1-4ubuntu9)". The version > currently supported with MEX is "4.2.3". So why don't you just install any gcc version that is supported by matlab, just as indicated in the last line ?! 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 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: Clustered Bar Chart with Sub-Categories Next: Physics |