I cannot install mex compiler in ubuntu

6 views (last 30 days)
Gun-min Kim
Gun-min Kim on 1 Aug 2012
Hi ! I am using MATLAB on ubuntu 12.04 LTS. Actually I am trying to use GPUmat.
(1) When I type 'GPUstart' in MATLAB Command window, it shows following error message.
Starting GPU
- GPUmat version : 0.280
- Required CUDA version : 4.2
Unable to run TEST MEX file.
(2) So I try to install mex compiler on ubuntu. By typing mex -setup, and it shows following message. The options files available for mex are:
1: /usr/local/MATLAB/R2012a/bin/mexopts.sh :
Template Options file for building gcc MEX-files
0: Exit with no changes
Enter the number of the compiler (0-1):
(3) I though that there is no proper GNU compiler installed on my ubuntu.But I confirmed my gcc, g++ version as 4.6 by tyiping 'gcc -dumpversion' and 'g++ -dumpversion' on the terminal.
My question is..
What else I should install for GPUmat start to work ?
I really appreciate your help. Thank you !

Answers (1)

Jason Ross
Jason Ross on 1 Aug 2012
First, find out the version of gcc you need to have installed:
That link is for R2012a, look at the "System Requirements and Supported Compilers Archive" link if you have an earlier version.
Then install the required compiler using "aptitude install gcc-4.4", or from the software installer. If Ubuntu doesn't allow that command directly, you may need to look up techniques for installing an older gcc with a new one on the same machine.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!