[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #JAZ-406499]: Configure error cannot compute size of (off_t)
- Subject: [netCDF #JAZ-406499]: Configure error cannot compute size of (off_t)
- Date: Tue, 17 Jan 2017 10:51:37 -0700
Hello,
From the config.log file you provided, I see the following error:
````
configure:21441: ./conftest
./conftest: error while loading shared libraries: libnetcdf.so.11: cannot open
shared object file: No such file or directory
configure:21441: $? = 127
````
This suggests to me that the runtime loader cannot find `libnetcdf.so.11` at
runtime, when attempting to run the temporary `conftest` program it created
(successfully) to compute the size of the `off_t` data type.
Since your netCDF library is located in a non-standard location, the runtime
loader must be told where to find it. This is controlled using the
`LD_LIBRARY_PATH` environmental variable. In this case, you would set
LD_LIBRARY_PATH=${NCDIR}/lib
This will tell the runtime loader to look in
/home/piyush/model/libs/ncdf_install/lib in addition to standard locations
(/usr/lib, for example).
I hope this helps, have a great day,
-Ward
> Hi,
>
> I wrote several mail regarding this problem and was not satisfactorily
> replied.
> Is this problem from my OS/PC/Compiler or this is a software glitch, I need
> to do something about it.
> I have attached the log files for netcdf fortran installations (v4.2,
> v4.4.3, v4.4.4)
>
> *checking size of off_t... configure: error: in
> `/home/piyush/netcdf-fortran-4.4.4':*
> *configure: error: cannot compute sizeof (off_t)*
> *See `config.log' for more details*
>
>
> The command to configure was
>
> CPPFLAGS=-I${NCDIR}/include LDFLAGS=-L${NCDIR}/lib \
> ./configure --prefix=${NFDIR}
>
>
>
> The NFDIR and NCDIR are the same "*/home/piyush/model/libs/ncdf_install"*
> [piyush@localhost lib]$ pwd
> */home/piyush/model/libs/ncdf_install/lib*
> [piyush@localhost lib]$ ls -lrt
> total 2468
> *-rwxr-xr-x. 1 piyush piyush 1164995 Jan 6 10:58 libnetcdf.so.11.0.3*
> *lrwxrwxrwx. 1 piyush piyush 19 Jan 6
> 10:58 libnetcdf.so.11 -> libnetcdf.so.11.0.3*
> *lrwxrwxrwx. 1 piyush piyush 19 Jan 6
> 10:58 libnetcdf.so -> libnetcdf.so.11.0.3*
> *-rwxr-xr-x. 1 piyush piyush 964 Jan 6 10:58 libnetcdf.la
> <http://libnetcdf.la/>*
> *-rw-r--r--. 1 piyush piyush 1344382 Jan 6 10:58 libnetcdf.a*
> *drwxrwxr-x. 2 piyush piyush 4096 Jan 6 10:58 pkgconfig*
> *-rw-r--r--. 1 piyush piyush 698 Jan 6 10:58 libnetcdf.settings*
>
>
> Please find the attached-log file(s)
>
> *Plz. note:*The installation procedure was similar only once I changed the
> directory of installation (v4.4.3).
>
>
> Thanks and Regards
>
> -------------------------------------------------------------------------------------------------
>
> *Piyush Bhardwaj*,
> Post-Doctoral Fellow
> 211 Samsung Environmental Research Center,
> School of Earth Sciences and Environmental Engineering,
> Gwangju Institute of Science and Technology (GIST),
> 123 Cheomdangwagi-ro (Oryong-dong), Buk-gu,
> Gwangju 61005, Republic of Korea
> Email: * address@hidden <address@hidden>*,
> *address@hidden
> <address@hidden>*
> Tel. no. +82 62 715 3319
> Mob. no. +82 10 4277 8707
>
> --------------------------------------------------------------------------------------------------
>
>
Ticket Details
===================
Ticket ID: JAZ-406499
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.