Opened 10 years ago
Closed 9 years ago
#105 closed Support (worksforme)
error when compiling flexpart-wrf 3.1
Reported by: | metroid2012 | Owned by: | jbrioude |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | FP coding/compilation | Version: | FLEXPART-WRF |
Keywords: | Cc: |
Description
i'm trying to compile flexpart-warf and after installing jasper and grib-api libraries. when it comes to compiling either whith parallel or serial it shows the error of a file netcdf.inc not founded..how can i solve this problem?
rq: i've a kubuntu 14.04 trusty tahr x 64 version
Change History (12)
comment:1 Changed 10 years ago by pesei
- Priority changed from critical to minor
- Type changed from Defect to Support
comment:2 follow-up: ↓ 3 Changed 10 years ago by jbrioude
- Owner changed from somebody to jbrioude
- Status changed from new to assigned
comment:3 in reply to: ↑ 2 Changed 10 years ago by pesei
Replying to jbrioude:
your compilation problem is most likely due to the fact that ${NETCDF}/include/netcdf.inc doesn't exist.
I have a Debian system which is probably very similar to Ubuntu. I also don't have netcdf.inc - because the standard Deb package for netcdf is netcdf-bin. I could imagine that netcdf-dbg (debugging) or some other netcdf-related package is required.
comment:4 Changed 10 years ago by jbrioude
I don't know if the required files are available when using a repository from debian/ubuntu.
I personally had to compile a netcdf library manually to get the famous netcdf.inc file.
comment:5 follow-up: ↓ 6 Changed 10 years ago by metroid2012
how to do that manually?
comment:6 in reply to: ↑ 5 Changed 10 years ago by pesei
Replying to metroid2012:
how to do that manually?
Can you install the netcdf-dbg package and check whether it includes the inc file?
comment:7 Changed 10 years ago by pesei
See also http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2006/msg00005.html and lots of similar threads on various dicussion lists / fora. One could research them. Also, maybe it's sufficient to get the source code of the netcdf lib (same version you have installed), unpack it, and maybe it already has this file.
comment:8 Changed 10 years ago by metroid2012
i solved that problem when i used netcdf fortran...but now when it comes to the makefile with omp i sow an error saying:
comment:9 Changed 10 years ago by metroid2012
comment:10 Changed 9 years ago by jbrioude
- Status changed from assigned to accepted
Hi metroid,
I don't know if you solved your problem, but it is most likely a missing library in your makefile. make sure you have the right path and the link options needed.
It is going to be difficult to solve remotely, and I suggest you to get help from someone who has a general knowledge compilation if you have not solved your problem.
comment:11 Changed 9 years ago by metroid2012
no it's still missing something. perhaps there is an error during installation of grib-api library.i'll check with a friend what is going wrong anyway.
comment:12 Changed 9 years ago by pesei
- Resolution set to worksforme
- Status changed from accepted to closed
It seems that no futher problems do exist.
make sure that all the path in makefile.mom are correctly set up.
Your problem is most likely related to the path defined by the NETCDF variable. your compilation problem is most likely due to the fact that ${NETCDF}/include/netcdf.inc doesn't exist.