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

[netCDF #DCC-509647]: NetCDF-4.4.0 Configuration Error



Hello Suzanna,

Thank you for providing the `config.log` file.  While inspecting it, I see the 
following:

````
configure:4505: gcc  /workspace/projects/netcdf/HDF_Group/HDF5/1.8.16/include 
/workspace/projects/netcdf/HDF_Group/HDF5/1.8.16/lib conftest.c  >&5
/workspace/projects/netcdf/HDF_Group/HDF5/1.8.16/include: file not recognized: 
Is a directory
````

It looks like we are missing the `-I` and `-L` flags (the first flag is a 
capital i, in case your font is sans serif). for CPPFLAGS and LDFLAGS.  Try the 
following:

setenv CPPFLAGS -I/workspace/projects/netcdf-4.4.0/include
setenv LDFLAGS -L/workspace/projects/netcdf/HDF_Group/HDF5/1.8.16/lib

Also, depending on whether you are using shared libraries or not, you may need 
the following:

setenv LD_LIBRARY_PATH /workspace/projects/netcdf/HDF_Group/HDF5/1.8.16/ib

Try working without this last one, and if you receive an error at runtime in 
the neighborhood of 'can't locate shared library', set the LD_LIBRARY_PATH 
value.

I hope this helps, please let me know if this doesn't resolve the problem!

-Ward

> Hello,
> 
> I have successfully built and installed: curl-7.47.1, zlib-1.2.8, slib,
> and HDF5-1.8.16, in that order on a Linux system.
> 
> Additionally, I have added paths to the custom bin and lib directories
> in my .cshrc file.  Also, in my .cshrc file, I have the following lines:
> 
> setenv CPPFLAGS /workspace/projects/netcdf-4.4.0/include
> setenv LDFLAGS /workspace/projects/netcdf/HDF_Group/HDF5/1.8.16/lib
> 
> During netCDF-4.4.0 configuration, I am getting the following error (csh):
> 
> /workspace/projects/netcdf/netcdf-4.4.0 $ ./configure 
> prefix=/workspace/projects/netcdf
> .
> .
> .
> Checking for gcc... gcc
> Checking whether the C compiler works... no
> Configure: error: in '/workspace/projects/netcdf/netcdf-4.4.0':
> Configure: error: C compiler cannot create executables
> See config.log for more details
> 
> Please find the config.log, attached.
> 
> Suzanna
> __________________________
> Suzanna Diener, Ph.D.
> Northrop Grumman
> 6120 Longbow Drive
> Boulder, CO   80301
> 
> Phone: 720-622-2916
> Mobile: 303-579-9555
> Email: address@hidden<mailto:address@hidden>
> 
> 
> 

Ticket Details
===================
Ticket ID: DCC-509647
Department: Support netCDF
Priority: Normal
Status: Closed