王国杰的博客分享 http://blog.sciencenet.cn/u/gwangcc Be Silly

博文

a script for installing Grads on Linux

已有 3743 次阅读 2012-9-13 22:27 |系统分类:科研笔记| Linux

#!/bin/bash
#
# Script that install GrADS, version 1.9b4
#
# By P', july/2008

# some variables
gradspack="ftp://cola.gmu.edu/grads/1.9/grads-1.9b4-linuxRH7.1.tar.gz"
datapack="ftp://cola.gmu.edu/grads/data.tar.Z"

DIR=$PWD
mkdir -p grads/data
cd $DIR/grads/data
wget -c $datapack
tar zxf data.tar.Z
cd $DIR/grads
wget -c $gradspack
tar zxf "grads-1.9b4-linuxRH7.1.tar.gz"
ln -s grads-1.9b4/bin
cd $DIR/grads/bin
ln -s gradsc grads
cd $DIR
echo >> ~/.bashrc
echo '# Configuration performed by grads-inst.sh' >> ~/.bashrc
echo 'export PATH='$DIR'/grads/bin:$PATH' >> ~/.bashrc
echo 'export GADDIR='$DIR'/grads/data' >> ~/.bashrc
echo 'export GASCRP='$DIR'/grads/lib' >> ~/.bashrc

echo
echo "IMPORTANT: please CLOSE and REOPEN all terminal windows!"
echo

https://blog.sciencenet.cn/blog-569118-612493.html

上一篇:Install NCO on CentOS
下一篇:科学网的字体怎么设置的,怎么一堆乱码?
收藏 IP: 77.250.100.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-9-3 09:20

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部