|
cwp_su是seismic unix下的一个命令行地震处理系统,使用起来很方便的,我的安装如下:
1。先到http://gcmd.nasa.gov/records/CWP ... ome/download/cwp_su
2。我的系统是纯64位的,LC_ALL是zh_CN.utf8,要确保gcc带上了fortran的USE,另外要emerge openmotif
3。vi $HOME/.bashrc
加上
export DOWNLOAD=/home/download
export CWPROOT=$DOWNLOAD/cwp_su
export PATH=$PATH CWPROOT/bin
保存后重开一个终端,env确保这些环境变量已经上来了
4。cd $DOWNLOAD/cwp_su/src
vi Makefile.config
找到
# Default for Linux and other GCC installs (most likely FreeBSD and Mac OS X)
# with g77
OPTF = -O -static -mcpu=i686 -fno-globals -fno-automatic -fno-second-underscore
# use this one for gfortran
#OPTF = -O -static -mcpu=i686 -fno-automatic -fno-second-underscore
改成
# Default for Linux and other GCC installs (most likely FreeBSD and Mac OS X)
# with g77
#OPTF = -O -static -mcpu=i686 -fno-globals -fno-automatic -fno-second-underscore
# use this one for gfortran
OPTF = -O -static -fno-automatic -fno-second-underscore
注意64位系统去掉-mcpu=i686
找到
# GNU fortran compiler (Linux systems)
FC = g77
# GNU fortran compiler (Linux systems Fedora Core 5)
#FC = gfortran
改成
# GNU fortran compiler (Linux systems)
#FC = g77
# GNU fortran compiler (Linux systems Fedora Core 5)
FC = gfortran
5。编辑开始
make install
make xtinstall
LC_ALL="C" make finstall
make mglinstall
make xminstall
中文环境注意加上LC_ALL="C",没加上我的编辑不通过,错误好象是(记得不清楚)
Fortran/Triso/trisubs.f 2037) error_printf 内部错误error.c:484
6。一切OK |
|