From: margareta on 22 Feb 2010 01:08 I am trying to run matlab 7.7 (R2008b) on my ubuntu 9.10 distribution..the thing is that I am totally new with both matlab and linux and I get the following error message from matlab when I try to run an example mex-function: >> mex yprime.c /home/margareta/Desktop/matlab/bin/mex: 1572: gcc: Permission denied Warning: You are using gcc version "". The earliest gcc version supported with mex is "4.0.0". The latest version tested for use with mex is "4.2.0". To download a different version of gcc, visit http://gcc.gnu.org eval: 1: gcc: Permission denied mex: compile of ' "yprime.c"' failed. ??? Error using ==> mex at 213 I had gcc-4.4 as default on my pc, so after this error I downloaded an older version (gcc-4.1) and removed with rm the symbolic link in /usr/bin pointing to gcc-4.4 and created a new one pointing to gcc-4.1. Now when I type gcc -v in the terminal it says that gcc is in the packages gcc and pentium-builder, suggesting to do an apt-get install. I tried that but than it says that gcc-4.1 is already the newest version. Can anyone help me please? It seems that I have multiple versions of gcc installed but neither the terminal nor matlab can find them. What did I wrong? and HOW can I solve it???
|
Pages: 1 Prev: Execute an m file from the command line Next: Installing toolbox |