フィルターのクリア

I cannot install mex compiler in ubuntu

5 ビュー (過去 30 日間)
Gun-min Kim
Gun-min Kim 2012 年 8 月 1 日
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 !

回答 (1 件)

Jason Ross
Jason Ross 2012 年 8 月 1 日
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.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by