爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: ztftom

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

  [复制链接]
发表于 2011-11-1 01:14:13 | 显示全部楼层
没找到,mpc确实没有安装成功。
至于那个路径,我没有按照默认的安装,都是在/usr/local下新建的,为了保险起见,所以我加上了gmp和mpfr的路径。
密码修改失败请联系微信:mofangbao
发表于 2011-11-1 01:15:09 | 显示全部楼层
刚刚找了个pgi,装成功了
然后再装netcdf的时候出现这个提示代表什么呀
checking whether netCDF-4 logging is enabled... no
checking whether cdmremote client is to be built... no
checking whether DAP client is to be built... yes
checking whether a path for curl-config was specified... no
checking whether a location for curl installation was specified... no
checking checking whether a location for curl-config found... no
configure: error: Cannot locate neither curl-config or a curl directory
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-11-1 09:38:38 | 显示全部楼层

哪个编译器的好坏主要是针对在server上的,特别是并行处理的情况。pgi和intel的编译器专门对这种情况进行过优化,所以会比较高效稳定。如果是单核pc的话,差别不大。
icc + ifort下的wrf的安装会比较麻烦。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-11-1 09:40:20 | 显示全部楼层
artmunich 发表于 2011-11-1 01:15
刚刚找了个pgi,装成功了
然后再装netcdf的时候出现这个提示代表什么呀
checking whether netCDF-4 loggi ...

你的电脑里没有curl的lib,不能安装dap,不用就可以了。在帖子里面写的有。
密码修改失败请联系微信:mofangbao
发表于 2011-11-1 21:44:21 | 显示全部楼层
ztftom ,实在太伟大了,我看得脖子疼。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-11-1 21:53:32 | 显示全部楼层
baiduwenku 发表于 2011-11-1 21:44
ztftom ,实在太伟大了,我看得脖子疼。

你可以叫我Tom. 你是看帖子呢,还是看各种回复?帖子不长,回复有点长。。。
密码修改失败请联系微信:mofangbao
发表于 2011-11-2 02:17:18 | 显示全部楼层
大侠,make check的时候,提醒的是:
tst_f90.o  tst_f90.f90
/bin/sh ../libtool --tag=FC   --mode=link pgf90  -I../fortran -I../f90 -I../f90 -I../include -I../liblib  -g   -o tst_f90 tst_f90.o ../fortran/libnetcdff.la -lm ../liblib/libnetcdf.la  
libtool: link: pgf90 -I../fortran -I../f90 -I../f90 -I../include -I../liblib -g -o .libs/tst_f90 tst_f90.o  ../fortran/.libs/libnetcdff.so -lm ../liblib/.libs/libnetcdf.so -Wl,-rpath -Wl,/usr/local/netcdf/lib
tst_f90.o:(.debug_info+0x138c): undefined reference to `..Dm_typesizes'
tst_f90.o:(.debug_info+0x1399): undefined reference to `..Dm_netcdf'
make[2]: *** [tst_f90] 错误 2
make[2]: Leaving directory `/home/waynehuai/netcdf/netcdf-4.1.2/nf_test'
make[1]: *** [check-am] 错误 2
make[1]: Leaving directory `/home/waynehuai/netcdf/netcdf-4.1.2/nf_test'
make: *** [check-recursive] 错误 1

如果忽略这里的错误强制make install,结果会是:
Making install in cxx
make[1]: Entering directory `/home/waynehuai/netcdf/netcdf-4.1.2/cxx'
make[2]: Entering directory `/home/waynehuai/netcdf/netcdf-4.1.2/cxx'
test -z "/usr/local/netcdf/lib" || /bin/mkdir -p "/usr/local/netcdf/lib"
/bin/sh ../libtool   --mode=install /usr/bin/install -c   libnetcdf_c++.la '/usr/local/netcdf/lib'
libtool: install: /usr/bin/install -c .libs/libnetcdf_c++.so.4.1.0 /usr/local/netcdf/lib/libnetcdf_c++.so.4.1.0
/usr/bin/install: cannot stat `.libs/libnetcdf_c++.so.4.1.0': No such file or directory
make[2]: *** [install-libLTLIBRARIES] 错误 1
make[2]: Leaving directory `/home/waynehuai/netcdf/netcdf-4.1.2/cxx'
make[1]: *** [install-am] 错误 2
make[1]: Leaving directory `/home/waynehuai/netcdf/netcdf-4.1.2/cxx'
make: *** [install-recursive] 错误 1

好像是少了一个库的问题,libnetcdfc++是什么,大侠指教一二,多谢了
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2011-11-2 14:36:49 | 显示全部楼层
libnetcdf_c++ 是在你编译过程中应该会产生的一个文件(shared lib)。这个文件没有生成。我刚查到这个,也没有给出解决方案。

Portland Group compilers can't build shared fortran 90 library or shared C++ library

The portland group compilers can't build netCDF shared fortran 90 library. They fail with this error:

pgf90  -I../fortran -I../f90      -I../libsrc -I../fortran   -I../f90
-g -c -o tst_f90.o tst_f90.f90
/bin/sh ../libtool   --mode=link pgf90  -I../fortran -I../f90 --
                     ---I../libsrc -I../fortran   -I../f90 -g -L/lib --
                     ---o tst_f90 tst_f90.o ../fortran/libnetcdff.la --
                     ---lm     ../libsrc/libnetcdf.la  
libtool: link: pgf90 -I../fortran -I../f90 -I../libsrc -I../fortran
-I../f90 -g -o .libs/tst_f90 tst_f90.o  -L/lib
../fortran/.libs/libnetcdff.so -lm ../libsrc/.libs/libnetcdf.so
-Wl,-rpath
-Wl,/machine/netcdf/n362_test_9456/netcdf-3.6.3-snapshot2008081305/install/lib
tst_f90.o:(.debug_info+0x135d): undefined reference to
`..Dm_typesizes'
tst_f90.o:(.debug_info+0x136e): undefined reference to `..Dm_netcdf'

If anyone could shed some light on this, it would be most appreciated. Send comments to support-netcdf@unidata.ucar.edu.

The C++ compiler chokes on the netCDF C++ tests on a shared build:

       pgCC -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../libdap
       -I../libsrc   -g -c -o tst_failure.o tst_failure.cpp
/bin/sh ../libtool --tag=CXX   --mode=link pgCC  -g     -o tst_failure
       tst_failure.o ../cxx/libnetcdf_c++.la  ../libsrc/libnetcdf.la
libtool: link: pgCC -g -o .libs/tst_failure tst_failure.o
       ../cxx/.libs/libnetcdf_c++.so ../libsrc/.libs/libnetcdf.so
       -Wl,--rpath -Wl,/usr/local/lib
make[2]: Leaving directory `/machine/shecky/n4_new2/cxx'
make  check-TESTS
make[2]: Entering directory `/machine/shecky/n4_new2/cxx'
C++ runtime abort: internal error: static object marked for
       destruction more than once
/bin/sh: line 4:  8445 Aborted                 ${dir}$tst
FAIL: nctst
C++ runtime abort: internal error: static object marked for
       destruction more than once
/bin/sh: line 4:  8468 Aborted                 ${dir}$tst
XFAIL: tst_failure

密码修改失败请联系微信:mofangbao
发表于 2011-11-11 10:08:34 | 显示全部楼层
凑热闹,现在还不大懂,不过早晚用的到,支持~!!
密码修改失败请联系微信:mofangbao
发表于 2011-11-12 10:24:08 | 显示全部楼层
谢谢,路过看看
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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