在Mac m2系统下安装InSAR软件isce2

在mac上一直装不上isce,感谢lijun99的帮助,终于装上了,这是他的isce安装流程:Mac isce2安装

我下面照搬了一下他的流程,只是最后的编译的地方有所修改,主要是mdx不要安装,就可以编译成功。再次感谢lijun99的帮助。

  1. 安装xcode

    sudo rm -rf /Library/Developer/CommandLineTools/
    xcode-select --install

  2. 将conda改为mamba因为安装软件包速度更快

    复制代码
    ~/miniconda3/bin/conda install mamba
    ~/miniconda3/bin/mamba init zsh # or bash 
    source ~/.zshrc # not needed when you open a new Terminal 
  3. 安装gfortran

    复制代码
     brew install gfortran
     /opt/homebrew/bin/gfortran --version # check 

4.创建isce2环境

复制代码
mamba create -n isce2
mamba activate isce2

5.mdx先不装,可能装了,后面编译不上isce2

复制代码
    brew install openmotif
    brew uninstall openmotif

6.安装isce2对应的软件包

复制代码
mamba install git cmake cython gdal h5py libgdal pytest numpy fftw scipy pybind11 shapely
pip install opencv-python

7.制作一个路径使安装更简单,也可以不需要

复制代码
(isce2) wangxin@wangxindeMac-mini raw %    echo $CONDA_PREFIX 
/Users/wangxin/.local/share/mamba/envs/isce2

   ln -sf `python3 -c 'import site; print(site.getsitepackages()[0])'` $CONDA_PREFIX/packages

8.下载isce2软件

复制代码
    git clone https://github.com/isce-framework/isce2.git

9.安装软件

复制代码
    cd isce2
    mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
  -DCMAKE_PREFIX_PATH=${CONDA_PREFIX} \
  -DCMAKE_Fortran_COMPILER="/opt/homebrew/bin/gfortran-14"

10.配置环境

如果您按照上述步骤操作,ISCE2软件包将安装到$CONDA_PREFIX/packages/isce2。您只需要添加堆叠应用程序的路径,这是我的对应路径

复制代码
 83 
 84 #isce2
 85 export ISCE_HOME="/Users/wangxin/.local/share/mamba/envs/isce2/packages/isce"
 86 export PATH="$ISCE_HOME/applications:$PATH"
 87 
  1. 第二种编译,编译到isce2软件里

如果你的isce2 下载到这个地方

复制代码
/Users/wangxin/Softwares/isce2

你也可以编译到这里

复制代码
cmake .. -DCMAKE_INSTALL_PREFIX=/Users/wangxin/Softwares/isce2 \
  -DCMAKE_PREFIX_PATH=${CONDA_PREFIX} \
  -DCMAKE_Fortran_COMPILER="/opt/homebrew/bin/gfortran-14"

make -j

make install

环境配置

复制代码
 83 
 84 #isce2
 85 export ISCE_HOME="/Users/wangxin/Softwares/isce2/packages/isce"
 86 export PATH="$ISCE_HOME/applications:$PATH"
 87 

12.验证安装成功

输入以下命令

复制代码
topsApp.py --steps --help

topsApp.py -h

dem.py

参考网站

https://github.com/lijun99/isce2-install

https://github.com/isce-framework/isce2

相关推荐
猫头虎1 天前
如何解决 OpenClaw “Pairing required” 报错:两种官方解决方案详解
网络·windows·网络协议·macos·智能路由器·pip·scipy
皮卡车厘子2 天前
Mac 挂载目录
macos
良逍Ai出海2 天前
在 Windows & macOS 上安装 Claude Code,并使用第三方 Key 的完整教程
windows·macos
热爱生活的五柒2 天前
linux/mac/wsl如何使用claude code,并配置免费的硅基流动API?(官方的需要付费订阅)
linux·运维·macos
胖胖大王叫我来巡山2 天前
mac本地安装DataEase桌面版
macos
奋斗者1号2 天前
OpenClaw 部署方式对比:云端、WSL、Mac 本机、Ubuntu 虚拟机(2026年2月最新主流实践)
linux·ubuntu·macos
玉梅小洋2 天前
Android SDK 安装指南(MacOS 和 Windows)
android·windows·macos·sdk
2501_916007472 天前
没有 Mac 用户如何上架 App Store,IPA生成、证书与描述文件管理、跨平台上传
android·macos·ios·小程序·uni-app·iphone·webview
胖胖大王叫我来巡山2 天前
Mac通过源码安装部署SQLBOT
macos
June bug3 天前
【领域知识】广告全链路测试
macos·objective-c·cocoa