[Met_help] [rt.rap.ucar.edu #46795] History for error to compile MET v 3.0.1

RAL HelpDesk {for John Halley Gotway} met_help at ucar.edu
Fri Jun 17 14:10:33 MDT 2011


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

Hi, 
I try to compile MET v3.0 in my fedora 14 single computer using gcc and gfortran 
compiler. But when i did  " make " then there were error message "
 /usr/bin/ld: cannot find -lgsl
/usr/bin/ld: cannot find -lstdc++
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc "

How to repair it ???
Here i attach my make_met.log

thanks.

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

Subject: Re: [rt.rap.ucar.edu #46772] error to compile MET v 3.0
From: John Halley Gotway
Time: Tue May 10 12:02:32 2011

Hello,

First, if you're compiling MET for the first time, I'd suggest using
the most recent version which is METv3.0.1.

You can download it here:
   http://www.dtcenter.org/met/users/downloads/index.php

Also, be sure to apply the latest set of patches for that release from
here:
   http://www.dtcenter.org/met/users/support/known_issues/METv3.0.1/index.php

Next, thanks for sending the make_met.log file.  The fact that the
linker can't find the GSL is something that you can fix.  But the fact
that it can't find the stdc++, math, and C libraries is more
troubling.  Those are standard libraries that your build of g++ should
know where to find.  We can try to tell the linker where to look for
those libraries, but it's likely that more issues will arise
if g++ doesn't know where to find the standard libraries.  You may
want to ask a systems administrator if your build of g++ is correctly
installed.

Regarding the GSL problem, you need to have the GNU Scientific Library
installed on your machine so that MET can link to it.  Based on
make_met.log, it looks like you're telling MET to find GSL in
/usr/local/include and /usr/local/lib.  Try executing the following
commands:
  ls /usr/local/include/gsl
  ls /usr/local/lib/libgsl.a
I'm guessing those files don't exist.  Try to locate these on your
system, and modify the top-level MET Makefile to point to them.  By
the way, if you've installed GSL as a Fedora package, it's
possible that you didn't install the "developers" version of it, which
is necessary when compiling MET.

Now about the standard libraries it can't find, on my machine those
are located in /usr/lib.  Look around on your machine for the
following files: libstdc++.a, libm.a, and libc.a.  If you're able to
locate them you could add the following to your top-level MET
Makefile:
   CXX_LIBS     = -L/path/to/those/libraries
   FC_LIBS      = -L/path/to/those/libraries -lgfortran

Hope that helps.

Thanks,
John Halley Gotway
met_help at ucar.edu

On 05/09/2011 08:40 PM, RAL HelpDesk {for fatkhuroyan -} wrote:
>
> Mon May 09 20:40:21 2011: Request 46772 was acted upon.
> Transaction: Ticket created by izzaroyan at yahoo.com
>        Queue: met_help
>      Subject: error to compile MET v 3.0
>        Owner: Nobody
>   Requestors: izzaroyan at yahoo.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=46772 >
>
>
> Hi,
> I try to compile MET v3.0 in my fedora 14 single computer using gcc
and gfortran
> compiler. But when i did  " make " then there were error message "
>  /usr/bin/ld: cannot find -lgsl
> /usr/bin/ld: cannot find -lstdc++
> /usr/bin/ld: cannot find -lm
> /usr/bin/ld: cannot find -lc "
>
> How to repair it ???
> Here i attach my make_met.log
>
> thanks.
>
>
>
>
> Hi,
> I try to compile MET v3.0 in my fedora 14 single computer using gcc
and gfortran
> compiler. But when i did " make " then there were error message "
> /usr/bin/ld: cannot find -lgsl
> /usr/bin/ld: cannot find -lstdc++
> /usr/bin/ld: cannot find -lm
> /usr/bin/ld: cannot find -lc "
>
> How to repair it ???
> Here i attach my make_met.log
>
> thanks.
>
>
>
>

------------------------------------------------
Subject: error to compile MET v 3.0.1
From: fatkhuroyan -
Time: Wed May 11 01:41:52 2011

Hi,
Now i try to compile METv3.0.1 with some improvement.
First, I re-install GSL  gsl-1.15.
Second, I re-install gcc-c++-4.5.1-4.fc14.i686.rpm.
But when i executed 'make' then there was still error message
"/usr/lib: file
not recognized: Is a directory"

Here I attach my make_met.log and Makefile.

Thanks...

Royan
BMKG Indonesia






________________________________
From: RAL HelpDesk {for John Halley Gotway} <met_help at ucar.edu>
To: izzaroyan at yahoo.com
Sent: Wed, May 11, 2011 1:02:32 AM
Subject: Re: [rt.rap.ucar.edu #46772] error to compile MET v 3.0

Hello,

First, if you're compiling MET for the first time, I'd suggest using
the most
recent version which is METv3.0.1.

You can download it here:
  http://www.dtcenter.org/met/users/downloads/index.php

Also, be sure to apply the latest set of patches for that release from
here:
  http://www.dtcenter.org/met/users/support/known_issues/METv3.0.1/index.php

Next, thanks for sending the make_met.log file.  The fact that the
linker can't
find the GSL is something that you can fix.  But the fact that it
can't find the
stdc++, math, and C libraries is more
troubling.  Those are standard libraries that your build of g++ should
know
where to find.  We can try to tell the linker where to look for those
libraries,
but it's likely that more issues will arise
if g++ doesn't know where to find the standard libraries.  You may
want to ask a
systems administrator if your build of g++ is  correctly installed.

Regarding the GSL problem, you need to have the GNU Scientific Library
installed
on your machine so that MET can link to it.  Based on make_met.log, it
looks
like you're telling MET to find GSL in
/usr/local/include and /usr/local/lib.  Try executing the following
commands:
  ls /usr/local/include/gsl
  ls /usr/local/lib/libgsl.a
I'm guessing those files don't exist.  Try to locate these on your
system, and
modify the top-level MET Makefile to point to them.  By the way, if
you've
installed GSL as a Fedora package, it's
possible that you didn't install the "developers" version of it, which
is
necessary when compiling MET.

Now about the standard libraries it can't find, on my machine those
are located
in /usr/lib.  Look around on your machine for the following files:
libstdc++.a,
libm.a, and libc.a.  If you're able to
locate them you could add the following to  your top-level MET
Makefile:
   CXX_LIBS     = -L/path/to/those/libraries
   FC_LIBS      = -L/path/to/those/libraries -lgfortran

Hope that helps.

Thanks,
John Halley Gotway
met_help at ucar.edu

On 05/09/2011 08:40 PM, RAL HelpDesk {for fatkhuroyan -} wrote:
>
> Mon May 09 20:40:21 2011: Request 46772 was acted upon.
> Transaction: Ticket created by izzaroyan at yahoo.com
>        Queue: met_help
>      Subject: error to compile MET v 3.0
>        Owner: Nobody
>   Requestors: izzaroyan at yahoo.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=46772 >
>
>
> Hi,
> I try to compile MET v3.0 in my fedora 14 single computer using gcc
and
>gfortran
>
> compiler. But when i did  " make " then there were error message "
>  /usr/bin/ld: cannot find -lgsl
> /usr/bin/ld: cannot find -lstdc++
> /usr/bin/ld: cannot find -lm
> /usr/bin/ld: cannot find -lc "
>
> How to repair it ???
> Here i attach my make_met.log
>
> thanks.
>
>
>
>
> Hi,
> I try to compile MET v3.0 in my fedora 14 single computer using gcc
and
>gfortran
>
> compiler. But when i did " make " then there were error message "
> /usr/bin/ld: cannot find -lgsl
> /usr/bin/ld: cannot find -lstdc++
> /usr/bin/ld: cannot find  -lm
> /usr/bin/ld: cannot find -lc "
>
> How to repair it ???
> Here i attach my make_met.log
>
> thanks.
>
>
>
>

------------------------------------------------
Subject: error to compile MET v 3.0.1
From: fatkhuroyan -
Time: Wed May 11 01:44:30 2011






________________________________

Hi,
Now i try to compile METv3.0.1 with some improvement.
First, I re-install GSL  gsl-1.15.
Second, I re-install gcc-c++-4.5.1-4.fc14.i686.rpm.
But when i executed 'make' then there was still error message
"/usr/lib: file
not recognized: Is a directory"

Here I attach my make_met.log and Makefile.

Thanks...

Royan
BMKG Indonesia






________________________________
From: RAL HelpDesk {for John Halley Gotway} <met_help at ucar.edu>
To: izzaroyan at yahoo.com
Sent: Wed, May 11, 2011 1:02:32 AM
Subject: Re: [rt.rap.ucar.edu #46772] error to compile MET v 3.0

Hello,

First, if you're compiling MET for the first time, I'd suggest using
the most
recent version which is METv3.0.1.

You can download it here:
  http://www.dtcenter.org/met/users/downloads/index.php

Also, be sure to apply the latest set of patches for that release from
here:
  http://www.dtcenter.org/met/users/support/known_issues/METv3.0.1/index.php

Next, thanks for sending the make_met.log file.  The fact that the
linker can't
find the GSL is something that you can fix.  But the fact that it
can't find the

stdc++, math, and C libraries is more
troubling.  Those are standard libraries that your build of g++ should
know
where to find.  We can try to tell the linker where to look for those
libraries,

but it's likely that more issues will arise
if g++ doesn't know where to find the standard libraries.  You may
want to ask a

systems administrator if your build of g++ is  correctly installed.

Regarding the GSL problem, you need to have the GNU Scientific Library
installed

on your machine so that MET can link to it.  Based on make_met.log, it
looks
like you're telling MET to find GSL in
/usr/local/include and /usr/local/lib.  Try executing the following
commands:
  ls /usr/local/include/gsl
  ls /usr/local/lib/libgsl.a
I'm guessing those files don't exist.  Try to locate these on your
system, and
modify the top-level MET Makefile to point to them.  By the way, if
you've
installed GSL as a Fedora package, it's
possible that you didn't install the "developers" version of it, which
is
necessary when compiling MET.

Now about the standard libraries it can't find, on my machine those
are located
in /usr/lib.  Look around on your machine for the following files:
libstdc++.a,
libm.a, and libc.a.  If you're able to
locate them you could add the following to  your top-level MET
Makefile:
   CXX_LIBS     = -L/path/to/those/libraries
   FC_LIBS      = -L/path/to/those/libraries -lgfortran

Hope that helps.

Thanks,
John Halley Gotway
met_help at ucar.edu

On 05/09/2011 08:40 PM, RAL HelpDesk {for fatkhuroyan -} wrote:
>
> Mon May 09 20:40:21 2011: Request 46772 was acted upon.
> Transaction: Ticket created by izzaroyan at yahoo.com
>        Queue: met_help
>      Subject: error to compile MET v 3.0
>        Owner: Nobody
>   Requestors: izzaroyan at yahoo.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=46772 >
>
>
> Hi,
> I try to compile MET v3.0 in my fedora 14 single computer using gcc
and
>gfortran
>
> compiler. But when i did  " make " then there were error message "
>  /usr/bin/ld: cannot find -lgsl
> /usr/bin/ld: cannot find -lstdc++
> /usr/bin/ld: cannot find -lm
> /usr/bin/ld: cannot find -lc "
>
> How to repair it ???
> Here i attach my make_met.log
>
> thanks.
>
>
>
>
> Hi,
> I try to compile MET v3.0 in my fedora 14 single computer using gcc
and
>gfortran
>
> compiler. But when i did " make " then there were error message "
> /usr/bin/ld: cannot find -lgsl
> /usr/bin/ld: cannot find -lstdc++
> /usr/bin/ld: cannot find  -lm
> /usr/bin/ld: cannot find -lc "
>
> How to repair it ???
> Here i attach my make_met.log
>
> thanks.
>
>
>
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #46795] error to compile MET v 3.0.1
From: John Halley Gotway
Time: Mon May 16 10:40:43 2011

Royan,

You are receiving this error message because of a bad setting in your
top-level MET Makefile.

Take a look in your Makefile for the following two lines:
CXX_LIBS     = /usr/lib
FC_LIBS      = /usr/lib -lgfortran

You need to put a '-L' in front of the /usr/lib, as follows:
CXX_LIBS     = -L/usr/lib
FC_LIBS      = -L/usr/lib -lgfortran

Please try making that change and recompiling.

Thanks,
John


On 05/11/2011 01:46 AM, RAL HelpDesk {for fatkhuroyan -} wrote:
>
> Wed May 11 01:46:20 2011: Request 46795 was acted upon.
> Transaction: Ticket created by izzaroyan at yahoo.com
>        Queue: met_help
>      Subject: error to compile MET v 3.0.1
>        Owner: Nobody
>   Requestors: izzaroyan at yahoo.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=46795 >
>
>
> Hi,
> Now i try to compile METv3.0.1 with some improvement.
> First, I re-install GSL  gsl-1.15.
> Second, I re-install gcc-c++-4.5.1-4.fc14.i686.rpm.
> But when i executed 'make' then there was still error message
"/usr/lib: file
> not recognized: Is a directory"
>
> Here I attach my make_met.log and Makefile.
>
> Thanks...
>
> Royan
> BMKG Indonesia
>
>
>
>
> Hi,
> Now i try to compile METv3.0.1 with some improvement.
> First, I re-install GSL gsl-1.15.
> Second, I re-install gcc-c++-4.5.1-4.fc14.i686.rpm.
> But when i executed 'make' then there was still error message
"/usr/lib: file
> not recognized: Is a directory"
>
> Here I attach my make_met.log and Makefile.
>
> Thanks...
>
> Royan
> BMKG Indonesia
>
>
>
>
>

------------------------------------------------
Subject: error to compile MET v 3.0.1
From: fatkhuroyan -
Time: Wed May 18 01:37:55 2011

I had put  a '-L' in front of the /usr/lib but there were still error
message in
my compilation " /usr/bin/ld: cannot find -lstdc++".
Here i attach my make_met.log and my makefile again

Thanks.







________________________________
From: RAL HelpDesk {for John Halley Gotway} <met_help at ucar.edu>
To: izzaroyan at yahoo.com
Sent: Mon, May 16, 2011 11:40:44 PM
Subject: Re: [rt.rap.ucar.edu #46795] error to compile MET v 3.0.1

Royan,

You are receiving this error message because of a bad setting in your
top-level
MET Makefile.

Take a look in your Makefile for the following two lines:
CXX_LIBS     = /usr/lib
FC_LIBS      = /usr/lib -lgfortran

You need to put a '-L' in front of the /usr/lib, as follows:
CXX_LIBS     = -L/usr/lib
FC_LIBS      = -L/usr/lib -lgfortran

Please try making that change and recompiling.

Thanks,
John


On 05/11/2011 01:46 AM, RAL HelpDesk {for fatkhuroyan -} wrote:
>
> Wed May 11 01:46:20 2011: Request 46795 was acted upon.
> Transaction: Ticket created by izzaroyan at yahoo.com
>        Queue: met_help
>      Subject: error to compile MET v 3.0.1
>        Owner: Nobody
>   Requestors: izzaroyan at yahoo.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=46795 >
>
>
> Hi,
> Now i try to compile METv3.0.1 with some improvement.
> First, I re-install GSL  gsl-1.15.
> Second, I re-install gcc-c++-4.5.1-4.fc14.i686.rpm.
> But when i executed 'make' then there was still error message
"/usr/lib: file
> not recognized: Is a directory"
>
> Here I attach my make_met.log and Makefile.
>
> Thanks...
>
> Royan
> BMKG Indonesia
>
>
>
>
> Hi,
> Now i try to compile METv3.0.1 with some improvement.
> First, I re-install GSL gsl-1.15.
> Second, I re-install gcc-c++-4.5.1-4.fc14.i686.rpm.
> But when i executed 'make' then there was still error message
"/usr/lib: file
> not recognized: Is a directory"
>
> Here I attach my make_met.log and Makefile.
>
> Thanks...
>
> Royan
> BMKG Indonesia
>
>
>
>
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #46795] error to compile MET v 3.0.1
From: John Halley Gotway
Time: Wed May 18 09:12:00 2011

Royan,

Again, let me mention that the fact that your C++ compiler can't find
the stdc++ library is problematic.  Really, g++ should know where to
find that library without having to be told explicitly where
to find it.

Since we're doing static linking in MET, the linker is looking for a
file named "libstdc++.a".  I suspect that the file
"/usr/lib/libstdc++.a" does not exist on your system, and that's why
the
"-L/usr/lib" isn't fixing the problem.  I'd suggest looking around on
your machine for that file "libstdc++.a".  When you find it, add that
directory to your Makefile in the same way:
"-L/path/to/library/directory".

Another think you may find useful is printing out the linker map.
This will give you a whole lot of output so you'll want to write the
output of make to a log file.  But this will tell you where the
linker is finding each and every library to which it is linking.
You'd turn this on by add "-Xlinker -M" to the CXX_FLAGS setting:
   CXX_FLAGS    = -Wall -Wshadow -static -Xlinker -M # -g -m32

Hope that helps.

John


On 05/18/2011 01:37 AM, RAL HelpDesk {for fatkhuroyan -} wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=46795 >
>
> I had put  a '-L' in front of the /usr/lib but there were still
error message in
> my compilation " /usr/bin/ld: cannot find -lstdc++".
> Here i attach my make_met.log and my makefile again
>
> Thanks.
>
>
>
>
>
>
>
> ________________________________
> From: RAL HelpDesk {for John Halley Gotway} <met_help at ucar.edu>
> To: izzaroyan at yahoo.com
> Sent: Mon, May 16, 2011 11:40:44 PM
> Subject: Re: [rt.rap.ucar.edu #46795] error to compile MET v 3.0.1
>
> Royan,
>
> You are receiving this error message because of a bad setting in
your top-level
> MET Makefile.
>
> Take a look in your Makefile for the following two lines:
> CXX_LIBS     = /usr/lib
> FC_LIBS      = /usr/lib -lgfortran
>
> You need to put a '-L' in front of the /usr/lib, as follows:
> CXX_LIBS     = -L/usr/lib
> FC_LIBS      = -L/usr/lib -lgfortran
>
> Please try making that change and recompiling.
>
> Thanks,
> John
>
>
> On 05/11/2011 01:46 AM, RAL HelpDesk {for fatkhuroyan -} wrote:
>>
>> Wed May 11 01:46:20 2011: Request 46795 was acted upon.
>> Transaction: Ticket created by izzaroyan at yahoo.com
>>        Queue: met_help
>>      Subject: error to compile MET v 3.0.1
>>        Owner: Nobody
>>   Requestors: izzaroyan at yahoo.com
>>       Status: new
>>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=46795 >
>>
>>
>> Hi,
>> Now i try to compile METv3.0.1 with some improvement.
>> First, I re-install GSL  gsl-1.15.
>> Second, I re-install gcc-c++-4.5.1-4.fc14.i686.rpm.
>> But when i executed 'make' then there was still error message
"/usr/lib: file
>> not recognized: Is a directory"
>>
>> Here I attach my make_met.log and Makefile.
>>
>> Thanks...
>>
>> Royan
>> BMKG Indonesia
>>
>>
>>
>>
>> Hi,
>> Now i try to compile METv3.0.1 with some improvement.
>> First, I re-install GSL gsl-1.15.
>> Second, I re-install gcc-c++-4.5.1-4.fc14.i686.rpm.
>> But when i executed 'make' then there was still error message
"/usr/lib: file
>> not recognized: Is a directory"
>>
>> Here I attach my make_met.log and Makefile.
>>
>> Thanks...
>>
>> Royan
>> BMKG Indonesia
>>
>>
>>
>>
>>

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


More information about the Met_help mailing list