MacOS安装gprMax教程

原文发布于:https://blog.zhaoxuan.site/archives/19.html;
第一时间获取最新文章请关注博客个人站:https://blog.zhaoxuan.site

1. gprMax介绍

gprMax是为模拟地面穿透雷达(GPR)而设计的模拟电磁波传播的开源软件。

2. 安装过程

2.1.1 初始化gprMax的Python运行环境

$ conda update conda
$ conda install git
$ git clone https://github.com/gprMax/gprMax.git
$ cd gprMax
$ conda env create -f conda_env.ym

2.2.2 安装gcc

$ brew install gcc
(过程中可能提示需要使用“xcode-select --install”命令安装Xcode命令行工具,根据提示安装即可。)

2.2.2 安装gprMax

(gprMax)$ python setup.py build
(gprMax)$ python setup.py install

3. 常见问题

3.1 #include <_stdio.h> … :

问题描述:

/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current/gcc/aarch64-apple-darwin22/12/include-fixed/limits.h:203:75: error: no include path in which to search for limits.h
  203 | #include_next <limits.h>                /* recurse down to the real one */
      |                                                                           ^
In file included from /Users/Xuan/miniconda3/envs/gprMax/include/python3.10/Python.h:25:
/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/current/gcc/aarch64-apple-darwin22/12/include-fixed/stdio.h:78:10: fatal error:_stdio.h: No such file or directory
   78 | #include <_stdio.h>
      |          ^~~~~~~~~~
compilation terminated.

解决方案: 安装Xcode命令行工具。

4. 参考

Getting Started — gprMax User Guide

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

@realXuan

请博主喝一杯茶吧~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值