爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: 酒池墨林

WPS安装问题:undefined reference to `_gfortran_stop_numeric'

[复制链接]
发表于 2012-11-19 14:29:42 | 显示全部楼层

configure.wps

# This file was automatically generated by the configure script in the
# top level directory. You may make changes to the settings in this
# file but be aware they will be overwritten each time you run configure.
# Ordinarily, it is necessary to run configure once, when the code is
# first installed.
#
# To permanently change options, change the settings for your platform
# in the file arch/configure.defaults, the preamble, and the postamble -
# then rerun configure.
#

.SUFFIXES: .F .f .c .o

SHELL                   =       /bin/sh

COMPRESSION_LIBS        =

COMPRESSION_INC                =

NCARG_LIBS                =        -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c \
                                -L/usr/X11R6/lib -lX11

NCARG_LIBS2                =       -L${PGI}/linux86-64/5.2/lib -lpgftnrtl -lpgc \
                                -L/usr/lib64 -lg2c
                                -L/usr/lib/gcc/x86_64-redhat-linux/4.4.6 -lgfortran


FDEFS                        =        -DUSE_JPEG2000 -DUSE_PNG
密码修改失败请联系微信:mofangbao
发表于 2012-11-19 20:22:39 | 显示全部楼层
我只是以为你的ncl预编译版本有问题。。。
LIBS2的-lgfortran是你自己加的吗,拿到LIBS里面试试。
密码修改失败请联系微信:mofangbao
发表于 2013-9-24 22:42:55 | 显示全部楼层
请问楼主的问题解决了么
密码修改失败请联系微信:mofangbao
发表于 2013-10-7 15:01:10 | 显示全部楼层
我也是在fedora14和centos中安装的,遇到同样的问题。不过不影响运行。WRF能转。就是没有这两个组件。
密码修改失败请联系微信:mofangbao
发表于 2017-8-19 14:30:26 | 显示全部楼层
cpcldr.f:(.text+0x530): undefined reference to `_gfortran_concat_string',等错误,是没有链接gfortran库文件。
cro.c:(.text+0x107c): undefined reference to `cairo_move_to' ,等错误,是没有链接cairo库文件。
这样,还会有错误,需再添加库文件pixman-1。

若原始链接为
NCARG_LIBS  = -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c \
    -L/usr/X11R6/lib -lX11
改为:
NCARG_LIBS  = -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c -lgfortran \
    -L/vol-th/software/cairo11216/lib -lcairo \
    -L/vol-th/software/pixman0302/lib -lpixman-1 \
    -L/usr/X11R6/lib -lX11
其中/vol-th/software/cairo11216/lib 是自己cairo的目录,没有则需要安装软件cairo;
其中/vol-th/software/pixman0302/lib 是自己pixman的目录,没有则需要安装软件pixman。


这样,应该就能编译出plotgrids.exe,plotfmt.exe.
不过,用util目录下的plotgrids.ncl脚本,也能画计算域。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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