adriant@princeton_edu
New Member
Hi,I've spent the past few days attempting to port CESM 1.2.2 to a Linux cluster (intel compiler, openmpi) and have been particularly stumped by the following error: ld: warning: libhdf5_hl.so.8, needed by /usr/local/netcdf/intel-12.1/hdf5-1.8.12/openmpi-1.6.3/4.3.1.1/lib64/libnetcdf.so, not found (try using -rpath or -rpath-link)ld: warning: libhdf5.so.8, needed by /usr/local/netcdf/intel-12.1/hdf5-1.8.12/openmpi-1.6.3/4.3.1.1/lib64/libnetcdf.so, not found (try using -rpath or -rpath-link)These errors are followed by many "undefined reference to" errors. I've attached the CESM build log. The corresponding hdf5 libraries are available at /usr/local/hdf5/intel-12.1/openmpi-1.6.3/1.8.12/lib64, I'm just not sure how to make them available for the netcdf libraries, which are at /usr/local/netcdf/intel-12.1/hdf5-1.8.12/openmpi-1.6.3/4.3.1.1/lib64/. I've also attached my Macros and env_mach_specific files for the port. To deal with previous issues, I applied the patch described here, just fyi, although I haven't had any trouble with the pio or csm_share builds in awhile. I also tried to follow along here, but stopped understanding what to do around #13. For some reason, "nc-config --flibs" returns "--flibs: unknown option". I'm not sure where I would set the "netcdf -flibs flags" that rambhari0123 mentions; does that mean in the Macros file? Please excuse my lack of experience.Adrian