Notes for installing ISCE 2.0.0_20160908 (on Ubuntu 16.04 LTS)

转自:https://github.com/dbekaert/isce_notes/tree/master/Ubuntu
Installing single version from scratch

A list of ubuntu packages that need to be installed (if they aren't already):

apt-get install libgmp-dev libmpfr-dev libmpc-dev libc6-dev-i386

ISCE requires Python2 to install and Python3 to run. Use Anaconda Python installations for this:

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh

conda env create -f isce_201609.yml
conda env create -f scons.yml

Download ISCE to location where you want to keep the source code:

wget http://winsar.unavco.org/software/ISCE/isce-2.0.0_20160908.tar.bz2
mv ~/Downloads/isce-2.0.0_20160908.tar.bz2 ~/Software/ISCE
bunzip2 isce-2.0.0_20160908.tar.bz2
tar -xvf isce-2.0.0_20160908.tar

Update ISCE configuration file (here is mine as a template): vi ~/.isce/SConfigISCE

PRJ_SCONS_BUILD=/home/scott/Software/ISCE/isce-2.0.0_20160908/build
PRJ_SCONS_INSTALL=/usr/local/isce-2.0.0_20160908/isce

LIBPATH=/home/scott/miniconda3/envs/isce_201609/lib /usr/lib/x86_64-linux-gnu
CPPPATH=/home/scott/miniconda3/envs/isce_201609/include/python3.5m
FORTRANPATH=/usr/include

FORTRAN=/usr/bin/gfortran
CC=/usr/bin/gcc
CXX=/usr/bin/g++

MOTIFLIBPATH = /usr/lib/x86_64-linux-gnu
X11LIBPATH = /usr/lib/x86_64-linux-gnu
MOTIFINCPATH = /usr/include/Xm
X11INCPATH = /usr/include/X11

Install ISCE with scons (example as root to install to /usr/local)

su
cd isce-2.0.0_20160908
export PYTHONPATH=/home/scott/Software/isce-2.0.0_20160908/configuration
export SCONS_CONFIG_DIR=/home/scott/.isce

source activate scons
scons install

Create an alias in .bashrc to activate Python3 whenever you want to run isce alias start_isce_201609="source activate isce_201609; source ~/.isce/.isceenv_201609" Where .isceenv_201609 contains:

export ISCE_ROOT=/usr/local/isce-2.0.0_20160908
export ISCE_HOME= ISCEROOT/isceexportPATH= I S C E R O O T / i s c e e x p o r t P A T H = ISCE_HOME/bin: ISCEHOME/applications: I S C E H O M E / a p p l i c a t i o n s : PATH
export PYTHONPATH= ISCEROOT: I S C E R O O T : ISCE_HOME/applications:$ISCE_HOME/component

To Run ISCE:

alias start_isce=”source activate isce_201609; source ~/.isce/.isceenv_201609”
insarApp.py –steps

Installing multiple versions / development snapshots

Clone the previous conda environment and update packages (if you want).

conda create –name isce_XXXXX –clone isce_201609
conda update –all

Change the SConfigISCE file

cp ~/.isce/SConfigISCE ~/.isce/SConfigISCE_201609
vi ~/.isce/SConfigISCE
PRJ_SCONS_BUILD=/home/scott/Software/isce-2.0.0_XXXXX/build
PRJ_SCONS_INSTALL=/usr/local/isce-2.0.0_XXXXX/isce
LIBPATH=/home/scott/miniconda3/envs/isce_XXXXX/lib /usr/lib/x86_64-linux-gnu
CPPPATH=/home/scott/miniconda3/envs/isce_XXXXX/include/python3.5m

3) Install with scons as root

su cd /home/scott/Software/isce-2.0.0_XXXXX export PYTHONPATH=/home/scott/Software/isce-2.0.0_XXXXX/configuration export SCONS_CONFIG_DIR=/home/scott/.isce

source activate scons scons install

4) Create a new alias and environment file

alias start_isce_XXXXX=”source activate isce_XXXXX; source ~/.isce/.isceenv_XXXX”`

5) Update the environment file ~/.isce/.isceenv_XXXXX:

export ISCE_ROOT=/usr/local/isce-2.0.0_XXXXX export ISCE_HOME= ISCEROOT/isceexportPATH= I S C E R O O T / i s c e e x p o r t P A T H = ISCE_HOME/bin: ISCEHOME/applications: I S C E H O M E / a p p l i c a t i o n s : PATH export PYTHONPATH= ISCEROOT: I S C E R O O T : ISCE_HOME/applications:$ISCE_HOME/component

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值