[Met_help] problem with MET compilation
John Halley Gotway
johnhg at ucar.edu
Mon Mar 8 14:00:07 MST 2010
Rabah,
When I tried running the executables you sent, I saw the following error message:
[johnhg at billiken]% bin2/gen_poly_mask
bin2/gen_poly_mask: Command not found.
I did try compiling MET with your settings but didn't get very far. Two things did jump out at me though about your Makefile. Please try making the following changes:
(1) In the line for "FC_LIBS", since you're using the gfortran compiler, you should be linking to "-lgfortran":
FC_LIBS = -L/usr/lib -lgfortran
(2) Since you're using the "-ff2c" compiler option, you do NOT need to call the F2C or G2C library. Just empty out all those lines:
F2C_BASE =
F2C_INCS =
F2C_LIBS =
F2C_LIBNAME =
And then try recompiling to see if anything has improved.
Thanks,
John
hachelaf rabah wrote:
> Sorry i think that i did a mistak about attached file.
> you can find in attached file the executable files.
> for me ,there is what i get when i type ./gen_poly_mask
> [cnpm at localhost bin]$ ./gen_poly_mask
> bash: ./gen_poly_mask: No such file or directory
> can you try to recompile with my makefile , and see if the executables files
> work correctely.
>
> Thank you.
>
>
> 2010/3/4 John Halley Gotway <johnhg at ucar.edu>
>
>> Rabah,
>>
>> It looks like you didn't send any attachments in this message. I have no
>> idea why you're seeing that error message.
>>
>> Try going into the "bin" directory and typing "gen_poly_mask" without the
>> "./" in front. See if that helps. In order for that to work, you'd need to
>> have the current working directory (.) included
>> as part of your path:
>> echo ${PATH}
>>
>> Here's the output from typing "./gen_poly_mask" from the METv2.0/bin
>> directory:
>>
>> [johnhg at billiken]% ./gen_poly_mask
>>
>> *** Model Evaluation Tools (METV2.0) ***
>>
>> Usage: gen_poly_mask
>> data_file
>> mask_poly
>> netcdf_file
>> [-rec i]
>> [-v level]
>>
>> where "data_file" is a gridded file in either GRIB or NetCDF
>> format from which the grid information is to be retrieved (required).
>> "mask_poly" is an ASCII Lat/Lon polyline file defining the
>> masking region (required).
>> "netcdf_file" indicates the name of the output NetCDF mask
>> file to be written (required).
>> "-rec i" specifies the GRIB record number from which the
>> grid information is to be extracted. (optional).
>> "-v level" overrides the default level of logging (2)
>> (optional).
>>
>>
>>
>>
>> hachelaf rabah wrote:
>>> Hello,
>>> of course i run the test_all.sh in the right directory.
>>> but i thik that the problem is from excecutable files:
>>> -rwxr-xr-x 1 cnpm cnpm 1613481 mar 4 10:48 ascii2nc*
>>> -rwxr-xr-x 1 cnpm cnpm 3390715 mar 4 10:48 gen_poly_mask*
>>> -rwxr-xr-x 1 cnpm cnpm 3927548 mar 4 10:48 grid_stat*
>>> -rwxr-xr-x 1 cnpm cnpm 4294227 mar 4 10:48 mode*
>>> -rwxr-xr-x 1 cnpm cnpm 626689 mar 4 10:48 mode_analysis*
>>> -rwxr-xr-x 1 cnpm cnpm 2478793 mar 4 10:48 pb2nc*
>>> -rwxr-xr-x 1 cnpm cnpm 3302140 mar 4 10:48 pcp_combine*
>>> -rwxr-xr-x 1 cnpm cnpm 3855282 mar 4 10:48 point_stat*
>>> -rwxr-xr-x 1 cnpm cnpm 2579165 mar 4 10:48 stat_analysis*
>>> -rwxr-xr-x 1 cnpm cnpm 4082760 mar 4 10:48 wavelet_stat*
>>> so, for exemple when i type :
>>> [cnpm at localhost bin]$ ./gen_poly_mask
>>> there is what i get :
>>> bash: ./gen_poly_mask: No such file or directory
>>> i send you the excecutable files and the Makefile, and please try to
>> excute
>>> it in your machine to see where is the problem.
>>> and also if you can try to run only ./gen_poly_mask in ..../METV2.0/bin
>>> path ,with a right compiled version and let me know what message get you
>> .
>>> Thank you for help.
>>>
More information about the Met_help
mailing list