error in configuring RIP

Topics related to the Read Interpolate Plot (RIP) program
Post Reply
pegahfar
Posts: 5
Joined: Mon Dec 09, 2019 4:55 pm

error in configuring RIP

Post by pegahfar » Mon Dec 09, 2019 5:35 pm

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.

kwerner
Posts: 2255
Joined: Wed Feb 14, 2018 9:21 pm

Re: error in configuring RIP

Post by kwerner » Tue Dec 10, 2019 4:41 pm

Hi,
It could be possible that you either have a version of NCAR Graphics previously built on your system, that was built with a different version of gfortran, or perhaps that you have not set your NCAR Graphics path. If you issue:

Code: Select all

echo $NCARG_ROOT
does it provide a path?

1) If so, is this the path to the currently-built version of NCL (which should include an NCAR Graphics package)?
2) If not, you will need to set that path (see https://www2.mmm.ucar.edu/wrf/users/docs/user_guide_v4/v4.0/users_guide_chap9.html#RIP
NCAR/MMM

pegahfar
Posts: 5
Joined: Mon Dec 09, 2019 4:55 pm

Re: error in configuring RIP

Post by pegahfar » Sat Dec 14, 2019 10:20 am

Hi,
Thank you for your kindly attention.
In fact I installed NCAR using NCL pack, vi "yum install ncl".
I used your suggestion and restarted the compilation step by step.
** yum install cairo**** yum install freetype**
1. export NCARG_ROOT=/usr
2. ./clean
3. change file of configure.default
LOCAL_LIBS = -L/usr/X11R6/lib64 -lx11 /usr/lib/gcc/x86_64-redhat-linux/4.8.5 -lgcc -lg2c
4. ./configure
resulted in
================================================
Using NCAR Graphics in /usr/lib64/ncarg
Will use NETCDF in dir: /home/pegahfar/AWRF/Build_WRF/LIBRARIES/netcdf
sw_ncarg_version = 6
library = -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpthread -lbz2 -lXrender -lgfortran -lgcc
------------------------------------------------------------------------
Please select from among the following supported platforms.

1. PC Linux i486 i586 i686 x86_64, PGI compiler
2. PC Linux i486 i586 i686 x86_64, g95 compiler
3. PC Linux i486 i586 i686 x86_64, gfortran compiler
4. PC Linux i486 i586 i686 x86_64, Intel compiler

Enter selection [1-4] : 3
------------------------------------------------------------------------
Configuration successful. To build RIP4, type: compile
------------------------------------------------------------------------

Testing compatability of compiler and libraries
COMPILER is gfortran
LOCAL_LIBS are -L/usr/X11R6/lib64 -lX11 /usr/lib/gcc/x86_64-redhat-linux/4.8.5 -lgcc -lg2c
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.
================================================
5. change configure.rip file
NETCDFLIB = -L${NETCDF}/lib -lnetcdff -lnetcdf
6. ./compile 2>&1 | tee peg_compile.log
these resulted to:
====================================================
.
.
.
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -c rotate_earth2comp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o rip addorfill.o adjellip.o angle.o barb.o bes.o bogs.o brnshr.o bshear.o bvfricalc.o capecalc3d.o ceilingcalc.o colram.o colrln.o condheat.o contrive2.o cpchhl.o cpchll.o cpcolr.o cpmpxy.o createdtg.o cttcalc.o dbzcalc.o refmos2calc.o refmos3calc.o ddpcalc.o ddx.o ddy.o derivc.o drawcl.o driver.o egridfill.o eqthecalc.o extingcalc.o fields.o fillarray.o finterp.o finterp2d.o fregcalc.o frtitle.o fx.o fy.o getbasicvars.o getbasicvars_newdom.o getchar.o getconvals.o getdash.o getdims.o getheadinfo.o getheadinfo_newdom.o getinum.o getminfo.o getpt.o getrnum.o gettimes.o getvar.o getvarinfo.o hboxdraw.o hbulldraw.o hchadraw.o hcondraw.o hiresmap.o hlinedraw.o hmapdraw.o hodograph.o hsidsdraw.o hstrdraw.o hticdraw.o htrajdraw.o hvecdraw.o igetcoind.o lennonblank.o liftparcel.o locinterp.o maptform.o maptick.o mconvert.o mktrjpts.o mlen.o monotonic.o netasc.o numeric.o omgcalc.o pfcalc.o pltitle.o prcver.o precprob.o premaptform.o profil.o profvelcalc.o pvocalc.o qgomg.o rdcolt.o readspec.o relhl.o rhucalc.o ricalc.o rip.o rotipslab.o rotpslab.o sateqthecalc.o saweli.o scondraw.o seaprs.o setripheader.o smooth.o smoothcp.o smoothcz.o smoothrain.o srflow.o srflow2.o sstats.o sticdraw.o sticdraw_polar.o svecdraw.o tdpcalc.o trop.o refalt.o lifted_index.o tfpcalc.o thecalc.o tonpsadiabat.o tserprep.o turb.o typhoon.o unblank.o vbardraw.o vc2dcalc.o vcondraw.o velbrb.o velvctmts.o vgp.o vinterp.o virtual.o virtualhyd.o viscalc.o vticdraw.o vtrajdraw.o vvecdraw.o vwinddraw.o wdircalc.o wetbulbcalc.o writefile.o wspcalc.o xmapcalc.o xtodot.o binio.o v5d.o rotate_earth2comp.o -L/home/pegahfar/AWRF/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf -I/home/pegahfar/AWRF/Build_WRF/LIBRARIES/netcdf/include -L/usr/lib64/ncarg/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpthread -lbz2 -lXrender -lgfortran -lgcc -L/usr/X11R6/lib64 -lX11 /usr/lib/gcc/x86_64-redhat-linux/4.8.5 -lgcc -lg2c
/usr/bin/ld: cannot find -lncarg
/usr/bin/ld: cannot find -lncarg_gks
/usr/bin/ld: cannot find -lncarg_c
collect2: error: ld returned 1 exit status
make: [rip] Error 1 (ignored)
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o ripcomp ripcomp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -c writefile_rdp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o ripdp_mm5 ripdp_mm5.f fillarray.o mconvert.o writefile_rdp.o \
virtual.o
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o ripdp_wrfarw ripdp_wrfarw.f -L/home/pegahfar/AWRF/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf -I/home/pegahfar/AWRF/Build_WRF/LIBRARIES/netcdf/include \
premaptform.o maptform.o fillarray.o mconvert.o writefile_rdp.o \
virtual.o xtodot.o
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o ripdp_mpas ripdp_mpas.f -L/home/pegahfar/AWRF/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf -I/home/pegahfar/AWRF/Build_WRF/LIBRARIES/netcdf/include \
premaptform.o maptform.o fillarray.o mconvert.o writefile_rdp.o \
virtual.o xtodot.o rotate_earth2comp.o
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o ripdp_wrfnmm ripdp_wrfnmm.f -L/home/pegahfar/AWRF/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf -I/home/pegahfar/AWRF/Build_WRF/LIBRARIES/netcdf/include \
maptform.o premaptform.o fillarray.o mconvert.o writefile_rdp.o \
virtual.o xmapcalc.o egridfill.o xtodot.o
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o ripcut ripcut.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o ripinterp ripinterp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o ripshow ripshow.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o showtraj showtraj.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o tabdiag tabdiag.f lennonblank.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -fPIC -fno-second-underscore -fno-range-check -O -o upscale upscale.f

====================================================
However, while ripdp_wrfnmm are build, but I dont know why the errors of
"/usr/bin/ld: cannot find -lncarg
/usr/bin/ld: cannot find -lncarg_gks
/usr/bin/ld: cannot find -lncarg_c
collect2: error: ld returned 1 exit status"
occurred and no rip.exe is build.

I do really appreciate if you help me in this regard.

kwerner
Posts: 2255
Joined: Wed Feb 14, 2018 9:21 pm

Re: error in configuring RIP

Post by kwerner » Mon Dec 16, 2019 5:33 pm

Can you issue the following:

Code: Select all

echo $NCARG_ROOT >& log.ncarg
and please attach the log.ncarg file. Then please go to the location of the NCARG_ROOT and do an

Code: Select all

ls -ls
inside each of the directories listed and put those in a file. For example, go into the 'bin' directory and issue:

Code: Select all

ls -ls >& log.bin
Do that for each directory you encounter, including inside the include/ncarg/ directory. Then please attach all of the log files. Please also attach your configure.rip file, and your RIP compile log. Thanks!
NCAR/MMM

pegahfar
Posts: 5
Joined: Mon Dec 09, 2019 4:55 pm

Re: error in configuring RIP

Post by pegahfar » Tue Dec 17, 2019 12:57 pm

Thank you for your kindly attention.
Infact, I installed all libraries recommended in the NCL site.
and change the NCARG_ROOT to "/usr/lib64/ncarg"
It was solved.

kwerner
Posts: 2255
Joined: Wed Feb 14, 2018 9:21 pm

Re: error in configuring RIP

Post by kwerner » Wed Dec 18, 2019 12:01 am

Great! I'm glad to hear that you resolved it. Thank you for letting me know.
NCAR/MMM

Post Reply

Return to “RIP”