爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: ztftom

[原创]搞定Ubuntu: 单机WRF安装

  [复制链接]

新浪微博达人勋

 楼主| 发表于 2011-10-29 08:42:51 | 显示全部楼层

看来mpc是问题所在。可不可以把你安装mpc的时候configure的输出贴出来呢?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2011-10-29 08:43:24 | 显示全部楼层
artmunich 发表于 2011-10-29 01:19
试验了几次,都不知道为什么mpc没有安装成功。。。路漫漫其修远兮

如果可以的话,把make, make check和make install的结果也贴出来。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2011-10-29 11:05:07 | 显示全部楼层
ztftom 发表于 2011-10-29 08:43
如果可以的话,把make, make check和make install的结果也贴出来。

好,待会换成CentOS去的时候就贴结果
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2011-10-30 19:22:22 | 显示全部楼层
坑爹的学校,断网了,交钱后要一天才能上网……
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2011-10-31 21:34:20 | 显示全部楼层
编译模式还是用pgi或者intelfortran比较好,gfortran效率恐怕不如那两个商业编译器。同时也不太推荐用最新版本的linux内核和gcc版本。gcc4.1.2+pgi9.0.4就很好
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2011-10-31 21:40:35 | 显示全部楼层
东风 发表于 2011-10-31 21:34
编译模式还是用pgi或者intelfortran比较好,gfortran效率恐怕不如那两个商业编译器。同时也不太推荐用最新版 ...

你说的对,pgi和intel的编译器效率更高,特别在server上更稳定。这里只是简单说明一下WRF的安装过程。而且在跑一些测试性的case,或者读source code的时候,GNU还是可以用的。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2011-10-31 23:48:41 | 显示全部楼层
下面我分别贴出来mpc的configure,make,make install
东风网友说看起来GNU自己的编译器不是最佳选择啊
=====================configure=======================================
[root@huai mpc-0.9]# ./configure --prefix=/usr/local/mpc-0.9 --with-gmp=/usr/local/gmp-5.0.1 --with-mpfr=/usr/local/mpfr-3.1.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gmp.h... yes
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/fgrep
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... ./configure: line 8413: : supported targets:.* elf: command not found
no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) no
checking complex.h usability... yes
checking complex.h presence... no
configure: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: complex.h: proceeding with the compiler's result
checking for complex.h... yes
checking locale.h usability... yes
checking locale.h presence... no
configure: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: locale.h: proceeding with the compiler's result
checking for locale.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... no
configure: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: limits.h: proceeding with the compiler's result
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... no
configure: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: sys/time.h: proceeding with the compiler's result
checking for sys/time.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for creal in -lm... yes
checking for __gmpz_init in -lgmp... yes
checking for MPFR... yes
checking for recent GMP... yes
checking for recent MPFR... yes
checking for gettimeofday... yes
checking for localeconv... yes
checking for setlocale... yes
checking for dup... yes
checking for dup2... yes
checking for fileno... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
[root@huai mpc-0.9]#
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2011-10-31 23:49:51 | 显示全部楼层
==========================make=================================
[root@huai mpc-0.9]# make
make  all-recursive
make[1]: Entering directory `/home/waynehuai/mpc-0.9'
Making all in src
make[2]: Entering directory `/home/waynehuai/mpc-0.9/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/waynehuai/mpc-0.9/src'
Making all in tests
make[2]: Entering directory `/home/waynehuai/mpc-0.9/tests'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/waynehuai/mpc-0.9/tests'
Making all in doc
make[2]: Entering directory `/home/waynehuai/mpc-0.9/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/waynehuai/mpc-0.9/doc'
make[2]: Entering directory `/home/waynehuai/mpc-0.9'
make[2]: Leaving directory `/home/waynehuai/mpc-0.9'
make[1]: Leaving directory `/home/waynehuai/mpc-0.9'
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2011-10-31 23:50:23 | 显示全部楼层
=======================make install===========================================
[root@huai mpc-0.9]# make install
Making install in src
make[1]: Entering directory `/home/waynehuai/mpc-0.9/src'
make[2]: Entering directory `/home/waynehuai/mpc-0.9/src'
test -z "/usr/local/mpc-0.9/lib" || /bin/mkdir -p "/usr/local/mpc-0.9/lib"
/bin/sh ../libtool   --mode=install /usr/bin/install -c   libmpc.la '/usr/local/mpc-0.9/lib'
libtool: install: /usr/bin/install -c .libs/libmpc.lai /usr/local/mpc-0.9/lib/libmpc.la
libtool: install: /usr/bin/install -c .libs/libmpc.a /usr/local/mpc-0.9/lib/libmpc.a
libtool: install: chmod 644 /usr/local/mpc-0.9/lib/libmpc.a
libtool: install: ranlib /usr/local/mpc-0.9/lib/libmpc.a
libtool: finish: PATH="/usr/bin:/usr/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/sbin" ldconfig -n /usr/local/mpc-0.9/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/mpc-0.9/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/waynehuai/mpc-0.9/src'
make[1]: Leaving directory `/home/waynehuai/mpc-0.9/src'
Making install in tests
make[1]: Entering directory `/home/waynehuai/mpc-0.9/tests'
make[2]: Entering directory `/home/waynehuai/mpc-0.9/tests'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/waynehuai/mpc-0.9/tests'
make[1]: Leaving directory `/home/waynehuai/mpc-0.9/tests'
Making install in doc
make[1]: Entering directory `/home/waynehuai/mpc-0.9/doc'
make[2]: Entering directory `/home/waynehuai/mpc-0.9/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/mpc-0.9/share/info" || /bin/mkdir -p "/usr/local/mpc-0.9/share/info"
/usr/bin/install -c -m 644 ./mpc.info '/usr/local/mpc-0.9/share/info'
install-info --info-dir='/usr/local/mpc-0.9/share/info' '/usr/local/mpc-0.9/share/info/mpc.info'
make[2]: Leaving directory `/home/waynehuai/mpc-0.9/doc'
make[1]: Leaving directory `/home/waynehuai/mpc-0.9/doc'
make[1]: Entering directory `/home/waynehuai/mpc-0.9'
make[2]: Entering directory `/home/waynehuai/mpc-0.9'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/mpc-0.9/include" || /bin/mkdir -p "/usr/local/mpc-0.9/include"
/usr/bin/install -c -m 644 src/mpc.h '/usr/local/mpc-0.9/include'
make[2]: Leaving directory `/home/waynehuai/mpc-0.9'
make[1]: Leaving directory `/home/waynehuai/mpc-0.9'
[root@huai mpc-0.9]#
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2011-10-31 23:53:47 | 显示全部楼层
这次装还是没有成功,看起来是在configure的时候出现warning了,不知是不是因此导致的?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表