登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 空谷幽竹 于 2018-4-28 11:45 编辑
终于装上了VAPOR,总结一下,方便他人参考
(1)下载预编译版https://www.vapor.ucar.edu/docs/vapor-installation/vapor-unix-binary-installation
(2)解压安装
gunzip vapor-2.0.0-Linux_x86_64.tar.gz
tar xf vapor-2.0.0-Linux_x86_64.tar cd vapor-2.0.0-Linux_x86_64 ./vapor-install.csh some/location (3)设置环境变量(关键一步) 在~/.bashrc中添加下行: . vapor_home/bin/vapor-setup.sh source 一下,出现如下warning
######################## WARNING ##############################
The LD_LIBRARY_PATH environment variable is set. Some VAPOR applications may fail to run correctly. To un-set LD_LIBRARY_PATH execute: unset LD_LIBRARY_PATH
######################## WARNING ############################ 查看vapor-set.sh可知, 在~/.bashrc中运行vapor-setup.sh之前已经设置了LD_LIBRARY_PATH的环境vapor-setup.sh变量。修该 将vapor-setup.sh中的这段注释掉 if [ ! -z "$LD_LIBRARY_PATH" ] then echo "######################## WARNING ##############################" echo "" echo "The LD_LIBRARY_PATH environment variable is set." echo "Some VAPOR applications may fail to run correctly." echo "To un-set LD_LIBRARY_PATH execute: unset LD_LIBRARY_PATH" echo "" echo "######################## WARNING ##############################"
fi 并在后面修改为: if [ -x "${LD_LIBRARY_PATH}" ] then LD_LIBRARY_PATH="$VAPOR_HOME/lib"; export LD_LIBRARY_PATH else LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$VAPOR_HOME/lib"; export LD_LIBRARY_PATH
fi 另外由于安装VAPOR时候安装bin目录下同时给安装了python,所以增加将下面这段修改为 if [ -z "${PATH}" ] then PATH="$bindir"; export PATH else PATH="$PATH:$bindir"; export PATH
fi
这样保证which python的时候不使用vapor的python,仍然使用之前的Python。 终端vaporgui 出现界面,成功! |