[Met_help] MET installation problem
John Halley Gotway
johnhg at ucar.edu
Tue Feb 23 08:15:02 MST 2010
Litta,
It looks like your compiler is having a lot of problems with include files. For example, it's finding the definition for the "abs" (absolute value function) in two different locations. This looks
like more of a problem with your compiler than with the MET code itself. I looked at the include directories on our IBM and found the file "stdlib.h", but I did not find the file "cstdlib". Those
are the two files on your system which contain the conflicting definitions of "abs".
Unfortunately, there's not much I can do to help. You'll need to find someone to help you resolve these issues with your compiler. And it'd be good to compile some simple C++ code using that
compiler to make sure the compiler is working as expected.
Sorry I can't be of more help.
John
Litta A J wrote:
> Dear sir,
>
> Thank you very much for your immediate reply.. I have solved the previous
> problem by seeing one mail in the user group (*Fri Jan 22 14:24:45 MST 2010)
> *. I have got that error, because I have not properly installed the netcdf
> files. I have reinstalled the netcdf as specified in the met users site and
> got the include files properly. But now i am getting the previous error in
> vx_nav as below.
>
> *** Making vx_nav Library ***
> make[3]: Entering directory `/user2/litta/MET_T/METv2.0/lib/vx_nav'
> /usr/vacpp/bin/xlC nav.cc -g -qfullpath -c -I..
> "/usr/vacpp/include/cstdlib", line 72.15: 1540-0403 (S) "abs(long)" is
> already defined.
> "/usr/vacpp/include/stdlib.h", line 146.32: 1540-0425 (I) "abs" is defined
> on line 146 of "/usr/vacpp/include/stdlib.h".
> "/usr/vacpp/include/stdlib.h", line 38.32: 1540-0424 (I) "abs" is declared
> on line 38 of "/usr/vacpp/include/stdlib.h".
> make[3]: *** [nav.o] Error 1
> make[3]: Leaving directory `/user2/litta/MET_T/METv2.0/lib/vx_nav'
> make[2]: *** [vx_nav_all] Error 2
> make[2]: Leaving directory `/user2/litta/MET_T/METv2.0/lib/vx_nav'
> make[1]: *** [libs] Error 2
> make[1]: Leaving directory `/user2/litta/MET_T/METv2.0'
> make: *** [all] Error 2
> I have changed the position as i did previously. then also i am not able to
> solve the problem. Is this a solution or Please give a valuable
> suggestion... I am happy that, I can progress upto the vx_nav library
> installation.
>
> with best regards,
> Litta
>
>
> *** Making vx_nav Library ***
>
> make[3]: Entering directory `/user2/litta/MET_T/METv2.0/lib/vx_nav'
> /usr/vacpp/bin/xlC nav.cc -g -qfullpath -c -I..
> "/usr/vacpp/include/cstdlib", line 72.15: 1540-0403 (S) "abs(long)" is
> already defined.
> "/usr/vacpp/include/stdlib.h", line 146.32: 1540-0425 (I) "abs" is defined
> on line 146 of "/usr/vacpp/include/stdlib.h".
> "/usr/vacpp/include/stdlib.h", line 38.32: 1540-0424 (I) "abs" is declared
> on line 38 of "/usr/vacpp/include/stdlib.h".
> make[3]: *** [nav.o] Error 1
> make[3]: Leaving directory `/user2/litta/MET_T/METv2.0/lib/vx_nav'
> make[2]: *** [vx_nav_all] Error 2
> make[2]: Leaving directory `/user2/litta/MET_T/METv2.0/lib/vx_nav'
> make[1]: *** [libs] Error 2
> make[1]: Leaving directory `/user2/litta/MET_T/METv2.0'
> make: *** [all] Error 2
>
>
> On Tue, Feb 23, 2010 at 12:38 PM, Litta A J <littaaj at gmail.com> wrote:
>
>> Dear sir,
>>
>> Thank you very much for your valuable information.. I have recovered from
>> that problem. Thats not because of compiler problem.. I got the information
>> from the net that to change the position of #include<cmath> under the
>> #include<cstdlib>. I have changed like that in vx_color.cc program. But now
>> i am facing another problem. Please go through the following errors... I am
>> attaching both the programs (read_netcdf.h, write_netcdf.h). Previously i
>> got another error like netcdf.h is not found. So I have changed the line
>> #include"netcdf.hh" to #include"netcdf.h". Then i am getting the following
>> error.
>>
>> *** Making vx_color Library ***
>> /usr/vacpp/bin/xlC cfile.tab.cc -g -qfullpath -c -I..
>> /usr/vacpp/bin/xlC lex.color.cc -g -qfullpath -c -I..
>> /usr/vacpp/bin/xlC vx_clist.cc -g -qfullpath -c -I..
>> /usr/vacpp/bin/xlC vx_color.cc -g -qfullpath -c -I..
>> /usr/vacpp/bin/xlC vx_ctable.cc -g -qfullpath -c -I..
>> ar -rs libvx_color.a cfile.tab.o lex.color.o vx_clist.o vx_color.o
>> vx_ctable.o
>> ar: Creating an archive file libvx_color.a.
>> ranlib libvx_color.a
>> cp libvx_color.a ../.
>> *** Making vx_contable Library ***
>> /usr/vacpp/bin/xlC vx_contable.cc -g -qfullpath -c -I..
>> /usr/vacpp/bin/xlC vx_contable_stats.cc -g -qfullpath -c -I..
>> -I/user2/litta/MET_T/gsl-1.11/include
>> -I/user2/litta/MET_T/netcdf-3.6.2/include
>> "../vx_met_util/read_netcdf.h", line 26.38: 1540-0063 (S) The text "," is
>> unexpected.
>> "../vx_met_util/read_netcdf.h", line 28.33: 1540-0063 (S) The text "," is
>> unexpected.
>> "../vx_met_util/read_netcdf.h", line 31.34: 1540-0063 (S) The text "," is
>> unexpected.
>> "../vx_met_util/write_netcdf.h", line 24.39: 1540-0063 (S) The text "," is
>> unexpected.
>> make[3]: *** [vx_contable_stats.o] Error 1
>> make[2]: *** [vx_contable_all] Error 2
>>
>> make[1]: *** [libs] Error 2
>> make: *** [all] Error 2
>> With best regards,
>> Litta
>>
>>
>>
>> --
>> ***********************************************
>> Ms. Litta A. J
>> Project Scientist,
>> Centre for Atmospheric Sciences,
>> Indian Institute of Technology (IIT),Delhi,
>> Hauz Khas,
>> New Delhi - 110016
>> ***********************************************
>>
>
More information about the Met_help
mailing list