CPS 安装

将安装包解压

将解压后的文件移动到指定的CPS安装目录

mkdir -p ~/src/
mv PROGRAMS.330 ~/src/CPS

安装依赖环境

sudo yum install libX11-devel

配置

进入源码目录

cd ~/src/CPS
./Setup LINUX6440

编译

./C

修改环境变量

echo '# CPS computer programme of seismology' >> ~/.bashrc
echo 'export PATH=${HOME}/src/CPS/bin:${PATH}' >> ~/.bashrc
source ~/.bashrc

测试

sdisp96 -h

参考

https://seismo-learn.org/software/cps/install/