记录程序人生
环境:linux 我用的是 ubuntu 16.04
之前写过一篇关于Seismic unix的安装教程,需要联网才能安装,但是有的时候在工作站上安装时是无法联网的
具体步骤:
1 . 下载Seismic unix安装包
// Download the seismic unix
链接: https://pan.baidu.com/s/1pEN27rycB_iA5kNneWf3mA 提取码: 1wsg
得到 cwp_su_all_41R3.tar.gz,然后用tar -zxvf cwp_su_all_41R3.tar.gz进行解压。
2 . 到计算机的根目录
// back to source location
cd
3 . 查看shell类型:
// check the shell
echo $0
// 出现bash表示bshell类型、出现csh表示cshell类型
(通常ubuntu、redhat为bshell类型,但是也有可能遇到cshell类型)
4 . 设置环境变量
(1) 对于bshell类型
// if bshell
sudo gedit ~/.bashrc
// 在末尾处添加如下代码(其中 /home/yourname/su为解压的路径)
export CWPROOT=/home/yourname/su
export PATH=$PATH:/home/yourname/su/bin
(2) 对于cshell类型
// if bshell
sudo gedit ~/.cshrc
// 在末尾处添加如下代码(其中 /home/yourname/su为解压的路径)
setenv CWPROOT /home/yourname/su
Set path=(/home/yourname/su/bin ~/bin /usr/bin /bin)
激活环境变量
sudo source ~/.bashrc
// or
sudo source ~/.cshrc
5 . 测试是否成功
执行 suplane|suxwigb & 出现下图的效果表示安装成功
Reference
http://blog.sina.com.cn/s/blog_bc30193d0101a971.html