[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #KLE-374514]: help: install netcdf 4.1.1



Jinyun,

> I tried your advice, however, it still failed. I checked the config.log
> file, it says
> 
> configure:25499: checking for H5Fflush in -lhdf5
> configure:25524: icc -o conftest -O3 -ip -no-prec-div -static
> -I/usr/include -L/usr/lib conftest.c -lhdf5 -lm -lz -lhdf5 >&5
> ld: cannot find -lhdf5
> configure:25547: error: Can't find or link to the hdf5 library. Configure
> with --disable-netcdf-4 or see config.log for errors.

You have a config.log file that has more detail about why icc couldn't
link with the installed /usr/lib/libhdf5.so.6.0.4.  It may be that icc
is looking for a 32-bit library and the installed library was built
for 64-bit, or vice-versa.  There may be an error message in
config.log, near the end of that file just before the lines

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

that provides more information about the failure to link.  You could
also run the command

  file /usr/lib/libhdf5.so.6.0.4

that will tell you what kind of library it is, including whether it's
32-bit or 64-bit.  You may need to provide a "-m32" or "-m64" flag to
your compiler to match the kind of library, or rebuild the library to
match your defaults.

--Russ

> ac_cv_header_hdf5_h=yes
> ac_cv_lib_hdf5_H5Fflush=no
> LIBS=' -lm -lz -lhdf5'
> 
> *apparently, it can not find libhdf5.so, however, I find it is there, by
> specifying --with-hdf5=/usr
> *
> Do you have some other advice to try? BTW, I removed -xT in the configure
> process, which removed some warnings.
> 
> 
> lrwxrwxrwx 1 root root 20 2011-01-11 12:49 /usr/lib/libhdf5_cpp.so ->
> libhdf5_cpp.so.6.0.4
> lrwxrwxrwx 1 root root 20 2011-01-11 12:49 /usr/lib/libhdf5_cpp.so.6 ->
> libhdf5_cpp.so.6.0.4
> -rwxr-xr-x 1 root root 426113 2011-01-05 15:35
> /usr/lib/libhdf5_cpp.so.6.0.4
> lrwxrwxrwx 1 root root 24 2011-01-11 12:49 /usr/lib/libhdf5_fortran.so
> -> libhdf5_fortran.so.6.0.4
> lrwxrwxrwx 1 root root 24 2011-01-11 12:49
> /usr/lib/libhdf5_fortran.so.6 -> libhdf5_fortran.so.6.0.4
> -rwxr-xr-x 1 root root 304255 2011-01-05 15:35
> /usr/lib/libhdf5_fortran.so.6.0.4
> lrwxrwxrwx 1 root root 23 2011-01-11 12:49 /usr/lib/libhdf5_hl_cpp.so
> -> libhdf5_hl_cpp.so.6.0.4
> lrwxrwxrwx 1 root root 23 2011-01-11 12:49 /usr/lib/libhdf5_hl_cpp.so.6
> -> libhdf5_hl_cpp.so.6.0.4
> -rwxr-xr-x 1 root root 12652 2011-01-05 15:35
> /usr/lib/libhdf5_hl_cpp.so.6.0.4
> lrwxrwxrwx 1 root root 26 2011-01-11 12:49
> /usr/lib/libhdf5hl_fortran.so -> libhdf5hl_fortran.so.6.0.4
> lrwxrwxrwx 1 root root 26 2011-01-11 12:49
> /usr/lib/libhdf5hl_fortran.so.6 -> libhdf5hl_fortran.so.6.0.4
> -rwxr-xr-x 1 root root 71686 2011-01-05 15:35
> /usr/lib/libhdf5hl_fortran.so.6.0.4
> lrwxrwxrwx 1 root root 19 2011-01-11 12:49 /usr/lib/libhdf5_hl.so ->
> libhdf5_hl.so.6.0.4
> lrwxrwxrwx 1 root root 19 2011-01-11 12:49 /usr/lib/libhdf5_hl.so.6 ->
> libhdf5_hl.so.6.0.4
> -rwxr-xr-x 1 root root 137604 2011-01-05 15:35 /usr/lib/libhdf5_hl.so.6.0.4
> *lrwxrwxrwx 1 root root 16 2011-01-11 12:49 /usr/lib/libhdf5.so ->
> libhdf5.so.6.0.4
> lrwxrwxrwx 1 root root 16 2011-01-11 12:49 /usr/lib/libhdf5.so.6 ->
> libhdf5.so.6.0.4
> *-rwxr-xr-x 1 root root 3062014 2011-01-05 15:35 /usr/lib/libhdf5.so.6.0.4

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: KLE-374514
Department: Support netCDF
Priority: Normal
Status: Closed