[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #NJI-923427]: query
- Subject: [netCDF #NJI-923427]: query
- Date: Thu, 29 Jun 2017 17:31:39 -0600
Hello,
You will want to address this by setting the CFLAGS, LDFLAGS environmental
variables. For example, if the hdf5 library was installed using prefix
$HOME/local, you would first set/modify CFLAGS and LDFLAGS as follows:
$ export CFLAGS="-I$HOME/local/include"
$ export LDFLAGS="-L$HOME/local/lib"
If libhdf5 had been built as a shared library, it's likely that you would need
to also set the following:
$ export LD_LIBRARY_PATH="$HOME/local/lib"
I hope this helps, have a great day,
-Ward
> Greetings,
>
> I am attempting to compile netcdf and it seems there are issues finding hdf5.
>
> With most configure scripts now-a-days, a simple --with-hdf5=dir would point
> the software in the needed direction.
>
> Unfortunately, I do not see such an option. Could you please recommend the
> designed method?
>
>
>
> 1137 2017-06-29 17:17:19 ../netcdf-4.4.1.1/configure --help
> 1138 2017-06-29 17:21:12 ls
> 1139 2017-06-29 17:21:37 ../netcdf-4.4.1.1/configure
> --prefix=$HOME/WRF/OTHER --enable-mmap --enable-fsync --enable-jna
> --enable-dynamic-loading --enable-hdf4 --enable-hdf4-file-tests
> --enable-extra-example-tests --enable-parallel-tests --enable-logging
> --disable-dap-remote-tests --enable-extra-tests --enable-large-file-tests
> --enable-benchmarks --enable-shared --enable-mmap --enable-pnetcdf
> 1140 2017-06-29 17:21:55 ../netcdf-4.4.1.1/configure --help
> 1141 2017-06-29 17:22:14 ../netcdf-4.4.1.1/configure
> --prefix=$HOME/WRF/OTHER --enable-mmap --enable-fsync --enable-jna
> --enable-dynamic-loading --enable-hdf4 --enable-hdf4-file-tests
> --enable-extra-example-tests --enable-parallel-tests --enable-logging
> --disable-dap-remote-tests --enable-extra-tests --enable-large-file-tests
> --enable-benchmarks --enable-shared --enable-mmap --enable-pnetcdf
> 1142 2017-06-29 17:22:50 grep -i hdf5 ../netcdf-4.4.1.1/configure
> 1143 2017-06-29 17:23:03 grep -i hdf5 ../netcdf-4.4.1.1/configure | grep with
> 1144 2017-06-29 17:23:15 grep -i hdf5 ../netcdf-4.4.1.1/configure | grep HDF5
> 1145 2017-06-29 17:26:48 export HDF5=$HOME/OTHER
> 1146 2017-06-29 17:26:56 ../netcdf-4.4.1.1/configure
> --prefix=$HOME/WRF/OTHER --enable-mmap --enable-fsync --enable-jna
> --enable-dynamic-loading --enable-hdf4 --enable-hdf4-file-tests
> --enable-extra-example-tests --enable-parallel-tests --enable-logging
> --disable-dap-remote-tests --enable-extra-tests --enable-large-file-tests
> --enable-benchmarks --enable-shared --enable-mmap --enable-pnetcdf
> 1147 2017-06-29 17:27:14 vi config.log
> 1148 2017-06-29 17:28:28 export
> LD_LIBRARY_PATH="$HOME/OTHER/lib:$LD_LIBRARY_PATH"
> 1149 2017-06-29 17:28:33 env | grep CPATH
> 1150 2017-06-29 17:28:41 env | grep C_INC
> 1151 2017-06-29 17:28:58 export
> CPATH=/opt/sgi/mpt/mpt-2.15/include:$HOME/OTHER/include
> 1152 2017-06-29 17:29:01 ../netcdf-4.4.1.1/configure
> --prefix=$HOME/WRF/OTHER --enable-mmap --enable-fsync --enable-jna
> --enable-dynamic-loading --enable-hdf4 --enable-hdf4-file-tests
> --enable-extra-example-tests --enable-parallel-tests --enable-logging
> --disable-dap-remote-tests --enable-extra-tests --enable-large-file-tests
> --enable-benchmarks --enable-shared --enable-mmap --enable-pnetcdf
> 1153 2017-06-29 17:29:20 vi ../netcdf-4.4.1.1/configure
> 1154 2017-06-29 17:36:48 ../netcdf-4.4.1.1/configure
> --prefix=$HOME/WRF/OTHER --enable-mmap --enable-fsync --enable-jna
> --enable-dynamic-loading --enable-hdf4 --enable-hdf4-file-tests
> --enable-extra-example-tests --enable-parallel-tests --enable-logging
> --disable-dap-remote-tests --enable-extra-tests --enable-large-file-tests
> --enable-benchmarks --enable-shared --enable-mmap --enable-pnetcdf
> --with-netcdf=$HOME/OTHER
> 1155 2017-06-29 17:37:36 ../netcdf-4.4.1.1/configure
> --prefix=$HOME/WRF/OTHER --enable-mmap --enable-fsync --enable-jna
> --enable-dynamic-loading --enable-hdf4 --enable-hdf4-file-tests
> --enable-extra-example-tests --enable-parallel-tests --enable-logging
> --disable-dap-remote-tests --enable-extra-tests --enable-large-file-tests
> --enable-benchmarks --enable-shared --enable-mmap --enable-pnetcdf
> --with-hdf5=$HOME/OTHER
> 1156 2017-06-29 17:40:58 ../netcdf-4.4.1.1/configure
> --prefix=$HOME/WRF/OTHER --enable-mmap --enable-fsync --enable-jna
> --enable-dynamic-loading --enable-hdf4 --enable-hdf4-file-tests
> --enable-extra-example-tests --enable-parallel-tests --enable-logging
> --disable-dap-remote-tests --enable-extra-tests --enable-large-file-tests
> --enable-benchmarks --enable-shared --enable-mmap --enable-pnetcdf
> 1157 2017-06-29 17:47:57 export HDF5_ROOT=$HOME/OTHER
> 1158 2017-06-29 17:47:58 ../netcdf-4.4.1.1/configure
> --prefix=$HOME/WRF/OTHER --enable-mmap --enable-fsync --enable-jna
> --enable-dynamic-loading --enable-hdf4 --enable-hdf4-file-tests
> --enable-extra-example-tests --enable-parallel-tests --enable-logging
> --disable-dap-remote-tests --enable-extra-tests --enable-large-file-tests
> --enable-benchmarks --enable-shared --enable-mmap --enable-pnetcdf
> 1159 2017-06-29 17:49:10 history
>
>
> FYI:
>
> 1120 2017-06-29 17:08:28 ../hdf5-1.8.19/configure --prefix=$HOME/WRF/OTHER
> -enable-dependency-tracking --enable-hl --enable-shared --enable-production
> --enable-metadata-trace-file --enable-instrument --enable-using-memchecker
> --enable-parallel
>
> I am attempting all this for compiling WRF. The compiled packages are
> software group provides does not feature all the bells and whistles...
>
> Because this was missing from one of the attempts: netcdf.inc.
>
> Thanks!
> Mike
>
>
>
>
> ---------------------------------------------------------------------------------------------------------------------------------------
> Michael Busse Email: address@hidden
> ARL/CISD/HPCS/CSB Vmail: 410-278-0615
> Smail: U.S. Army Research Laboratory
> ATTN: RDRL-CIH-S (M. Busse - B120, C313)
> #include <stddisclm.h> Aberdeen Proving Ground, MD
> 21005-5067
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>
>
Ticket Details
===================
Ticket ID: NJI-923427
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.