[Met_help] [rt.rap.ucar.edu #53806] History for Error while compiling MET
Paul Oldenburg via RT
met_help at ucar.edu
Mon Feb 20 08:25:37 MST 2012
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
All,
I got the following error message while compiling MET:-
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[4]: *** [ensemble_stat] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
Please advise.
Endalk
--
-----------------------------------------------------------------------------------
Endalkachew Bekele
NOAA Climate Prediction Center / African Desk
5200 Auth Road, Rm 811, Camp Springs, MD 20746, USA
Tel: (301) 763 8000 Ext. 7014
e-mail: endalkachew.bekele at noaa.gov
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #53806] Error while compiling MET
From: Paul Oldenburg
Time: Fri Feb 17 10:04:13 2012
Endalk,
Your c++ compiler does not seem to be able to find the standard system
libraries which it would like to statically link
MET against. I would suggest one of two approaches:
1. Depending on what version of MET you are trying to compile, remove
the '-static' flag from the CXX_FLAGS variable in
either the user_defs.mk file (for METv3.1) or the Makefile (for
previous versions)
2. Find the statically linkable system files on your system, and talk
to your system administrator if you are not sure
how to do this.
Please let us know if you have any other questions.
Thanks,
Paul
On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
>
> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
> Transaction: Ticket created by endalkachew.bekele at noaa.gov
> Queue: met_help
> Subject: Error while compiling MET
> Owner: Nobody
> Requestors: endalkachew.bekele at noaa.gov
> Status: new
> Ticket<URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>
>
> All,
>
> I got the following error message while compiling MET:-
>
> /usr/bin/ld: cannot find -lstdc++
> /usr/bin/ld: cannot find -lm
> /usr/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> make[4]: *** [ensemble_stat] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [all] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
>
> Please advise.
>
> Endalk
------------------------------------------------
Subject: Error while compiling MET
From: Endalkachew Bekele
Time: Fri Feb 17 11:47:38 2012
Thanks Paul!
I am using the MET3.1 version. I did try the first approach (removing
the
-static flag) but no sucess. I am working on my personal laptop with
Fedora 16. I have limitted experience on Linux environment and
couldn't do
the sym link. Kindly advise me in this regard.
Thank you in advance.
Endalk
On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
<met_help at ucar.edu>wrote:
> Endalk,
>
> Your c++ compiler does not seem to be able to find the standard
system
> libraries which it would like to statically link
> MET against. I would suggest one of two approaches:
>
> 1. Depending on what version of MET you are trying to compile,
remove the
> '-static' flag from the CXX_FLAGS variable in
> either the user_defs.mk file (for METv3.1) or the Makefile (for
previous
> versions)
>
> 2. Find the statically linkable system files on your system, and
talk to
> your system administrator if you are not sure
> how to do this.
>
> Please let us know if you have any other questions.
>
> Thanks,
>
> Paul
>
>
> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
> >
> > Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
> > Transaction: Ticket created by endalkachew.bekele at noaa.gov
> > Queue: met_help
> > Subject: Error while compiling MET
> > Owner: Nobody
> > Requestors: endalkachew.bekele at noaa.gov
> > Status: new
> > Ticket<URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >
> >
> > All,
> >
> > I got the following error message while compiling MET:-
> >
> > /usr/bin/ld: cannot find -lstdc++
> > /usr/bin/ld: cannot find -lm
> > /usr/bin/ld: cannot find -lc
> > collect2: ld returned 1 exit status
> > make[4]: *** [ensemble_stat] Error 1
> > make[3]: *** [all] Error 2
> > make[2]: *** [all] Error 2
> > make[1]: *** [all] Error 2
> > make: *** [all] Error 2
> >
> > Please advise.
> >
> > Endalk
>
>
>
--
-----------------------------------------------------------------------------------
Endalkachew Bekele
NOAA Climate Prediction Center / African Desk
5200 Auth Road, Rm 811, Camp Springs, MD 20746, USA
Tel: (301) 763 8000 Ext. 7014
e-mail: endalkachew.bekele at noaa.gov
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #53806] Error while compiling MET
From: Paul Oldenburg
Time: Fri Feb 17 12:36:54 2012
Endalk,
Are you able to compile and run a basic c++ program like the
following?
#include <iostream>
int main()
{
std::cout << "Hello world\n";
return 0;
}
If not, then you will have to figure out what the problem is with your
compiler before trying to compile MET. What
compiler are you trying to use, g++? Can you locate the stdc++, n and
c libraries on your system? The MET makefile
assumes that they are in a standard location like /usr or /usr/local.
Paul
On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>
> Thanks Paul!
> I am using the MET3.1 version. I did try the first approach
(removing the
> -static flag) but no sucess. I am working on my personal laptop
with
> Fedora 16. I have limitted experience on Linux environment and
couldn't do
> the sym link. Kindly advise me in this regard.
> Thank you in advance.
> Endalk
>
> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
> <met_help at ucar.edu>wrote:
>
>> Endalk,
>>
>> Your c++ compiler does not seem to be able to find the standard
system
>> libraries which it would like to statically link
>> MET against. I would suggest one of two approaches:
>>
>> 1. Depending on what version of MET you are trying to compile,
remove the
>> '-static' flag from the CXX_FLAGS variable in
>> either the user_defs.mk file (for METv3.1) or the Makefile (for
previous
>> versions)
>>
>> 2. Find the statically linkable system files on your system, and
talk to
>> your system administrator if you are not sure
>> how to do this.
>>
>> Please let us know if you have any other questions.
>>
>> Thanks,
>>
>> Paul
>>
>>
>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
>>>
>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
>>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
>>> Queue: met_help
>>> Subject: Error while compiling MET
>>> Owner: Nobody
>>> Requestors: endalkachew.bekele at noaa.gov
>>> Status: new
>>> Ticket<URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>
>>>
>>> All,
>>>
>>> I got the following error message while compiling MET:-
>>>
>>> /usr/bin/ld: cannot find -lstdc++
>>> /usr/bin/ld: cannot find -lm
>>> /usr/bin/ld: cannot find -lc
>>> collect2: ld returned 1 exit status
>>> make[4]: *** [ensemble_stat] Error 1
>>> make[3]: *** [all] Error 2
>>> make[2]: *** [all] Error 2
>>> make[1]: *** [all] Error 2
>>> make: *** [all] Error 2
>>>
>>> Please advise.
>>>
>>> Endalk
>>
>>
>>
>
>
------------------------------------------------
Subject: Error while compiling MET
From: Endalkachew Bekele
Time: Fri Feb 17 13:38:54 2012
Thanks again, Paul.
Yes I am able to compile with both c++ and g++.
These are the list of stdc++ related libraries in my /usr/lib
directory:
/usr/lib/libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/libstdc++.so.5.0.7
/usr/lib/libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.5 /usr/lib/libstdc++.so.6.0.16
Thanks again.
Endalk
On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via RT
<met_help at ucar.edu>wrote:
> Endalk,
>
> Are you able to compile and run a basic c++ program like the
following?
>
> #include <iostream>
>
> int main()
> {
> std::cout << "Hello world\n";
> return 0;
> }
>
> If not, then you will have to figure out what the problem is with
your
> compiler before trying to compile MET. What
> compiler are you trying to use, g++? Can you locate the stdc++, n
and c
> libraries on your system? The MET makefile
> assumes that they are in a standard location like /usr or
/usr/local.
>
> Paul
>
>
> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >
> > Thanks Paul!
> > I am using the MET3.1 version. I did try the first approach
(removing the
> > -static flag) but no sucess. I am working on my personal laptop
with
> > Fedora 16. I have limitted experience on Linux environment and
couldn't
> do
> > the sym link. Kindly advise me in this regard.
> > Thank you in advance.
> > Endalk
> >
> > On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
> > <met_help at ucar.edu>wrote:
> >
> >> Endalk,
> >>
> >> Your c++ compiler does not seem to be able to find the standard
system
> >> libraries which it would like to statically link
> >> MET against. I would suggest one of two approaches:
> >>
> >> 1. Depending on what version of MET you are trying to compile,
remove
> the
> >> '-static' flag from the CXX_FLAGS variable in
> >> either the user_defs.mk file (for METv3.1) or the Makefile (for
> previous
> >> versions)
> >>
> >> 2. Find the statically linkable system files on your system, and
talk
> to
> >> your system administrator if you are not sure
> >> how to do this.
> >>
> >> Please let us know if you have any other questions.
> >>
> >> Thanks,
> >>
> >> Paul
> >>
> >>
> >> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
> >>>
> >>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
> >>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
> >>> Queue: met_help
> >>> Subject: Error while compiling MET
> >>> Owner: Nobody
> >>> Requestors: endalkachew.bekele at noaa.gov
> >>> Status: new
> >>> Ticket<URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
> >
> >>>
> >>>
> >>> All,
> >>>
> >>> I got the following error message while compiling MET:-
> >>>
> >>> /usr/bin/ld: cannot find -lstdc++
> >>> /usr/bin/ld: cannot find -lm
> >>> /usr/bin/ld: cannot find -lc
> >>> collect2: ld returned 1 exit status
> >>> make[4]: *** [ensemble_stat] Error 1
> >>> make[3]: *** [all] Error 2
> >>> make[2]: *** [all] Error 2
> >>> make[1]: *** [all] Error 2
> >>> make: *** [all] Error 2
> >>>
> >>> Please advise.
> >>>
> >>> Endalk
> >>
> >>
> >>
> >
> >
>
>
>
--
-----------------------------------------------------------------------------------
Endalkachew Bekele
NOAA Climate Prediction Center / African Desk
5200 Auth Road, Rm 811, Camp Springs, MD 20746, USA
Tel: (301) 763 8000 Ext. 7014
e-mail: endalkachew.bekele at noaa.gov
------------------------------------------------
Subject: Error while compiling MET
From: Endalkachew Bekele
Time: Fri Feb 17 13:43:19 2012
Thanks again, Paul.
Yes I am able to compile with both c++ and g++.
These are the list of stdc++ related libraries in my /usr/lib
directory:
/usr/lib/libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/libstdc++.so.5.0.7
/usr/lib/libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.5 /usr/lib/libstdc++.so.6.0.16
Thanks again.
Endalk
On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via RT
<met_help at ucar.edu>wrote:
> Endalk,
>
> Are you able to compile and run a basic c++ program like the
following?
>
> #include <iostream>
>
> int main()
> {
> std::cout << "Hello world\n";
> return 0;
> }
>
> If not, then you will have to figure out what the problem is with
your
> compiler before trying to compile MET. What
> compiler are you trying to use, g++? Can you locate the stdc++, n
and c
> libraries on your system? The MET makefile
> assumes that they are in a standard location like /usr or
/usr/local.
>
> Paul
>
>
> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >
> > Thanks Paul!
> > I am using the MET3.1 version. I did try the first approach
(removing the
> > -static flag) but no sucess. I am working on my personal laptop
with
> > Fedora 16. I have limitted experience on Linux environment and
couldn't
> do
> > the sym link. Kindly advise me in this regard.
> > Thank you in advance.
> > Endalk
> >
> > On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
> > <met_help at ucar.edu>wrote:
> >
> >> Endalk,
> >>
> >> Your c++ compiler does not seem to be able to find the standard
system
> >> libraries which it would like to statically link
> >> MET against. I would suggest one of two approaches:
> >>
> >> 1. Depending on what version of MET you are trying to compile,
remove
> the
> >> '-static' flag from the CXX_FLAGS variable in
> >> either the user_defs.mk file (for METv3.1) or the Makefile (for
> previous
> >> versions)
> >>
> >> 2. Find the statically linkable system files on your system, and
talk
> to
> >> your system administrator if you are not sure
> >> how to do this.
> >>
> >> Please let us know if you have any other questions.
> >>
> >> Thanks,
> >>
> >> Paul
> >>
> >>
> >> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
> >>>
> >>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
> >>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
> >>> Queue: met_help
> >>> Subject: Error while compiling MET
> >>> Owner: Nobody
> >>> Requestors: endalkachew.bekele at noaa.gov
> >>> Status: new
> >>> Ticket<URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
> >
> >>>
> >>>
> >>> All,
> >>>
> >>> I got the following error message while compiling MET:-
> >>>
> >>> /usr/bin/ld: cannot find -lstdc++
> >>> /usr/bin/ld: cannot find -lm
> >>> /usr/bin/ld: cannot find -lc
> >>> collect2: ld returned 1 exit status
> >>> make[4]: *** [ensemble_stat] Error 1
> >>> make[3]: *** [all] Error 2
> >>> make[2]: *** [all] Error 2
> >>> make[1]: *** [all] Error 2
> >>> make: *** [all] Error 2
> >>>
> >>> Please advise.
> >>>
> >>> Endalk
> >>
> >>
> >>
> >
> >
>
>
>
--
-----------------------------------------------------------------------------------
Endalkachew Bekele
NOAA Climate Prediction Center / African Desk
5200 Auth Road, Rm 811, Camp Springs, MD 20746, USA
Tel: (301) 763 8000 Ext. 7014
e-mail: endalkachew.bekele at noaa.gov
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #53806] Error while compiling MET
From: Paul Oldenburg
Time: Fri Feb 17 13:52:17 2012
Endalk,
Make sure the following two lines are set in your user_defs.mk or
Makefile, depending on the version of MET that you are
using:
CXX_LIBS = -L/usr/lib
FC_LIBS = -L/usr/lib -lgfortran
The fact that you are using .so files means that the static flag must
be turned off, so make sure it is removed. Then,
do a clean build by running "make clean" and then "make >
make_met.log". If you still have trouble, please send me the
make_met.log file.
Thanks,
Paul
On 02/17/2012 01:38 PM, Endalkachew Bekele via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>
> Thanks again, Paul.
>
> Yes I am able to compile with both c++ and g++.
> These are the list of stdc++ related libraries in my /usr/lib
directory:
>
> /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/libstdc++.so.5.0.7
> /usr/lib/libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++.so.6
> /usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.6.0.16
>
> Thanks again.
>
> Endalk
>
>
>
> On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via
RT<met_help at ucar.edu>wrote:
>
>> Endalk,
>>
>> Are you able to compile and run a basic c++ program like the
following?
>>
>> #include<iostream>
>>
>> int main()
>> {
>> std::cout<< "Hello world\n";
>> return 0;
>> }
>>
>> If not, then you will have to figure out what the problem is with
your
>> compiler before trying to compile MET. What
>> compiler are you trying to use, g++? Can you locate the stdc++, n
and c
>> libraries on your system? The MET makefile
>> assumes that they are in a standard location like /usr or
/usr/local.
>>
>> Paul
>>
>>
>> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>
>>> Thanks Paul!
>>> I am using the MET3.1 version. I did try the first approach
(removing the
>>> -static flag) but no sucess. I am working on my personal laptop
with
>>> Fedora 16. I have limitted experience on Linux environment and
couldn't
>> do
>>> the sym link. Kindly advise me in this regard.
>>> Thank you in advance.
>>> Endalk
>>>
>>> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
>>> <met_help at ucar.edu>wrote:
>>>
>>>> Endalk,
>>>>
>>>> Your c++ compiler does not seem to be able to find the standard
system
>>>> libraries which it would like to statically link
>>>> MET against. I would suggest one of two approaches:
>>>>
>>>> 1. Depending on what version of MET you are trying to compile,
remove
>> the
>>>> '-static' flag from the CXX_FLAGS variable in
>>>> either the user_defs.mk file (for METv3.1) or the Makefile (for
>> previous
>>>> versions)
>>>>
>>>> 2. Find the statically linkable system files on your system, and
talk
>> to
>>>> your system administrator if you are not sure
>>>> how to do this.
>>>>
>>>> Please let us know if you have any other questions.
>>>>
>>>> Thanks,
>>>>
>>>> Paul
>>>>
>>>>
>>>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
>>>>>
>>>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
>>>>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
>>>>> Queue: met_help
>>>>> Subject: Error while compiling MET
>>>>> Owner: Nobody
>>>>> Requestors: endalkachew.bekele at noaa.gov
>>>>> Status: new
>>>>> Ticket<URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
>>>
>>>>>
>>>>>
>>>>> All,
>>>>>
>>>>> I got the following error message while compiling MET:-
>>>>>
>>>>> /usr/bin/ld: cannot find -lstdc++
>>>>> /usr/bin/ld: cannot find -lm
>>>>> /usr/bin/ld: cannot find -lc
>>>>> collect2: ld returned 1 exit status
>>>>> make[4]: *** [ensemble_stat] Error 1
>>>>> make[3]: *** [all] Error 2
>>>>> make[2]: *** [all] Error 2
>>>>> make[1]: *** [all] Error 2
>>>>> make: *** [all] Error 2
>>>>>
>>>>> Please advise.
>>>>>
>>>>> Endalk
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
------------------------------------------------
Subject: Error while compiling MET
From: Endalkachew Bekele
Time: Fri Feb 17 14:03:06 2012
Paul,
I made changes following your advices, but the error message is still
there.
Please find the user_defs.mk file.
Thanks,
Endalk
On Fri, Feb 17, 2012 at 3:52 PM, Paul Oldenburg via RT
<met_help at ucar.edu>wrote:
> Endalk,
>
> Make sure the following two lines are set in your user_defs.mk or
> Makefile, depending on the version of MET that you are
> using:
>
> CXX_LIBS = -L/usr/lib
> FC_LIBS = -L/usr/lib -lgfortran
>
> The fact that you are using .so files means that the static flag
must be
> turned off, so make sure it is removed. Then,
> do a clean build by running "make clean" and then "make >
make_met.log".
> If you still have trouble, please send me the
> make_met.log file.
>
> Thanks,
>
> Paul
>
>
> On 02/17/2012 01:38 PM, Endalkachew Bekele via RT wrote:
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >
> > Thanks again, Paul.
> >
> > Yes I am able to compile with both c++ and g++.
> > These are the list of stdc++ related libraries in my /usr/lib
directory:
> >
> > /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/libstdc++.so.5.0.7
> > /usr/lib/libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++.so.6
> > /usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.6.0.16
> >
> > Thanks again.
> >
> > Endalk
> >
> >
> >
> > On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via
RT<met_help at ucar.edu
> >wrote:
> >
> >> Endalk,
> >>
> >> Are you able to compile and run a basic c++ program like the
following?
> >>
> >> #include<iostream>
> >>
> >> int main()
> >> {
> >> std::cout<< "Hello world\n";
> >> return 0;
> >> }
> >>
> >> If not, then you will have to figure out what the problem is with
your
> >> compiler before trying to compile MET. What
> >> compiler are you trying to use, g++? Can you locate the stdc++,
n and c
> >> libraries on your system? The MET makefile
> >> assumes that they are in a standard location like /usr or
/usr/local.
> >>
> >> Paul
> >>
> >>
> >> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
> >>>
> >>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>
> >>> Thanks Paul!
> >>> I am using the MET3.1 version. I did try the first approach
(removing
> the
> >>> -static flag) but no sucess. I am working on my personal laptop
with
> >>> Fedora 16. I have limitted experience on Linux environment and
couldn't
> >> do
> >>> the sym link. Kindly advise me in this regard.
> >>> Thank you in advance.
> >>> Endalk
> >>>
> >>> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
> >>> <met_help at ucar.edu>wrote:
> >>>
> >>>> Endalk,
> >>>>
> >>>> Your c++ compiler does not seem to be able to find the standard
system
> >>>> libraries which it would like to statically link
> >>>> MET against. I would suggest one of two approaches:
> >>>>
> >>>> 1. Depending on what version of MET you are trying to compile,
remove
> >> the
> >>>> '-static' flag from the CXX_FLAGS variable in
> >>>> either the user_defs.mk file (for METv3.1) or the Makefile (for
> >> previous
> >>>> versions)
> >>>>
> >>>> 2. Find the statically linkable system files on your system,
and talk
> >> to
> >>>> your system administrator if you are not sure
> >>>> how to do this.
> >>>>
> >>>> Please let us know if you have any other questions.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Paul
> >>>>
> >>>>
> >>>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
> >>>>>
> >>>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
> >>>>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
> >>>>> Queue: met_help
> >>>>> Subject: Error while compiling MET
> >>>>> Owner: Nobody
> >>>>> Requestors: endalkachew.bekele at noaa.gov
> >>>>> Status: new
> >>>>> Ticket<URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
> >>>
> >>>>>
> >>>>>
> >>>>> All,
> >>>>>
> >>>>> I got the following error message while compiling MET:-
> >>>>>
> >>>>> /usr/bin/ld: cannot find -lstdc++
> >>>>> /usr/bin/ld: cannot find -lm
> >>>>> /usr/bin/ld: cannot find -lc
> >>>>> collect2: ld returned 1 exit status
> >>>>> make[4]: *** [ensemble_stat] Error 1
> >>>>> make[3]: *** [all] Error 2
> >>>>> make[2]: *** [all] Error 2
> >>>>> make[1]: *** [all] Error 2
> >>>>> make: *** [all] Error 2
> >>>>>
> >>>>> Please advise.
> >>>>>
> >>>>> Endalk
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>
>
>
--
-----------------------------------------------------------------------------------
Endalkachew Bekele
NOAA Climate Prediction Center / African Desk
5200 Auth Road, Rm 811, Camp Springs, MD 20746, USA
Tel: (301) 763 8000 Ext. 7014
e-mail: endalkachew.bekele at noaa.gov
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #53806] Error while compiling MET
From: Paul Oldenburg
Time: Fri Feb 17 14:29:51 2012
Endalk,
Please also send me the make_met.log file that shows the compiler
output and error message.
Thanks,
Paul
On 02/17/2012 02:03 PM, Endalkachew Bekele via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>
> Paul,
> I made changes following your advices, but the error message is
still there.
> Please find the user_defs.mk file.
> Thanks,
> Endalk
>
> On Fri, Feb 17, 2012 at 3:52 PM, Paul Oldenburg via
RT<met_help at ucar.edu>wrote:
>
>> Endalk,
>>
>> Make sure the following two lines are set in your user_defs.mk or
>> Makefile, depending on the version of MET that you are
>> using:
>>
>> CXX_LIBS = -L/usr/lib
>> FC_LIBS = -L/usr/lib -lgfortran
>>
>> The fact that you are using .so files means that the static flag
must be
>> turned off, so make sure it is removed. Then,
>> do a clean build by running "make clean" and then "make>
make_met.log".
>> If you still have trouble, please send me the
>> make_met.log file.
>>
>> Thanks,
>>
>> Paul
>>
>>
>> On 02/17/2012 01:38 PM, Endalkachew Bekele via RT wrote:
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>
>>> Thanks again, Paul.
>>>
>>> Yes I am able to compile with both c++ and g++.
>>> These are the list of stdc++ related libraries in my /usr/lib
directory:
>>>
>>> /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/libstdc++.so.5.0.7
>>> /usr/lib/libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++.so.6
>>> /usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.6.0.16
>>>
>>> Thanks again.
>>>
>>> Endalk
>>>
>>>
>>>
>>> On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via
RT<met_help at ucar.edu
>>> wrote:
>>>
>>>> Endalk,
>>>>
>>>> Are you able to compile and run a basic c++ program like the
following?
>>>>
>>>> #include<iostream>
>>>>
>>>> int main()
>>>> {
>>>> std::cout<< "Hello world\n";
>>>> return 0;
>>>> }
>>>>
>>>> If not, then you will have to figure out what the problem is with
your
>>>> compiler before trying to compile MET. What
>>>> compiler are you trying to use, g++? Can you locate the stdc++,
n and c
>>>> libraries on your system? The MET makefile
>>>> assumes that they are in a standard location like /usr or
/usr/local.
>>>>
>>>> Paul
>>>>
>>>>
>>>> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
>>>>>
>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>
>>>>> Thanks Paul!
>>>>> I am using the MET3.1 version. I did try the first approach
(removing
>> the
>>>>> -static flag) but no sucess. I am working on my personal laptop
with
>>>>> Fedora 16. I have limitted experience on Linux environment and
couldn't
>>>> do
>>>>> the sym link. Kindly advise me in this regard.
>>>>> Thank you in advance.
>>>>> Endalk
>>>>>
>>>>> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
>>>>> <met_help at ucar.edu>wrote:
>>>>>
>>>>>> Endalk,
>>>>>>
>>>>>> Your c++ compiler does not seem to be able to find the standard
system
>>>>>> libraries which it would like to statically link
>>>>>> MET against. I would suggest one of two approaches:
>>>>>>
>>>>>> 1. Depending on what version of MET you are trying to compile,
remove
>>>> the
>>>>>> '-static' flag from the CXX_FLAGS variable in
>>>>>> either the user_defs.mk file (for METv3.1) or the Makefile (for
>>>> previous
>>>>>> versions)
>>>>>>
>>>>>> 2. Find the statically linkable system files on your system,
and talk
>>>> to
>>>>>> your system administrator if you are not sure
>>>>>> how to do this.
>>>>>>
>>>>>> Please let us know if you have any other questions.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>>
>>>>>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
>>>>>>>
>>>>>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
>>>>>>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
>>>>>>> Queue: met_help
>>>>>>> Subject: Error while compiling MET
>>>>>>> Owner: Nobody
>>>>>>> Requestors: endalkachew.bekele at noaa.gov
>>>>>>> Status: new
>>>>>>> Ticket<URL:
>> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
>>>>>
>>>>>>>
>>>>>>>
>>>>>>> All,
>>>>>>>
>>>>>>> I got the following error message while compiling MET:-
>>>>>>>
>>>>>>> /usr/bin/ld: cannot find -lstdc++
>>>>>>> /usr/bin/ld: cannot find -lm
>>>>>>> /usr/bin/ld: cannot find -lc
>>>>>>> collect2: ld returned 1 exit status
>>>>>>> make[4]: *** [ensemble_stat] Error 1
>>>>>>> make[3]: *** [all] Error 2
>>>>>>> make[2]: *** [all] Error 2
>>>>>>> make[1]: *** [all] Error 2
>>>>>>> make: *** [all] Error 2
>>>>>>>
>>>>>>> Please advise.
>>>>>>>
>>>>>>> Endalk
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
------------------------------------------------
Subject: Error while compiling MET
From: Endalkachew Bekele
Time: Fri Feb 17 14:31:52 2012
Paul,
Please find the log file as well.
Thanks,
Endalk
On Fri, Feb 17, 2012 at 4:29 PM, Paul Oldenburg via RT
<met_help at ucar.edu>wrote:
> Endalk,
>
> Please also send me the make_met.log file that shows the compiler
output
> and error message.
>
> Thanks,
>
> Paul
>
>
>
> On 02/17/2012 02:03 PM, Endalkachew Bekele via RT wrote:
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >
> > Paul,
> > I made changes following your advices, but the error message is
still
> there.
> > Please find the user_defs.mk file.
> > Thanks,
> > Endalk
> >
> > On Fri, Feb 17, 2012 at 3:52 PM, Paul Oldenburg via
RT<met_help at ucar.edu
> >wrote:
> >
> >> Endalk,
> >>
> >> Make sure the following two lines are set in your user_defs.mk or
> >> Makefile, depending on the version of MET that you are
> >> using:
> >>
> >> CXX_LIBS = -L/usr/lib
> >> FC_LIBS = -L/usr/lib -lgfortran
> >>
> >> The fact that you are using .so files means that the static flag
must be
> >> turned off, so make sure it is removed. Then,
> >> do a clean build by running "make clean" and then "make>
make_met.log".
> >> If you still have trouble, please send me the
> >> make_met.log file.
> >>
> >> Thanks,
> >>
> >> Paul
> >>
> >>
> >> On 02/17/2012 01:38 PM, Endalkachew Bekele via RT wrote:
> >>>
> >>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>
> >>> Thanks again, Paul.
> >>>
> >>> Yes I am able to compile with both c++ and g++.
> >>> These are the list of stdc++ related libraries in my /usr/lib
> directory:
> >>>
> >>> /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/libstdc++.so.5.0.7
> >>> /usr/lib/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++.so.6
> >>> /usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.6.0.16
> >>>
> >>> Thanks again.
> >>>
> >>> Endalk
> >>>
> >>>
> >>>
> >>> On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via RT<
> met_help at ucar.edu
> >>> wrote:
> >>>
> >>>> Endalk,
> >>>>
> >>>> Are you able to compile and run a basic c++ program like the
> following?
> >>>>
> >>>> #include<iostream>
> >>>>
> >>>> int main()
> >>>> {
> >>>> std::cout<< "Hello world\n";
> >>>> return 0;
> >>>> }
> >>>>
> >>>> If not, then you will have to figure out what the problem is
with your
> >>>> compiler before trying to compile MET. What
> >>>> compiler are you trying to use, g++? Can you locate the
stdc++, n
> and c
> >>>> libraries on your system? The MET makefile
> >>>> assumes that they are in a standard location like /usr or
/usr/local.
> >>>>
> >>>> Paul
> >>>>
> >>>>
> >>>> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
> >>>>>
> >>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>>>
> >>>>> Thanks Paul!
> >>>>> I am using the MET3.1 version. I did try the first approach
(removing
> >> the
> >>>>> -static flag) but no sucess. I am working on my personal
laptop with
> >>>>> Fedora 16. I have limitted experience on Linux environment and
> couldn't
> >>>> do
> >>>>> the sym link. Kindly advise me in this regard.
> >>>>> Thank you in advance.
> >>>>> Endalk
> >>>>>
> >>>>> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
> >>>>> <met_help at ucar.edu>wrote:
> >>>>>
> >>>>>> Endalk,
> >>>>>>
> >>>>>> Your c++ compiler does not seem to be able to find the
standard
> system
> >>>>>> libraries which it would like to statically link
> >>>>>> MET against. I would suggest one of two approaches:
> >>>>>>
> >>>>>> 1. Depending on what version of MET you are trying to
compile,
> remove
> >>>> the
> >>>>>> '-static' flag from the CXX_FLAGS variable in
> >>>>>> either the user_defs.mk file (for METv3.1) or the Makefile
(for
> >>>> previous
> >>>>>> versions)
> >>>>>>
> >>>>>> 2. Find the statically linkable system files on your system,
and
> talk
> >>>> to
> >>>>>> your system administrator if you are not sure
> >>>>>> how to do this.
> >>>>>>
> >>>>>> Please let us know if you have any other questions.
> >>>>>>
> >>>>>> Thanks,
> >>>>>>
> >>>>>> Paul
> >>>>>>
> >>>>>>
> >>>>>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
> >>>>>>>
> >>>>>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
> >>>>>>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
> >>>>>>> Queue: met_help
> >>>>>>> Subject: Error while compiling MET
> >>>>>>> Owner: Nobody
> >>>>>>> Requestors: endalkachew.bekele at noaa.gov
> >>>>>>> Status: new
> >>>>>>> Ticket<URL:
> >> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
> >>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> All,
> >>>>>>>
> >>>>>>> I got the following error message while compiling MET:-
> >>>>>>>
> >>>>>>> /usr/bin/ld: cannot find -lstdc++
> >>>>>>> /usr/bin/ld: cannot find -lm
> >>>>>>> /usr/bin/ld: cannot find -lc
> >>>>>>> collect2: ld returned 1 exit status
> >>>>>>> make[4]: *** [ensemble_stat] Error 1
> >>>>>>> make[3]: *** [all] Error 2
> >>>>>>> make[2]: *** [all] Error 2
> >>>>>>> make[1]: *** [all] Error 2
> >>>>>>> make: *** [all] Error 2
> >>>>>>>
> >>>>>>> Please advise.
> >>>>>>>
> >>>>>>> Endalk
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>
>
>
--
-----------------------------------------------------------------------------------
Endalkachew Bekele
NOAA Climate Prediction Center / African Desk
5200 Auth Road, Rm 811, Camp Springs, MD 20746, USA
Tel: (301) 763 8000 Ext. 7014
e-mail: endalkachew.bekele at noaa.gov
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #53806] Error while compiling MET
From: Paul Oldenburg
Time: Fri Feb 17 14:37:37 2012
Endalk,
The errors in the make_met.log file that you sent me indicate that the
linker cannot find some GSL library files. These
are different from the errors you first reported. Did you compile the
GSL library with the GNU compilers? If not, that
may be the cause of these errors. Also, make sure your GSL_BASE
points at the correct folder so that MET can find all
required libraries.
Paul
On 02/17/2012 02:31 PM, Endalkachew Bekele via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>
> Paul,
> Please find the log file as well.
> Thanks,
> Endalk
>
> On Fri, Feb 17, 2012 at 4:29 PM, Paul Oldenburg via
RT<met_help at ucar.edu>wrote:
>
>> Endalk,
>>
>> Please also send me the make_met.log file that shows the compiler
output
>> and error message.
>>
>> Thanks,
>>
>> Paul
>>
>>
>>
>> On 02/17/2012 02:03 PM, Endalkachew Bekele via RT wrote:
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>
>>> Paul,
>>> I made changes following your advices, but the error message is
still
>> there.
>>> Please find the user_defs.mk file.
>>> Thanks,
>>> Endalk
>>>
>>> On Fri, Feb 17, 2012 at 3:52 PM, Paul Oldenburg via
RT<met_help at ucar.edu
>>> wrote:
>>>
>>>> Endalk,
>>>>
>>>> Make sure the following two lines are set in your user_defs.mk or
>>>> Makefile, depending on the version of MET that you are
>>>> using:
>>>>
>>>> CXX_LIBS = -L/usr/lib
>>>> FC_LIBS = -L/usr/lib -lgfortran
>>>>
>>>> The fact that you are using .so files means that the static flag
must be
>>>> turned off, so make sure it is removed. Then,
>>>> do a clean build by running "make clean" and then "make>
make_met.log".
>>>> If you still have trouble, please send me the
>>>> make_met.log file.
>>>>
>>>> Thanks,
>>>>
>>>> Paul
>>>>
>>>>
>>>> On 02/17/2012 01:38 PM, Endalkachew Bekele via RT wrote:
>>>>>
>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>
>>>>> Thanks again, Paul.
>>>>>
>>>>> Yes I am able to compile with both c++ and g++.
>>>>> These are the list of stdc++ related libraries in my /usr/lib
>> directory:
>>>>>
>>>>> /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/libstdc++.so.5.0.7
>>>>> /usr/lib/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++.so.6
>>>>> /usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.6.0.16
>>>>>
>>>>> Thanks again.
>>>>>
>>>>> Endalk
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via RT<
>> met_help at ucar.edu
>>>>> wrote:
>>>>>
>>>>>> Endalk,
>>>>>>
>>>>>> Are you able to compile and run a basic c++ program like the
>> following?
>>>>>>
>>>>>> #include<iostream>
>>>>>>
>>>>>> int main()
>>>>>> {
>>>>>> std::cout<< "Hello world\n";
>>>>>> return 0;
>>>>>> }
>>>>>>
>>>>>> If not, then you will have to figure out what the problem is
with your
>>>>>> compiler before trying to compile MET. What
>>>>>> compiler are you trying to use, g++? Can you locate the
stdc++, n
>> and c
>>>>>> libraries on your system? The MET makefile
>>>>>> assumes that they are in a standard location like /usr or
/usr/local.
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>>
>>>>>> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
>>>>>>>
>>>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>>>
>>>>>>> Thanks Paul!
>>>>>>> I am using the MET3.1 version. I did try the first approach
(removing
>>>> the
>>>>>>> -static flag) but no sucess. I am working on my personal
laptop with
>>>>>>> Fedora 16. I have limitted experience on Linux environment and
>> couldn't
>>>>>> do
>>>>>>> the sym link. Kindly advise me in this regard.
>>>>>>> Thank you in advance.
>>>>>>> Endalk
>>>>>>>
>>>>>>> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
>>>>>>> <met_help at ucar.edu>wrote:
>>>>>>>
>>>>>>>> Endalk,
>>>>>>>>
>>>>>>>> Your c++ compiler does not seem to be able to find the
standard
>> system
>>>>>>>> libraries which it would like to statically link
>>>>>>>> MET against. I would suggest one of two approaches:
>>>>>>>>
>>>>>>>> 1. Depending on what version of MET you are trying to
compile,
>> remove
>>>>>> the
>>>>>>>> '-static' flag from the CXX_FLAGS variable in
>>>>>>>> either the user_defs.mk file (for METv3.1) or the Makefile
(for
>>>>>> previous
>>>>>>>> versions)
>>>>>>>>
>>>>>>>> 2. Find the statically linkable system files on your system,
and
>> talk
>>>>>> to
>>>>>>>> your system administrator if you are not sure
>>>>>>>> how to do this.
>>>>>>>>
>>>>>>>> Please let us know if you have any other questions.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Paul
>>>>>>>>
>>>>>>>>
>>>>>>>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
>>>>>>>>>
>>>>>>>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
>>>>>>>>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
>>>>>>>>> Queue: met_help
>>>>>>>>> Subject: Error while compiling MET
>>>>>>>>> Owner: Nobody
>>>>>>>>> Requestors: endalkachew.bekele at noaa.gov
>>>>>>>>> Status: new
>>>>>>>>> Ticket<URL:
>>>> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> All,
>>>>>>>>>
>>>>>>>>> I got the following error message while compiling MET:-
>>>>>>>>>
>>>>>>>>> /usr/bin/ld: cannot find -lstdc++
>>>>>>>>> /usr/bin/ld: cannot find -lm
>>>>>>>>> /usr/bin/ld: cannot find -lc
>>>>>>>>> collect2: ld returned 1 exit status
>>>>>>>>> make[4]: *** [ensemble_stat] Error 1
>>>>>>>>> make[3]: *** [all] Error 2
>>>>>>>>> make[2]: *** [all] Error 2
>>>>>>>>> make[1]: *** [all] Error 2
>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>
>>>>>>>>> Please advise.
>>>>>>>>>
>>>>>>>>> Endalk
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
------------------------------------------------
Subject: Error while compiling MET
From: Endalkachew Bekele
Time: Fri Feb 17 14:56:21 2012
For some reason I can't compile the GSL library using gcc, while i am
having the latest version of gcc (gcc-4.6.2-1.fc16.i686).
Endalk
On Fri, Feb 17, 2012 at 4:37 PM, Paul Oldenburg via RT
<met_help at ucar.edu>wrote:
> Endalk,
>
> The errors in the make_met.log file that you sent me indicate that
the
> linker cannot find some GSL library files. These
> are different from the errors you first reported. Did you compile
the GSL
> library with the GNU compilers? If not, that
> may be the cause of these errors. Also, make sure your GSL_BASE
points at
> the correct folder so that MET can find all
> required libraries.
>
> Paul
>
>
> On 02/17/2012 02:31 PM, Endalkachew Bekele via RT wrote:
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >
> > Paul,
> > Please find the log file as well.
> > Thanks,
> > Endalk
> >
> > On Fri, Feb 17, 2012 at 4:29 PM, Paul Oldenburg via
RT<met_help at ucar.edu
> >wrote:
> >
> >> Endalk,
> >>
> >> Please also send me the make_met.log file that shows the compiler
output
> >> and error message.
> >>
> >> Thanks,
> >>
> >> Paul
> >>
> >>
> >>
> >> On 02/17/2012 02:03 PM, Endalkachew Bekele via RT wrote:
> >>>
> >>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>
> >>> Paul,
> >>> I made changes following your advices, but the error message is
still
> >> there.
> >>> Please find the user_defs.mk file.
> >>> Thanks,
> >>> Endalk
> >>>
> >>> On Fri, Feb 17, 2012 at 3:52 PM, Paul Oldenburg via RT<
> met_help at ucar.edu
> >>> wrote:
> >>>
> >>>> Endalk,
> >>>>
> >>>> Make sure the following two lines are set in your user_defs.mk
or
> >>>> Makefile, depending on the version of MET that you are
> >>>> using:
> >>>>
> >>>> CXX_LIBS = -L/usr/lib
> >>>> FC_LIBS = -L/usr/lib -lgfortran
> >>>>
> >>>> The fact that you are using .so files means that the static
flag must
> be
> >>>> turned off, so make sure it is removed. Then,
> >>>> do a clean build by running "make clean" and then "make>
> make_met.log".
> >>>> If you still have trouble, please send me the
> >>>> make_met.log file.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Paul
> >>>>
> >>>>
> >>>> On 02/17/2012 01:38 PM, Endalkachew Bekele via RT wrote:
> >>>>>
> >>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>>>
> >>>>> Thanks again, Paul.
> >>>>>
> >>>>> Yes I am able to compile with both c++ and g++.
> >>>>> These are the list of stdc++ related libraries in my /usr/lib
> >> directory:
> >>>>>
> >>>>> /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/libstdc++.so.5.0.7
> >>>>> /usr/lib/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++.so.6
> >>>>> /usr/lib/libstdc++.so.5
> /usr/lib/libstdc++.so.6.0.16
> >>>>>
> >>>>> Thanks again.
> >>>>>
> >>>>> Endalk
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via RT<
> >> met_help at ucar.edu
> >>>>> wrote:
> >>>>>
> >>>>>> Endalk,
> >>>>>>
> >>>>>> Are you able to compile and run a basic c++ program like the
> >> following?
> >>>>>>
> >>>>>> #include<iostream>
> >>>>>>
> >>>>>> int main()
> >>>>>> {
> >>>>>> std::cout<< "Hello world\n";
> >>>>>> return 0;
> >>>>>> }
> >>>>>>
> >>>>>> If not, then you will have to figure out what the problem is
with
> your
> >>>>>> compiler before trying to compile MET. What
> >>>>>> compiler are you trying to use, g++? Can you locate the
stdc++, n
> >> and c
> >>>>>> libraries on your system? The MET makefile
> >>>>>> assumes that they are in a standard location like /usr or
> /usr/local.
> >>>>>>
> >>>>>> Paul
> >>>>>>
> >>>>>>
> >>>>>> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
> >>>>>>>
> >>>>>>> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>>>>>
> >>>>>>> Thanks Paul!
> >>>>>>> I am using the MET3.1 version. I did try the first approach
> (removing
> >>>> the
> >>>>>>> -static flag) but no sucess. I am working on my personal
laptop
> with
> >>>>>>> Fedora 16. I have limitted experience on Linux environment
and
> >> couldn't
> >>>>>> do
> >>>>>>> the sym link. Kindly advise me in this regard.
> >>>>>>> Thank you in advance.
> >>>>>>> Endalk
> >>>>>>>
> >>>>>>> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
> >>>>>>> <met_help at ucar.edu>wrote:
> >>>>>>>
> >>>>>>>> Endalk,
> >>>>>>>>
> >>>>>>>> Your c++ compiler does not seem to be able to find the
standard
> >> system
> >>>>>>>> libraries which it would like to statically link
> >>>>>>>> MET against. I would suggest one of two approaches:
> >>>>>>>>
> >>>>>>>> 1. Depending on what version of MET you are trying to
compile,
> >> remove
> >>>>>> the
> >>>>>>>> '-static' flag from the CXX_FLAGS variable in
> >>>>>>>> either the user_defs.mk file (for METv3.1) or the Makefile
(for
> >>>>>> previous
> >>>>>>>> versions)
> >>>>>>>>
> >>>>>>>> 2. Find the statically linkable system files on your
system, and
> >> talk
> >>>>>> to
> >>>>>>>> your system administrator if you are not sure
> >>>>>>>> how to do this.
> >>>>>>>>
> >>>>>>>> Please let us know if you have any other questions.
> >>>>>>>>
> >>>>>>>> Thanks,
> >>>>>>>>
> >>>>>>>> Paul
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
> >>>>>>>>>
> >>>>>>>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
> >>>>>>>>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
> >>>>>>>>> Queue: met_help
> >>>>>>>>> Subject: Error while compiling MET
> >>>>>>>>> Owner: Nobody
> >>>>>>>>> Requestors: endalkachew.bekele at noaa.gov
> >>>>>>>>> Status: new
> >>>>>>>>> Ticket<URL:
> >>>> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
> >>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> All,
> >>>>>>>>>
> >>>>>>>>> I got the following error message while compiling MET:-
> >>>>>>>>>
> >>>>>>>>> /usr/bin/ld: cannot find -lstdc++
> >>>>>>>>> /usr/bin/ld: cannot find -lm
> >>>>>>>>> /usr/bin/ld: cannot find -lc
> >>>>>>>>> collect2: ld returned 1 exit status
> >>>>>>>>> make[4]: *** [ensemble_stat] Error 1
> >>>>>>>>> make[3]: *** [all] Error 2
> >>>>>>>>> make[2]: *** [all] Error 2
> >>>>>>>>> make[1]: *** [all] Error 2
> >>>>>>>>> make: *** [all] Error 2
> >>>>>>>>>
> >>>>>>>>> Please advise.
> >>>>>>>>>
> >>>>>>>>> Endalk
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>
>
>
--
-----------------------------------------------------------------------------------
Endalkachew Bekele
NOAA Climate Prediction Center / African Desk
5200 Auth Road, Rm 811, Camp Springs, MD 20746, USA
Tel: (301) 763 8000 Ext. 7014
e-mail: endalkachew.bekele at noaa.gov
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #53806] Error while compiling MET
From: Paul Oldenburg
Time: Fri Feb 17 14:59:20 2012
Endalk,
The information on this page may help:
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.1/compilation/req_libs.php
I suggest that you follow the instructions on the online tutorial,
which that page is part of, for compiling all the
dependent libraries and MET itself.
Paul
On 02/17/2012 02:56 PM, Endalkachew Bekele via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>
> For some reason I can't compile the GSL library using gcc, while i
am
> having the latest version of gcc (gcc-4.6.2-1.fc16.i686).
> Endalk
>
> On Fri, Feb 17, 2012 at 4:37 PM, Paul Oldenburg via
RT<met_help at ucar.edu>wrote:
>
>> Endalk,
>>
>> The errors in the make_met.log file that you sent me indicate that
the
>> linker cannot find some GSL library files. These
>> are different from the errors you first reported. Did you compile
the GSL
>> library with the GNU compilers? If not, that
>> may be the cause of these errors. Also, make sure your GSL_BASE
points at
>> the correct folder so that MET can find all
>> required libraries.
>>
>> Paul
>>
>>
>> On 02/17/2012 02:31 PM, Endalkachew Bekele via RT wrote:
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>
>>> Paul,
>>> Please find the log file as well.
>>> Thanks,
>>> Endalk
>>>
>>> On Fri, Feb 17, 2012 at 4:29 PM, Paul Oldenburg via
RT<met_help at ucar.edu
>>> wrote:
>>>
>>>> Endalk,
>>>>
>>>> Please also send me the make_met.log file that shows the compiler
output
>>>> and error message.
>>>>
>>>> Thanks,
>>>>
>>>> Paul
>>>>
>>>>
>>>>
>>>> On 02/17/2012 02:03 PM, Endalkachew Bekele via RT wrote:
>>>>>
>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>
>>>>> Paul,
>>>>> I made changes following your advices, but the error message is
still
>>>> there.
>>>>> Please find the user_defs.mk file.
>>>>> Thanks,
>>>>> Endalk
>>>>>
>>>>> On Fri, Feb 17, 2012 at 3:52 PM, Paul Oldenburg via RT<
>> met_help at ucar.edu
>>>>> wrote:
>>>>>
>>>>>> Endalk,
>>>>>>
>>>>>> Make sure the following two lines are set in your user_defs.mk
or
>>>>>> Makefile, depending on the version of MET that you are
>>>>>> using:
>>>>>>
>>>>>> CXX_LIBS = -L/usr/lib
>>>>>> FC_LIBS = -L/usr/lib -lgfortran
>>>>>>
>>>>>> The fact that you are using .so files means that the static
flag must
>> be
>>>>>> turned off, so make sure it is removed. Then,
>>>>>> do a clean build by running "make clean" and then "make>
>> make_met.log".
>>>>>> If you still have trouble, please send me the
>>>>>> make_met.log file.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>>
>>>>>> On 02/17/2012 01:38 PM, Endalkachew Bekele via RT wrote:
>>>>>>>
>>>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>>>
>>>>>>> Thanks again, Paul.
>>>>>>>
>>>>>>> Yes I am able to compile with both c++ and g++.
>>>>>>> These are the list of stdc++ related libraries in my /usr/lib
>>>> directory:
>>>>>>>
>>>>>>> /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/libstdc++.so.5.0.7
>>>>>>> /usr/lib/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++.so.6
>>>>>>> /usr/lib/libstdc++.so.5
>> /usr/lib/libstdc++.so.6.0.16
>>>>>>>
>>>>>>> Thanks again.
>>>>>>>
>>>>>>> Endalk
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via RT<
>>>> met_help at ucar.edu
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Endalk,
>>>>>>>>
>>>>>>>> Are you able to compile and run a basic c++ program like the
>>>> following?
>>>>>>>>
>>>>>>>> #include<iostream>
>>>>>>>>
>>>>>>>> int main()
>>>>>>>> {
>>>>>>>> std::cout<< "Hello world\n";
>>>>>>>> return 0;
>>>>>>>> }
>>>>>>>>
>>>>>>>> If not, then you will have to figure out what the problem is
with
>> your
>>>>>>>> compiler before trying to compile MET. What
>>>>>>>> compiler are you trying to use, g++? Can you locate the
stdc++, n
>>>> and c
>>>>>>>> libraries on your system? The MET makefile
>>>>>>>> assumes that they are in a standard location like /usr or
>> /usr/local.
>>>>>>>>
>>>>>>>> Paul
>>>>>>>>
>>>>>>>>
>>>>>>>> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
>>>>>>>>>
>>>>>>>>> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>>>>>
>>>>>>>>> Thanks Paul!
>>>>>>>>> I am using the MET3.1 version. I did try the first approach
>> (removing
>>>>>> the
>>>>>>>>> -static flag) but no sucess. I am working on my personal
laptop
>> with
>>>>>>>>> Fedora 16. I have limitted experience on Linux environment
and
>>>> couldn't
>>>>>>>> do
>>>>>>>>> the sym link. Kindly advise me in this regard.
>>>>>>>>> Thank you in advance.
>>>>>>>>> Endalk
>>>>>>>>>
>>>>>>>>> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
>>>>>>>>> <met_help at ucar.edu>wrote:
>>>>>>>>>
>>>>>>>>>> Endalk,
>>>>>>>>>>
>>>>>>>>>> Your c++ compiler does not seem to be able to find the
standard
>>>> system
>>>>>>>>>> libraries which it would like to statically link
>>>>>>>>>> MET against. I would suggest one of two approaches:
>>>>>>>>>>
>>>>>>>>>> 1. Depending on what version of MET you are trying to
compile,
>>>> remove
>>>>>>>> the
>>>>>>>>>> '-static' flag from the CXX_FLAGS variable in
>>>>>>>>>> either the user_defs.mk file (for METv3.1) or the Makefile
(for
>>>>>>>> previous
>>>>>>>>>> versions)
>>>>>>>>>>
>>>>>>>>>> 2. Find the statically linkable system files on your
system, and
>>>> talk
>>>>>>>> to
>>>>>>>>>> your system administrator if you are not sure
>>>>>>>>>> how to do this.
>>>>>>>>>>
>>>>>>>>>> Please let us know if you have any other questions.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>> Paul
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
>>>>>>>>>>>
>>>>>>>>>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
>>>>>>>>>>> Transaction: Ticket created by endalkachew.bekele at noaa.gov
>>>>>>>>>>> Queue: met_help
>>>>>>>>>>> Subject: Error while compiling MET
>>>>>>>>>>> Owner: Nobody
>>>>>>>>>>> Requestors: endalkachew.bekele at noaa.gov
>>>>>>>>>>> Status: new
>>>>>>>>>>> Ticket<URL:
>>>>>> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> All,
>>>>>>>>>>>
>>>>>>>>>>> I got the following error message while compiling MET:-
>>>>>>>>>>>
>>>>>>>>>>> /usr/bin/ld: cannot find -lstdc++
>>>>>>>>>>> /usr/bin/ld: cannot find -lm
>>>>>>>>>>> /usr/bin/ld: cannot find -lc
>>>>>>>>>>> collect2: ld returned 1 exit status
>>>>>>>>>>> make[4]: *** [ensemble_stat] Error 1
>>>>>>>>>>> make[3]: *** [all] Error 2
>>>>>>>>>>> make[2]: *** [all] Error 2
>>>>>>>>>>> make[1]: *** [all] Error 2
>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>
>>>>>>>>>>> Please advise.
>>>>>>>>>>>
>>>>>>>>>>> Endalk
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
------------------------------------------------
Subject: Error while compiling MET
From: Endalkachew Bekele
Time: Fri Feb 17 19:51:48 2012
Paul,
I went through the steps in the online tutorial. I did try different
versions of gsl but kept on ending up with same error message. I have
attached the user_defs.mk and the log file.
Thanks for your patience. I will give it a try next week. Have a great
weekend.
Endalk
On Fri, Feb 17, 2012 at 4:59 PM, Paul Oldenburg via RT
<met_help at ucar.edu>wrote:
> Endalk,
>
> The information on this page may help:
>
>
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.1/compilation/req_libs.php
>
> I suggest that you follow the instructions on the online tutorial,
which
> that page is part of, for compiling all the
> dependent libraries and MET itself.
>
> Paul
>
>
> On 02/17/2012 02:56 PM, Endalkachew Bekele via RT wrote:
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >
> > For some reason I can't compile the GSL library using gcc, while i
am
> > having the latest version of gcc (gcc-4.6.2-1.fc16.i686).
> > Endalk
> >
> > On Fri, Feb 17, 2012 at 4:37 PM, Paul Oldenburg via
RT<met_help at ucar.edu
> >wrote:
> >
> >> Endalk,
> >>
> >> The errors in the make_met.log file that you sent me indicate
that the
> >> linker cannot find some GSL library files. These
> >> are different from the errors you first reported. Did you
compile the
> GSL
> >> library with the GNU compilers? If not, that
> >> may be the cause of these errors. Also, make sure your GSL_BASE
points
> at
> >> the correct folder so that MET can find all
> >> required libraries.
> >>
> >> Paul
> >>
> >>
> >> On 02/17/2012 02:31 PM, Endalkachew Bekele via RT wrote:
> >>>
> >>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>
> >>> Paul,
> >>> Please find the log file as well.
> >>> Thanks,
> >>> Endalk
> >>>
> >>> On Fri, Feb 17, 2012 at 4:29 PM, Paul Oldenburg via RT<
> met_help at ucar.edu
> >>> wrote:
> >>>
> >>>> Endalk,
> >>>>
> >>>> Please also send me the make_met.log file that shows the
compiler
> output
> >>>> and error message.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Paul
> >>>>
> >>>>
> >>>>
> >>>> On 02/17/2012 02:03 PM, Endalkachew Bekele via RT wrote:
> >>>>>
> >>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>>>
> >>>>> Paul,
> >>>>> I made changes following your advices, but the error message
is still
> >>>> there.
> >>>>> Please find the user_defs.mk file.
> >>>>> Thanks,
> >>>>> Endalk
> >>>>>
> >>>>> On Fri, Feb 17, 2012 at 3:52 PM, Paul Oldenburg via RT<
> >> met_help at ucar.edu
> >>>>> wrote:
> >>>>>
> >>>>>> Endalk,
> >>>>>>
> >>>>>> Make sure the following two lines are set in your
user_defs.mk or
> >>>>>> Makefile, depending on the version of MET that you are
> >>>>>> using:
> >>>>>>
> >>>>>> CXX_LIBS = -L/usr/lib
> >>>>>> FC_LIBS = -L/usr/lib -lgfortran
> >>>>>>
> >>>>>> The fact that you are using .so files means that the static
flag
> must
> >> be
> >>>>>> turned off, so make sure it is removed. Then,
> >>>>>> do a clean build by running "make clean" and then "make>
> >> make_met.log".
> >>>>>> If you still have trouble, please send me the
> >>>>>> make_met.log file.
> >>>>>>
> >>>>>> Thanks,
> >>>>>>
> >>>>>> Paul
> >>>>>>
> >>>>>>
> >>>>>> On 02/17/2012 01:38 PM, Endalkachew Bekele via RT wrote:
> >>>>>>>
> >>>>>>> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>>>>>
> >>>>>>> Thanks again, Paul.
> >>>>>>>
> >>>>>>> Yes I am able to compile with both c++ and g++.
> >>>>>>> These are the list of stdc++ related libraries in my
/usr/lib
> >>>> directory:
> >>>>>>>
> >>>>>>> /usr/lib/libstdc++-3-libc6.2-2-
2.10.0.so/usr/lib/libstdc++.so.5.0.7
> >>>>>>> /usr/lib/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++.so.6
> >>>>>>> /usr/lib/libstdc++.so.5
> >> /usr/lib/libstdc++.so.6.0.16
> >>>>>>>
> >>>>>>> Thanks again.
> >>>>>>>
> >>>>>>> Endalk
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via RT<
> >>>> met_help at ucar.edu
> >>>>>>> wrote:
> >>>>>>>
> >>>>>>>> Endalk,
> >>>>>>>>
> >>>>>>>> Are you able to compile and run a basic c++ program like
the
> >>>> following?
> >>>>>>>>
> >>>>>>>> #include<iostream>
> >>>>>>>>
> >>>>>>>> int main()
> >>>>>>>> {
> >>>>>>>> std::cout<< "Hello world\n";
> >>>>>>>> return 0;
> >>>>>>>> }
> >>>>>>>>
> >>>>>>>> If not, then you will have to figure out what the problem
is with
> >> your
> >>>>>>>> compiler before trying to compile MET. What
> >>>>>>>> compiler are you trying to use, g++? Can you locate the
stdc++, n
> >>>> and c
> >>>>>>>> libraries on your system? The MET makefile
> >>>>>>>> assumes that they are in a standard location like /usr or
> >> /usr/local.
> >>>>>>>>
> >>>>>>>> Paul
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
> >>>>>>>>>
> >>>>>>>>> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
> >>>>>>>>>
> >>>>>>>>> Thanks Paul!
> >>>>>>>>> I am using the MET3.1 version. I did try the first
approach
> >> (removing
> >>>>>> the
> >>>>>>>>> -static flag) but no sucess. I am working on my personal
laptop
> >> with
> >>>>>>>>> Fedora 16. I have limitted experience on Linux environment
and
> >>>> couldn't
> >>>>>>>> do
> >>>>>>>>> the sym link. Kindly advise me in this regard.
> >>>>>>>>> Thank you in advance.
> >>>>>>>>> Endalk
> >>>>>>>>>
> >>>>>>>>> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
> >>>>>>>>> <met_help at ucar.edu>wrote:
> >>>>>>>>>
> >>>>>>>>>> Endalk,
> >>>>>>>>>>
> >>>>>>>>>> Your c++ compiler does not seem to be able to find the
standard
> >>>> system
> >>>>>>>>>> libraries which it would like to statically link
> >>>>>>>>>> MET against. I would suggest one of two approaches:
> >>>>>>>>>>
> >>>>>>>>>> 1. Depending on what version of MET you are trying to
compile,
> >>>> remove
> >>>>>>>> the
> >>>>>>>>>> '-static' flag from the CXX_FLAGS variable in
> >>>>>>>>>> either the user_defs.mk file (for METv3.1) or the
Makefile (for
> >>>>>>>> previous
> >>>>>>>>>> versions)
> >>>>>>>>>>
> >>>>>>>>>> 2. Find the statically linkable system files on your
system,
> and
> >>>> talk
> >>>>>>>> to
> >>>>>>>>>> your system administrator if you are not sure
> >>>>>>>>>> how to do this.
> >>>>>>>>>>
> >>>>>>>>>> Please let us know if you have any other questions.
> >>>>>>>>>>
> >>>>>>>>>> Thanks,
> >>>>>>>>>>
> >>>>>>>>>> Paul
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
> >>>>>>>>>>>
> >>>>>>>>>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
> >>>>>>>>>>> Transaction: Ticket created by
endalkachew.bekele at noaa.gov
> >>>>>>>>>>> Queue: met_help
> >>>>>>>>>>> Subject: Error while compiling MET
> >>>>>>>>>>> Owner: Nobody
> >>>>>>>>>>> Requestors: endalkachew.bekele at noaa.gov
> >>>>>>>>>>> Status: new
> >>>>>>>>>>> Ticket<URL:
> >>>>>> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
> >>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> All,
> >>>>>>>>>>>
> >>>>>>>>>>> I got the following error message while compiling MET:-
> >>>>>>>>>>>
> >>>>>>>>>>> /usr/bin/ld: cannot find -lstdc++
> >>>>>>>>>>> /usr/bin/ld: cannot find -lm
> >>>>>>>>>>> /usr/bin/ld: cannot find -lc
> >>>>>>>>>>> collect2: ld returned 1 exit status
> >>>>>>>>>>> make[4]: *** [ensemble_stat] Error 1
> >>>>>>>>>>> make[3]: *** [all] Error 2
> >>>>>>>>>>> make[2]: *** [all] Error 2
> >>>>>>>>>>> make[1]: *** [all] Error 2
> >>>>>>>>>>> make: *** [all] Error 2
> >>>>>>>>>>>
> >>>>>>>>>>> Please advise.
> >>>>>>>>>>>
> >>>>>>>>>>> Endalk
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>
>
>
--
-----------------------------------------------------------------------------------
Endalkachew Bekele
NOAA Climate Prediction Center / African Desk
5200 Auth Road, Rm 811, Camp Springs, MD 20746, USA
Tel: (301) 763 8000 Ext. 7014
e-mail: endalkachew.bekele at noaa.gov
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #53806] Error while compiling MET
From: Paul Oldenburg
Time: Mon Feb 20 08:25:27 2012
Endalk,
I'm resolving this older ticket, since it looks like you opened a new
one. I will reply to the new ticket.
Paul
On 02/17/2012 07:51 PM, Endalkachew Bekele via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>
> Paul,
>
> I went through the steps in the online tutorial. I did try different
> versions of gsl but kept on ending up with same error message. I
have
> attached the user_defs.mk and the log file.
>
> Thanks for your patience. I will give it a try next week. Have a
great
> weekend.
>
> Endalk
>
> On Fri, Feb 17, 2012 at 4:59 PM, Paul Oldenburg via
RT<met_help at ucar.edu>wrote:
>
>> Endalk,
>>
>> The information on this page may help:
>>
>>
>>
http://www.dtcenter.org/met/users/support/online_tutorial/METv3.1/compilation/req_libs.php
>>
>> I suggest that you follow the instructions on the online tutorial,
which
>> that page is part of, for compiling all the
>> dependent libraries and MET itself.
>>
>> Paul
>>
>>
>> On 02/17/2012 02:56 PM, Endalkachew Bekele via RT wrote:
>>>
>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>
>>> For some reason I can't compile the GSL library using gcc, while i
am
>>> having the latest version of gcc (gcc-4.6.2-1.fc16.i686).
>>> Endalk
>>>
>>> On Fri, Feb 17, 2012 at 4:37 PM, Paul Oldenburg via
RT<met_help at ucar.edu
>>> wrote:
>>>
>>>> Endalk,
>>>>
>>>> The errors in the make_met.log file that you sent me indicate
that the
>>>> linker cannot find some GSL library files. These
>>>> are different from the errors you first reported. Did you
compile the
>> GSL
>>>> library with the GNU compilers? If not, that
>>>> may be the cause of these errors. Also, make sure your GSL_BASE
points
>> at
>>>> the correct folder so that MET can find all
>>>> required libraries.
>>>>
>>>> Paul
>>>>
>>>>
>>>> On 02/17/2012 02:31 PM, Endalkachew Bekele via RT wrote:
>>>>>
>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>
>>>>> Paul,
>>>>> Please find the log file as well.
>>>>> Thanks,
>>>>> Endalk
>>>>>
>>>>> On Fri, Feb 17, 2012 at 4:29 PM, Paul Oldenburg via RT<
>> met_help at ucar.edu
>>>>> wrote:
>>>>>
>>>>>> Endalk,
>>>>>>
>>>>>> Please also send me the make_met.log file that shows the
compiler
>> output
>>>>>> and error message.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Paul
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 02/17/2012 02:03 PM, Endalkachew Bekele via RT wrote:
>>>>>>>
>>>>>>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>>>
>>>>>>> Paul,
>>>>>>> I made changes following your advices, but the error message
is still
>>>>>> there.
>>>>>>> Please find the user_defs.mk file.
>>>>>>> Thanks,
>>>>>>> Endalk
>>>>>>>
>>>>>>> On Fri, Feb 17, 2012 at 3:52 PM, Paul Oldenburg via RT<
>>>> met_help at ucar.edu
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Endalk,
>>>>>>>>
>>>>>>>> Make sure the following two lines are set in your
user_defs.mk or
>>>>>>>> Makefile, depending on the version of MET that you are
>>>>>>>> using:
>>>>>>>>
>>>>>>>> CXX_LIBS = -L/usr/lib
>>>>>>>> FC_LIBS = -L/usr/lib -lgfortran
>>>>>>>>
>>>>>>>> The fact that you are using .so files means that the static
flag
>> must
>>>> be
>>>>>>>> turned off, so make sure it is removed. Then,
>>>>>>>> do a clean build by running "make clean" and then "make>
>>>> make_met.log".
>>>>>>>> If you still have trouble, please send me the
>>>>>>>> make_met.log file.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Paul
>>>>>>>>
>>>>>>>>
>>>>>>>> On 02/17/2012 01:38 PM, Endalkachew Bekele via RT wrote:
>>>>>>>>>
>>>>>>>>> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>>>>>
>>>>>>>>> Thanks again, Paul.
>>>>>>>>>
>>>>>>>>> Yes I am able to compile with both c++ and g++.
>>>>>>>>> These are the list of stdc++ related libraries in my
/usr/lib
>>>>>> directory:
>>>>>>>>>
>>>>>>>>> /usr/lib/libstdc++-3-libc6.2-2-
2.10.0.so/usr/lib/libstdc++.so.5.0.7
>>>>>>>>> /usr/lib/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++.so.6
>>>>>>>>> /usr/lib/libstdc++.so.5
>>>> /usr/lib/libstdc++.so.6.0.16
>>>>>>>>>
>>>>>>>>> Thanks again.
>>>>>>>>>
>>>>>>>>> Endalk
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Feb 17, 2012 at 2:36 PM, Paul Oldenburg via RT<
>>>>>> met_help at ucar.edu
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Endalk,
>>>>>>>>>>
>>>>>>>>>> Are you able to compile and run a basic c++ program like
the
>>>>>> following?
>>>>>>>>>>
>>>>>>>>>> #include<iostream>
>>>>>>>>>>
>>>>>>>>>> int main()
>>>>>>>>>> {
>>>>>>>>>> std::cout<< "Hello world\n";
>>>>>>>>>> return 0;
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> If not, then you will have to figure out what the problem
is with
>>>> your
>>>>>>>>>> compiler before trying to compile MET. What
>>>>>>>>>> compiler are you trying to use, g++? Can you locate the
stdc++, n
>>>>>> and c
>>>>>>>>>> libraries on your system? The MET makefile
>>>>>>>>>> assumes that they are in a standard location like /usr or
>>>> /usr/local.
>>>>>>>>>>
>>>>>>>>>> Paul
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 02/17/2012 11:47 AM, Endalkachew Bekele via RT wrote:
>>>>>>>>>>>
>>>>>>>>>>> <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806>
>>>>>>>>>>>
>>>>>>>>>>> Thanks Paul!
>>>>>>>>>>> I am using the MET3.1 version. I did try the first
approach
>>>> (removing
>>>>>>>> the
>>>>>>>>>>> -static flag) but no sucess. I am working on my personal
laptop
>>>> with
>>>>>>>>>>> Fedora 16. I have limitted experience on Linux environment
and
>>>>>> couldn't
>>>>>>>>>> do
>>>>>>>>>>> the sym link. Kindly advise me in this regard.
>>>>>>>>>>> Thank you in advance.
>>>>>>>>>>> Endalk
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Feb 17, 2012 at 12:04 PM, Paul Oldenburg via RT
>>>>>>>>>>> <met_help at ucar.edu>wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Endalk,
>>>>>>>>>>>>
>>>>>>>>>>>> Your c++ compiler does not seem to be able to find the
standard
>>>>>> system
>>>>>>>>>>>> libraries which it would like to statically link
>>>>>>>>>>>> MET against. I would suggest one of two approaches:
>>>>>>>>>>>>
>>>>>>>>>>>> 1. Depending on what version of MET you are trying to
compile,
>>>>>> remove
>>>>>>>>>> the
>>>>>>>>>>>> '-static' flag from the CXX_FLAGS variable in
>>>>>>>>>>>> either the user_defs.mk file (for METv3.1) or the
Makefile (for
>>>>>>>>>> previous
>>>>>>>>>>>> versions)
>>>>>>>>>>>>
>>>>>>>>>>>> 2. Find the statically linkable system files on your
system,
>> and
>>>>>> talk
>>>>>>>>>> to
>>>>>>>>>>>> your system administrator if you are not sure
>>>>>>>>>>>> how to do this.
>>>>>>>>>>>>
>>>>>>>>>>>> Please let us know if you have any other questions.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>
>>>>>>>>>>>> Paul
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 02/17/2012 09:55 AM, Endalkachew Bekele via RT wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Fri Feb 17 09:55:19 2012: Request 53806 was acted upon.
>>>>>>>>>>>>> Transaction: Ticket created by
endalkachew.bekele at noaa.gov
>>>>>>>>>>>>> Queue: met_help
>>>>>>>>>>>>> Subject: Error while compiling MET
>>>>>>>>>>>>> Owner: Nobody
>>>>>>>>>>>>> Requestors: endalkachew.bekele at noaa.gov
>>>>>>>>>>>>> Status: new
>>>>>>>>>>>>> Ticket<URL:
>>>>>>>> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=53806
>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> All,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I got the following error message while compiling MET:-
>>>>>>>>>>>>>
>>>>>>>>>>>>> /usr/bin/ld: cannot find -lstdc++
>>>>>>>>>>>>> /usr/bin/ld: cannot find -lm
>>>>>>>>>>>>> /usr/bin/ld: cannot find -lc
>>>>>>>>>>>>> collect2: ld returned 1 exit status
>>>>>>>>>>>>> make[4]: *** [ensemble_stat] Error 1
>>>>>>>>>>>>> make[3]: *** [all] Error 2
>>>>>>>>>>>>> make[2]: *** [all] Error 2
>>>>>>>>>>>>> make[1]: *** [all] Error 2
>>>>>>>>>>>>> make: *** [all] Error 2
>>>>>>>>>>>>>
>>>>>>>>>>>>> Please advise.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Endalk
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
------------------------------------------------
More information about the Met_help
mailing list