Hi, for succesfull compilation of plotgrids.exe and plotfmt.exe do you need compile ncarg libraries before WPS (with the same compilers). But, these utilities are not necessary for run WPS (it's enough with geogrid.exe, ungrib.exe and metgrid.exe)<br>
<br>Best regards<br clear="all">Jorge Arévalo Bórquez<br>Departamento de Meteorología<br>Universidad de Valparaíso<br>56-32-2508710<br>
<br><br><div class="gmail_quote">On Fri, Dec 4, 2009 at 8:12 AM, jagabandhu panda <span dir="ltr"><<a href="mailto:jagabandhu@gmail.com">jagabandhu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>This is Jagabandhu from India Meteorological Department, New Delhi. I am trying to install WPS V3.0.1 in a single processor machine having OS "Red Hat Linux 5". I have PGI 6.0 installed and I am first of all trying to install this with the 1st option i.e. no GRIB 2 using gcc with PGI. When I am trying to compile I get the following errors which results in the absence of plotfmt.exe and plotgrid.exe <br>
<br>#################################################################################################<br>/lib/cpp -C -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UTIL plotfmt.F > plotfmt.f90<br>
pgf90 -Mfree -byteswapio -O -c plotfmt.f90<br>/bin/rm -f plotfmt.f90<br>pgf90 -o plotfmt.exe plotfmt.o read_met_module.o module_debug.o \<br> misc_definitions_module.o cio.o met_data_module.o \<br> -L/home/jagabandhu/ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -L/home/jagabandhu/PGI_workstation6.0/pgi/linux86/6.1/lib -lpgftnrtl -lpgc -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c<br>
/usr/bin/ld: cannot find -lg2c<br>make[1]: [plotfmt.exe] Error 2 (ignored)<br>make[1]: Leaving directory `/home/jagabandhu/SATDAS/WRF3P0/WPSV3/util/src'<br>if [ -h plotfmt.exe ] ; then \<br> /bin/rm -f plotfmt.exe ; \<br>
fi ; \<br> if [ -h ../plotfmt.exe ] ; then \<br> /bin/rm -f ../plotfmt.exe ; \<br> fi ; \<br> if [ -e src/plotfmt.exe ] ; then \<br> ln -sf src/plotfmt.exe . ; \<br>
fi<br>----------------------------------------------------------------------------------------------------<br>/bin/cp plotgrids.F plotgrids.f90<br>pgf90 -Mfree -byteswapio -O -c plotgrids.f90<br>/bin/rm -f plotgrids.f90<br>
pgf90 -o plotgrids.exe module_map_utils.o module_debug.o cio.o constants_module.o misc_definitions_module.o \<br> plotgrids.o -L/home/jagabandhu/ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -L/home/jagabandhu/PGI_workstation6.0/pgi/linux86/6.1/lib -lpgftnrtl -lpgc -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c<br>
/usr/bin/ld: cannot find -lg2c<br>make[1]: [plotgrids.exe] Error 2 (ignored)<br>make[1]: Leaving directory `/home/jagabandhu/SATDAS/WRF3P0/WPSV3/util/src'<br>if [ -h plotgrids.exe ] ; then \<br> /bin/rm -f plotgrids.exe ; \<br>
fi ; \<br> if [ -h ../plotgrids.exe ] ; then \<br> /bin/rm -f ../plotgrids.exe ; \<br> fi ; \<br> if [ -e src/plotgrids.exe ] ; then \<br> ln -sf src/plotgrids.exe . ; \<br>
fi<br>#########################################################################################<br><br clear="all">When I try to link with g2c library I am getting the following kind of errors with the same result as I had previously i.e. the above said exe files are not forming:<br>
<br>#########################################################################################<br>pgf90 -Mfree -byteswapio -O -c plotfmt.f90<br>/bin/rm -f plotfmt.f90<br>pgf90 -o plotfmt.exe plotfmt.o read_met_module.o module_debug.o \<br>
misc_definitions_module.o cio.o met_data_module.o \<br> -L/home/jagabandhu/ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -L/home/jagabandhu/PGI_workstation6.0/pgi/linux86/6.0/lib -lpgftnrtl -lpgc -L/usr/lib/gcc/i386-redhat-linux/3.4.6 -lg2c<br>
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cpcldr.o): In function `cpcldr_':<br>cpcldr.f:(.text+0x4fa): undefined reference to `_gfortran_concat_string'<br>cpcldr.f:(.text+0x52b): undefined reference to `_gfortran_concat_string'<br>
cpcldr.f:(.text+0x55c): undefined reference to `_gfortran_concat_string'<br>cpcldr.f:(.text+0x590): undefined reference to `_gfortran_concat_string'<br>/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cpcldr.o):cpcldr.f:(.text+0x5f8): more undefined references to `_gfortran_concat_string' follow<br>
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cpcldr.o): In function `cpcldr_':<br>cpcldr.f:(.text+0x7ee): undefined reference to `_gfortran_copy_string'<br>cpcldr.f:(.text+0xa26): undefined reference to `_gfortran_pow_r4_i4'<br>
cpcldr.f:(.text+0xaa8): undefined reference to `_gfortran_pow_r4_i4'<br>cpcldr.f:(.text+0xe69): undefined reference to `_gfortran_copy_string'<br>cpcldr.f:(.text+0xef3): undefined reference to `_gfortran_copy_string'<br>
cpcldr.f:(.text+0xfdd): undefined reference to `_gfortran_copy_string'<br>cpcldr.f:(.text+0x10e4): undefined reference to `_gfortran_copy_string'<br>cpcldr.f:(.text+0x119a): undefined reference to `_gfortran_copy_string'<br>
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cpcldr.o):cpcldr.f:(.text+0x125e): more undefined references to `_gfortran_copy_string' follow<br>/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cppkcl.o): In function `cppkcl_':<br>
cppkcl.f:(.text+0x46b): undefined reference to `_gfortran_pow_r4_i4'<br>cppkcl.f:(.text+0x537): undefined reference to `_gfortran_pow_r4_i4'<br>cppkcl.f:(.text+0x55f): undefined reference to `_gfortran_pow_r4_i4'<br>
cppkcl.f:(.text+0x6fe): undefined reference to `_gfortran_copy_string'<br>cppkcl.f:(.text+0x741): undefined reference to `_gfortran_copy_string'<br>/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cppklb.o): In function `cppklb_':<br>
cppklb.f:(.text+0x19a): undefined reference to `_gfortran_compare_string'<br>/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(plchhq.o): In function `.L673':<br>plchhq.f:(.text+0x42bb): undefined reference to `_gfortran_st_write'<br>
plchhq.f:(.text+0x42d2): undefined reference to `_gfortran_transfer_integer'<br>plchhq.f:(.text+0x42ef): undefined reference to `_gfortran_transfer_character'<br>plchhq.f:(.text+0x42f7): undefined reference to `_gfortran_st_write_done'<br>
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(plchhq.o): In function `.L548':<br>plchhq.f:(.text+0x43ed): undefined reference to `_gfortran_st_write'<br>plchhq.f:(.text+0x4404): undefined reference to `_gfortran_transfer_integer'<br>
plchhq.f:(.text+0x4421): undefined reference to `_gfortran_transfer_character'<br>plchhq.f:(.text+0x4429): undefined reference to `_gfortran_st_write_done'<br>/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(plchmq.o): In function `plchmq_':<br>
plchmq.f:(.text+0x173): undefined reference to `_gfortran_pow_r4_i4'<br>/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(plchlq.o): In function `plchlq_':<br>plchlq.f:(.text+0x1ee): undefined reference to `_gfortran_pow_r4_i4'<br>
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(pcgetc.o): In function `pcgetc_':<br>pcgetc.f:(.text+0x6b): undefined reference to `_gfortran_compare_string'<br>pcgetc.f:(.text+0x91): undefined reference to `_gfortran_compare_string'<br>
pcgetc.f:(.text+0xe3): undefined reference to `_gfortran_copy_string'<br>pcgetc.f:(.text+0x10a): undefined reference to `_gfortran_compare_string'<br>pcgetc.f:(.text+0x130): undefined reference to `_gfortran_compare_string'<br>
pcgetc.f:(.text+0x192): undefined reference to `_gfortran_copy_string'<br>pcgetc.f:(.text+0x1c0): undefined reference to `_gfortran_copy_string'<br>/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(pcgetr.o): In function `pcgetr_':<br>
pcgetr.f:(.text+0x6b): undefined reference to `_gfortran_compare_string'<br>pcgetr.f:(.text+0x91): undefined reference to `_gfortran_compare_string'<br>pixwrite_png.c:(.text+0x67): undefined reference to `png_create_write_struct'<br>
pixwrite_png.c:(.text+0x90): undefined reference to `png_create_info_struct'<br>pixwrite_png.c:(.text+0xaa): undefined reference to `png_destroy_write_struct'<br>pixwrite_png.c:(.text+0xe5): undefined reference to `png_destroy_write_struct'<br>
pixwrite_png.c:(.text+0x11c): undefined reference to `png_init_io'<br>pixwrite_png.c:(.text+0x131): undefined reference to `png_malloc'<br>pixwrite_png.c:(.text+0x172): undefined reference to `png_set_rows'<br>
pixwrite_png.c:(.text+0x1b9): undefined reference to `png_set_IHDR'<br>pixwrite_png.c:(.text+0x1e2): undefined reference to `png_write_png'<br>pixwrite_png.c:(.text+0x1f4): undefined reference to `png_destroy_write_struct'<br>
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg_c.a(i1mach.o): In function `i1mach_':<br>i1mach.f:(.text+0x16f): undefined reference to `_gfortran_st_write'<br>i1mach.f:(.text+0x177): undefined reference to `_gfortran_st_write_done'<br>
i1mach.f:(.text+0x183): undefined reference to `_gfortran_stop_numeric'<br>i1mach.f:(.text+0x4b4): undefined reference to `_gfortran_st_write'<br>i1mach.f:(.text+0x4bc): undefined reference to `_gfortran_st_write_done'<br>
i1mach.f:(.text+0x4c8): undefined reference to `_gfortran_stop_numeric'<br>i1mach.f:(.text+0x640): undefined reference to `_gfortran_st_write'<br>i1mach.f:(.text+0x65a): undefined reference to `_gfortran_transfer_character'<br>
i1mach.f:(.text+0x671): undefined reference to `_gfortran_transfer_integer'<br>i1mach.f:(.text+0x68b): undefined reference to `_gfortran_transfer_character'<br>i1mach.f:(.text+0x693): undefined reference to `_gfortran_st_write_done'<br>
i1mach.f:(.text+0x69f): undefined reference to `_gfortran_stop_numeric'<br>make[1]: [plotfmt.exe] Error 2 (ignored)<br>make[1]: Leaving directory `/home/jagabandhu/SATDAS/WRF3P0/WPSV3/util/src'<br>if [ -h plotfmt.exe ] ; then \<br>
/bin/rm -f plotfmt.exe ; \<br> fi ; \<br> if [ -h ../plotfmt.exe ] ; then \<br> /bin/rm -f ../plotfmt.exe ; \<br> fi ; \<br> if [ -e src/plotfmt.exe ] ; then \<br>
ln -sf src/plotfmt.exe . ; \<br> fi<br>-----------------------------------------------------------------------------------------<br>The errors are similar for plotgrid.exe part as well.<br><br>################################################################<br>
<br>It is my humble request to let me know the solution if any. THat would be a great help!<br><br>Thanking you<br><br>regards<br>Jagabandhu<br> <br>-- <br>##################################<br>
Jagabandhu Panda<br>Research Associate<br>Sattellite Meteorology Division<br>India Meteorological Department <br>Mausam Bhawan, Lodhi Road<br>New Delhi-110003, India<br>Phone: (+91)-9873442910<br>Web:<a href="http://jagabandhu.googlepages.com" target="_blank">http://jagabandhu.googlepages.com</a><br>
##################################<br>
<br>_______________________________________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a><br>
<br></blockquote></div><br>