mac 独立安装 GCC 解决 <omp.h> 缺失问题
2014-12-21 16:02
295 查看
在 mex 文件当中,如果引用 #include <omp.h> 在 mac 会出现这个错误,因为 MAC 没有使用 GCC 而 使用 clang
fatal error: 'omp.h' file not found
1》 安装 GCC
下载地址: http://hpc.sourceforge.net/
gunzip gcc-4.9-bin.tar.gz
sudo
tar -xvf gcc-4.9-bin.tar -C /
vim
~/.bash_profile
添加这行文字就可以了:
export PATH=/usr/local/bin:$PATH
默认在 /usr/local/bin/gcc /usr/local/bin/g++
2> 修改 matlab 配置文件:
同样修改 CXX:
保存就可以了。
安装 GCC:
http://blog.csdn.net/sbvfhp/article/details/8075532
修改配置:
http://stackoverflow.com/questions/20340117/omp-h-library-isnt-found-in-the-gcc-version-4-2-1-in-mavericks
fatal error: 'omp.h' file not found
1》 安装 GCC
下载地址: http://hpc.sourceforge.net/
gunzip gcc-4.9-bin.tar.gz
sudo
tar -xvf gcc-4.9-bin.tar -C /
vim
~/.bash_profile
添加这行文字就可以了:
export PATH=/usr/local/bin:$PATH
默认在 /usr/local/bin/gcc /usr/local/bin/g++
2> 修改 matlab 配置文件:
同样修改 CXX:
保存就可以了。
安装 GCC:
http://blog.csdn.net/sbvfhp/article/details/8075532
修改配置:
http://stackoverflow.com/questions/20340117/omp-h-library-isnt-found-in-the-gcc-version-4-2-1-in-mavericks
相关文章推荐
- 解决"友盟微信跳转提示<您的设备未安装微信>"的问题
- cloudemanager安装时出现ProtocolError: <ProtocolError for 127.0.0.1/RPC2: 401 Unauthorized>问题解决方法(图文详解)
- cygwin安装问题“unable to get setup.ini from<....>”的解决办法
- 安装fc17后,mysql启动错误问题解决&lt;转&gt;
- 待解决问题:验证视图状态 MAC 失败。如果此应用程序由网络场或群集承载,请确保 <machineKey> 配置指定了相同的 validationKey 和验证算法。不能在群集中使用 AutoGenerate
- VM8.0下安装遇到了问题“windows cannot read the<product key> setting from the unattend answer file”解决方法
- VM8.0下安装遇到了问题“windows cannot read the<product key> setting from the unattend answer file”解决方法
- 完美解决邮件中excel乱码问题<mac 附件乱码>
- Fedora8安装VMware-tools 解决gcc和kernel缺失的问题
- 解决用<img src="<%# Eval("ShowPhoto")%>"动态绑定图片,发布到IIS上无法显示的问题
- 数据库死锁问题 及 解决方法 <收藏>
- 简单解决Linq多条件组合问题<转>
- 解决用<img src="<%# Eval("ShowPhoto")%>"动态绑定图片,发布到IIS上无法显示的问题
- DataRow[]、List<DataRow>无法绑定到GridView的问题解决!
- buffer overflow detected问题解决及gcc-4.1安装
- <配置> Ubuntu gcc 安装 使用方法
- VMWARE 7.14 ON LINUX KERNEL >=2.6.39 安装问题解决
- “无法更新EntitySet“*****”,因为它有一个DefiningQuery,而<ModificationFunctionMapping>元素中没有支持当前操作的<InsertFunction>元素”问题的解决方法
- 安装GCC-4.1.1,问题解决
- RedHat9下安装gcc时可能遇到的问题及解决