[Met_help] [rt.rap.ucar.edu #42506] History for MET3.0 installaion in Linux

RAL HelpDesk {for Paul Oldenburg} met_help at ucar.edu
Mon Dec 13 08:29:49 MST 2010


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hi,
I am a research scholar at IIT Delhi, India. I want to install MET3.0 in
LINUX.
I am using gfortran compiler. Also, I have installed the required libraries
with same compiler.
But at the time of MET installation, following errors are coming.
Can you please help me in this regard.

/usr/bin/g++ -o pcp_combine pcp_combine.cc \
    -Wall -Wshadow -static
-DMET_BASE=\"/home/sujata/Desktop/MET3.0/met3-new/METv3.0\" \
    -I../../lib
-I/home/sujata/Desktop/MET3.0/gfortran_lib/netcdf-4.1.1/include
-I/home/sujata/Desktop/MET3.0/gfortran_lib/gsl-1.9/include \
    -L../../lib -L/home/sujata/Desktop/MET3.0/gfortran_lib/netcdf-4.1.1/lib
-L/home/sujata/Desktop/MET3.0/gfortran_lib/gsl-1.9/lib \
    -lvx_contable -lvx_met_util -lvx_analysis_util \
    -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util -lvx_grib_classes \
    -lvx_econfig -lvx_gsl_prob -lgsl \
    -lvx_plot_util  -lvx_render -lvx_pxm -lvx_color -lvx_ps -lvx_afm \
    -lvx_data_grids -lvx_gnomon -lvx_nav -lvx_cal -lvx_util -lvx_math -lm \
    -lnetcdf_c++ -lnetcdf \

/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status
make[3]: *** [pcp_combine] Error 1
make[2]: *** [all] Error 2
make[1]: *** [targets] Error 2
make: *** [all] Error 2

With best regards,
Sujata


----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: Re: [rt.rap.ucar.edu #42506] MET3.0 installaion in Linux
From: Paul Oldenburg
Time: Thu Dec 02 12:30:41 2010

Sujata,

That error message indicates that the linker does not know where to
find the system library libm.  Please locate the
library file libm.a on your system and add the path to that file into
the MET Makefile on line 33 like so:

CXX_LIBS     = -L/path/to/lib

More generally, libm is a fundamental system library and the fact that
it is not on your library path suggests that your
gnu compilers may not be configured properly.  If you continue to
similar compilation problems, you may want to inquire
further with a system administrator within your organization to make
sure that your gnu compilers are properly configured.

Please let me know if you have any questions.

Thanks,

Paul


On 12/01/2010 10:13 PM, RAL HelpDesk {for Sujata Pattanayak} wrote:
>
> Wed Dec 01 22:13:17 2010: Request 42506 was acted upon.
> Transaction: Ticket created by sujata05 at gmail.com
>        Queue: met_help
>      Subject: MET3.0 installaion in Linux
>        Owner: Nobody
>   Requestors: sujata05 at gmail.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=42506 >
>
>
> Hi,
> I am a research scholar at IIT Delhi, India. I want to install
MET3.0 in
> LINUX.
> I am using gfortran compiler. Also, I have installed the required
libraries
> with same compiler.
> But at the time of MET installation, following errors are coming.
> Can you please help me in this regard.
>
> /usr/bin/g++ -o pcp_combine pcp_combine.cc \
>     -Wall -Wshadow -static
> -DMET_BASE=\"/home/sujata/Desktop/MET3.0/met3-new/METv3.0\" \
>     -I../../lib
> -I/home/sujata/Desktop/MET3.0/gfortran_lib/netcdf-4.1.1/include
> -I/home/sujata/Desktop/MET3.0/gfortran_lib/gsl-1.9/include \
>     -L../../lib
-L/home/sujata/Desktop/MET3.0/gfortran_lib/netcdf-4.1.1/lib
> -L/home/sujata/Desktop/MET3.0/gfortran_lib/gsl-1.9/lib \
>     -lvx_contable -lvx_met_util -lvx_analysis_util \
>     -lvx_gdata -lvx_wrfdata -lvx_contable -lvx_met_util
-lvx_grib_classes \
>     -lvx_econfig -lvx_gsl_prob -lgsl \
>     -lvx_plot_util  -lvx_render -lvx_pxm -lvx_color -lvx_ps -lvx_afm
\
>     -lvx_data_grids -lvx_gnomon -lvx_nav -lvx_cal -lvx_util
-lvx_math -lm \
>     -lnetcdf_c++ -lnetcdf \
>
> /usr/bin/ld: cannot find -lm
> collect2: ld returned 1 exit status
> make[3]: *** [pcp_combine] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [targets] Error 2
> make: *** [all] Error 2
>
> With best regards,
> Sujata


------------------------------------------------


More information about the Met_help mailing list