error in configure of RIP

The RIP4 graphics package.

error in configure of RIP

Postby pegahfar_naf » Tue Dec 10, 2019 8:37 am

I need RIP to postprocess WRF-NMM outputs.
when I use "./configure", the result is as below
=====================


-----------------------------------------------------------------------
Configuration successful. To build RIP4, type: compile
------------------------------------------------------------------------

Testing compatability of compiler and libraries
COMPILER is gfortran
LOCAL_LIBS are -L/usr/lib64 -lX11 # -L/usr/X11R6/lib64 -lX11
NCARGLIBS are -L${NCARG_ROOT}/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpthread -lbz2 -lXrender -lgfortran -lgcc

The Fortran compiler, gfortran is not consistent with the version of NCAR Graphics.
=======================================
I used "yum install gcc-gfortran"
"yum install netcdf"
"yum install netcdf-devel"
"yum install ncl"
I also modified "configure.default" file (local_libs : -L/usr/lib64 -lx11)

I intensively appreciate if any one help me.
I am not expert in linux.

please help me to solve this problem.
pegahfar_naf
 
Posts: 20
Joined: Sat Sep 29, 2018 9:10 am

Re: error in configure of RIP

Postby dcvz » Sun Dec 15, 2019 8:17 pm

The "not consistent" message means that the simple test program inside of the configure script failed to compile for some reason. The first step is to get ncar graphics working. Make sure $NCARG_ROOT is set to the correct path. Then take a look at $NCARG_ROOT/bin/ncargf90 and see if the paths and compiler are correct. Then try to compile the test program:
program foo
call opngks
call clsgks
end program

using 'ncargf90 testfoo.f'. If it compiles, then make sure the paths in the rip configure are the same as in ncargf90. If it fails, then you need to get ncar graphics working. A failed compile of the test program should give you an error message to work with. See this page for troubleshooting help:
https://www.ncl.ucar.edu/Download/linux.shtml
dcvz
 
Posts: 198
Joined: Tue Apr 15, 2008 12:02 am

Re: error in configure of RIP

Postby pegahfar_naf » Mon Dec 16, 2019 5:37 am

Thank you for your kindly attention.
the result was :
========================================
ncargf90 test.foo.f90
gfortran -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC -fno-second-underscore -fno-range-check -fopenmp test.foo.f90 -L/usr/lib64/ncarg -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2
========================================

please help me how to change the ncargf90.
I am new with ncarg and also I am not exper in linux.

mu ncargf90 is as below:
===================================================


Skip to content
Using Gmail with screen readers
Error checking mail for pegahfar@inio.ac.ir.
Details

Dismiss

Conversations
me
rel2

Attachment:
re2
13:06
2.98 GB (19%) of 15 GB used
Manage
Terms · Privacy · Programme Policies
Last account activity: 4 minutes ago
Currently being used in 1 other location · Details

#!/bin/csh -f
#
# $Id: ncargf77.csh,v 1.41 2010-04-02 17:49:55 haley Exp $
#
# Copyright (C) 2000
# University Corporation for Atmospheric Research
# All Rights Reserved
#
# The use of this Software is governed by a License Agreement.
#

#*********************************************#
# #
# Make sure NCARG_ROOT is set for this script #
# #
#*********************************************#
setenv NCARG_ROOT `ncargpath root`

if ($status != 0) then
exit 1
endif

set syslibdir = "-L/usr/X11R6/lib64"
set xlib = "-lX11 -lXext"
set cairolib = "-lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2"
set fortran = "gfortran"
set loadflags = "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC -fno-second-underscore -fno-range-check -fopenmp "
set libdir = `ncargpath lib`
set ro = "$libdir/ncarg/robj"
set libpath = "-L$libdir $syslibdir"

set libextra = ""

if (! -d "$libdir") then
echo "Library directory <$libdir> does not exist."
exit 1
endif

set newargv = "$fortran $loadflags"

set ctrans_libs = ""
set stub_file = ""

#
# set up default libraries
#
set libncarg = "-lncarg"
set libgks = "-lncarg_gks"
set libncarg_c = "-lncarg_c"
set libmath = ""

set ncarbd = "$ro/libncarbd.o"
set ngmathbd = "$ro/libngmathbd.o"
set smooth = "$ro/libdashsmth.o"
set quick = "$ro/libdashline.o $ro/libconrcqck.o $ro/libconraq.o"
set super = "$ro/libdashsupr.o $ro/libconrcspr.o $ro/libconras.o"

set robjs
unset NGMATH_LD
unset NGMATH_BLOCKD_LD

foreach arg ($argv)

switch ($arg)

case "-ngmath":
set libmath = "-lngmath"
set NGMATH_LD
breaksw

case "-sungks":
echo "Using Sun GKS"
set libgks="-lgks77 -lgks -lsuntool -lsunwindow -lpixrect -lm"
breaksw

case "-ncarbd":
set robjs = "$robjs $ncarbd"
set NGMATH_BLOCKD_LD
breaksw

case "-ngmathbd":
set robjs = "$robjs $ngmathbd"
# Make sure the ngmath blockdata routine doesn't get loaded twice.
unset NGMATH_BLOCKD_LD
breaksw

case "-smooth":
echo "Smooth gfortran of NCAR Graphics"
set robjs = "$robjs $smooth"
breaksw

case "-super":
echo "Super gfortran of NCAR Graphics"
set robjs = "$robjs $super"
breaksw

case "-quick":
echo "Quick gfortran of NCAR Graphics"
set robjs = "$robjs $quick"
breaksw

case "-agupwrtx":
echo "Autograph with PWRITX"
set robjs = "$robjs $ro/libagupwrtx.o"
breaksw

case "-conransmooth":
echo "Smooth Conran"
set robjs = "$robjs $smooth"
breaksw

case "-conranquick":
echo "Quick Conran"
set robjs = "$robjs $ro/libconraq.o"
breaksw

case "-conransuper":
echo "Super Conran"
set robjs = "$robjs $ro/libconras.o $ro/libdashsupr.o"
breaksw

case "-conrecsmooth":
echo "Smooth Conrec"
set robjs = "$robjs $ro/libdashsmth.o"
breaksw

case "-conrecquick":
echo "Quick Conrec"
set robjs = "$robjs $ro/libconrcqck.o"
breaksw

case "-conrecsuper":
echo "Super Conrec"
set robjs = "$robjs $ro/libconrcspr.o $ro/libdashsupr.o"
breaksw

case "-dashsmooth":
echo "Smooth Dash"
set robjs = "$robjs $ro/libdashsmth.o"
breaksw

case "-dashquick":
case "-dashline":
echo "Quick Dash"
set robjs = "$robjs $ro/libdashline.o"
breaksw

case "-dashsuper":
echo "Super Dash"
set robjs = "$robjs $ro/libdashsupr.o"
breaksw

case "-dashchar":
echo "Normal Dash"
breaksw

case "-ictrans":
echo "Output to ictrans"
set ctrans_libs = `ctlib`
set xlib = ""
set libmath = ""
set stub_file = $ro/ggkwdr_stub.o
breaksw

case "-noX11"
case "-nox11"
set stub_file = $ro/ggkwdr_stub.o
set xlib = ""
breaksw

case "-*":
set newargv = "$newargv $arg"
breaksw

default:
set newargv = "$newargv $arg"
breaksw

endsw
end

#
# If -ncarbd was set, *and* the ngmath library was loaded,
# then automatically take care of loading libngmathbd.o.
#
if ($?NGMATH_LD && $?NGMATH_BLOCKD_LD) then
set robjs = "$robjs $ngmathbd"
endif

set ncarg_libs = "$libncarg $libgks $libncarg_c $libmath"
set newargv = "$newargv $stub_file $libpath $ctrans_libs $robjs $ncarg_libs $xlib $cairolib $libextra"



echo $newargv
eval $newargv
re2
Displaying re2.
===================================================
pegahfar_naf
 
Posts: 20
Joined: Sat Sep 29, 2018 9:10 am

Re: error in configure of RIP

Postby dcvz » Mon Dec 16, 2019 8:11 pm

If the ncargf90 test created a.out and produced no error messages then your ncarg installation and ncargf90 are probably OK. As I mentioned in your other thread, the NCARG_ROOT environment variable needs to be set to /usr/lib64/ncarg
dcvz
 
Posts: 198
Joined: Tue Apr 15, 2008 12:02 am

Re: error in configure of RIP

Postby pegahfar_naf » Tue Dec 17, 2019 8:47 am

Thank you for your helpful comment.
It was solved
NCARG_ROOT=/usr/lib64/ncarg

Also I installed many libs as recomended in NCL site.

Now an other question has been generated:
how to use address for so much created files by ./ripdp_wrfnmm?

thank you
pegahfar_naf
 
Posts: 20
Joined: Sat Sep 29, 2018 9:10 am


Return to RIP4

Who is online

Users browsing this forum: No registered users and 1 guest