Supplement: run MMS 1.2.1 beta on Ubuntu Dapper

This is a supplement for the previous howto.
http://wlxblog.westgis.ac.cn/215/
1. modify setup file, diff with the old one:

1c1
< #!/bin/ksh --- > #!/bin/sh
18c18
< FC=f77 --- > FC=gfortran
57c57
< XINCPATH=/usr/include/X11 ; check_x_inc_path=yes --- > XINCPATH=/usr/include ; check_x_inc_path=yes
65c65
< GRASSLIBPATH=/usr/local/lib ; check_grass_path_path=yes --- > GRASSLIBPATH=/usr/lib ; check_grass_path_path=yes
193c193
< FORTRANLIBS="-L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -lm -lg2c" --- > FORTRANLIBS=”-lgfortran -lgcc”
195c195
< FORTRAN_FLAGS="-Wall -Wimplicit -fno-second-underscore" --- > FORTRAN_FLAGS=”-Wall -fno-second-underscore”
197,199c197,199
< XLIBPATH=/usr/X11R6/lib ; check_x_lib_path=yes < XTLIBPATH=/usr/X11R6/lib ; check_xt_lib_path=yes < XMLIBPATH=/usr/X11R6/lib ; check_xm_lib_path=yes --- > XLIBPATH=/usr/lib ; check_x_lib_path=yes
> XTLIBPATH=/usr/lib ; check_xt_lib_path=yes
> XMLIBPATH=/usr/lib ; check_xm_lib_path=yes

2. modify mms/src/Xbae/src/Input.c, diff with the old one:

701c701,703
< (void)fprintf(stderr, "Mismatched parentheses\n"); --- > /* (void)fprintf(stderr, “Mismatched

3. modify mms/src/pdraw/plotps.c, diff with the old one:
7a8
> double find_angle();

4. my compiler environment:

$ gfortran –version
GNU Fortran 95 (GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5))
Copyright (C) 2006 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

$ gcc –version
gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

5. make a working directory, and run mms_workspace in that directory. if you have not specify the mms/bin in your path, you must use the full path to run the command.

6. run command control/setmms.ksh with a dot before it:

. control/setmms.ksh

and you can add mms/bin in the path variable in this file.

7. run xmbuild


已发布

分类

,

来自

标签:

评论

《“Supplement: run MMS 1.2.1 beta on Ubuntu Dapper”》 有 1 条评论

  1. 再看MMS的安装…

    还是利用MMS的1.2.1beta版本。
    不过发现上次的修改中有一些错误,这次再次进行了修正。
    首先系统中要安装有下列软件,其中ksh不是必须的,但MMS默认的都是用的这个shell,懒得修改脚本了。
    s…

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注