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

[netCDF #EUL-543137]: building netcdf 4.4.1.1



> Thanks for the info.
> I am skipping the opendap/curl issue for now since I was able to build 
> netcdf-4.4.1.1 using these:
> 
> ./configure F77=ifort FC=ifort F90=ifort CC=icc CXX=icpc CFLAGS='-O3 -xSSE2  
> -m64 ' \
> CXXFLAGS='-O3 -xSSE2 -m64  ' --enable-netcdf-4   --disable-dap  
> --disable-shared   \
> CPPFLAGS=-I/home/discovery-libs/nlib/include 
> LDFLAGS=-L/home/discovery-libs/nlib/lib \
> FFLAGS='-O3 -xSSE2  -m64' --prefix=/home/discovery/libs/netcdf
> make all check >& xmake.log
> make install
> 
> 
> now I am trying to build netcdf-cxx4-4.3.0
> 
> ./configure --enable-cxx-4 CC=icc CXX=icpc 
> --prefix=/home/discovery/libs/netcdf \
> --enable-netcdf-4  CXXFLAGS='-O3 -xSSE2 -m64  ' 
> CPPFLAGS=-I/home/discovery-libs/netcdf/include
I think you also need to add a pointer flag to the netcdf library
something like -L/home/discovery/libs/netcdf/libs
or whereever libnetcdf is located.

> 
> But configure stops with
> 
> Configure: error NetCDF must be built with netcdf-4 enabled
> 
> This is strange because I did enable it in both configures above
> 
> 
> Cheers,
> 
> Charles.
> 
> *====================================================*
> Dr. Charles Jones
> Professor
> Department of Geography and
> Earth Research Institute (ERI)
> University of California, Santa Barbara, CA 93106-3060
> 
> phone: (805) 893-5824
> fax:   (805) 893-2578
> email: address@hidden
> URL:  http://clivac.geog.ucsb.edu/
> |=====================================================*
> 
> 
> -----Original Message-----
> From: Unidata netCDF Support [mailto:address@hidden]
> Sent: Thursday, September 28, 2017 1:33 PM
> To: address@hidden
> Cc: address@hidden
> Subject: [netCDF #EUL-543137]: building netcdf 4.4.1.1
> 
> 
> > make all check works if i use configure with --disable-dap
> Ok, so the problem is with (probably) with the dap code or curl.
> The curl version info looks ok. So, we need to eventually solve this dap/curl 
> problem. But that can be done independently of other things.
> 
> Also, there should be no need to disable netcdf-4 (unless you really do not 
> want it).
> 
> Now with respect to c++ (and fortran). We long ago (i.e. some time after 
> version 4.1.3) decided to separate the c++ API into a separate library that 
> depended on libnetcdf. Similarly for fortran.
> 
> So, once you have compile, tested, and installed a satisfactory libnetcdf 
> library. Then you need to do something similar with c++ netcdf library. Also 
> download the separate fortran code if you want that also.
> 
> >
> > the output of curl is
> >
> > curl -V
> > curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.21 Basic
> > ECC
> > zlib/1.2.7 libidn/1.28 libssh2/1.4.3
> > Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
> > pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
> > Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL
> > libz unix-sockets
> >
> > sorry about so many questions but another is:
> >
> > I built my previous netcdf-4.1.3  using
> >
> > ./configure CC=icc CXX=icpc CFLAGS='-O3 -xSSE2  -m64 ' \
> > CXXFLAGS='-O3 -xSSE2 -m64  ' F77=ifort FC=ifort F90=ifort \
> > FFLAGS='-O3 -xSSE2  -m64' --prefix=/home/discovery/netcdf \
> > --disable-netcdf-4 --disable-dap --disable-shared
> >
> > and i got this in the library:
> >
> > ls netcdf/lib
> > libnetcdf.a   libnetcdf_c++.so.4@    libnetcdff.so@  libnetcdf.so@
> > libnetcdf_c++.a    libnetcdf_c++.so.4.1.0*  libnetcdff.so.5@
> > libnetcdf.so.7@
> > libnetcdf_c++.la*  libnetcdff.a    libnetcdff.so.5.1.0*  libnetcdf.so.7.1.1*
> > libnetcdf_c++.so@  libnetcdff.la*    libnetcdf.la*  pkgconfig/
> >
> > the new one netcdf-4.4.1.1
> >
> > ./configure F77=ifort FC=ifort F90=ifort CC=icc CXX=icpc CFLAGS='-O3
> > -xSSE2  -m64 ' \
> > CXXFLAGS='-O3 -xSSE2 -m64  '  --disable-dap  \
> > CPPFLAGS=-I/home/discovery-libs/nlib/include
> > LDFLAGS=-L/home/discovery-libs/nlib/lib \
> > FFLAGS='-O3 -xSSE2  -m64' --prefix=/home/discovery/libs/netcdf
> > --disable-shared
> >
> > the only difference is the  --disable-netcdf-4 and i got this ls
> > netcdf/lib libnetcdf.a  libnetcdf.la*  libnetcdf.settings pkgconfig/
> >
> >
> > i don't get the c++ etc libraries
> >
> > do i still need to install another netcdf library?
> >
> > thanks,
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Cheers,
> >
> > Charles.
> >
> > *====================================================*
> > Dr. Charles Jones
> > Professor
> > Department of Geography and
> > Earth Research Institute (ERI)
> > University of California, Santa Barbara, CA 93106-3060
> >
> > phone: (805) 893-5824
> > fax:   (805) 893-2578
> > email: address@hidden <address@hidden>
> > URL:  http://clivac.geog.ucsb.edu/
> > |=====================================================*
> >
> >
> > address@hidden> wrote:
> >
> > > This is harder to figure out.
> > > First, see if you can complete with out DAP support.
> > > Add --disable-dap to your ./configure command.
> > > See if make all check then works.
> > >
> > > Second, do this command:
> > >    curl --version
> > > and send the output. This will give some basic info about your
> > > curl/libcurl installation.
> > >
> > >
> > > > I did make all check and the compilation went a lot farther but am
> > > > still
> > > getting errors
> > > > This time is in ncdap_test/test-suite.log (attached)
> > > >
> > > > would this be related to opendap and possibly to curl?
> > > > Even though my curl was built, I think there was some errors in
> > > > the
> > > configuration
> > > >
> > > >
> > > > Cheers,
> > > >
> > > > Charles.
> > > >
> > > > *====================================================*
> > > > Dr. Charles Jones
> > > > Professor
> > > > Department of Geography and
> > > > Earth Research Institute (ERI)
> > > > University of California, Santa Barbara, CA 93106-3060
> > > >
> > > > phone: (805) 893-5824
> > > > fax:   (805) 893-2578
> > > > email: address@hidden
> > > > URL:  http://clivac.geog.ucsb.edu/
> > > > |=====================================================*
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Unidata netCDF Support
> > > > [mailto:address@hidden]
> > > > Sent: Wednesday, September 27, 2017 6:03 PM
> > > > To: address@hidden
> > > > Cc: address@hidden
> > > > Subject: [netCDF #EUL-543137]: building netcdf 4.4.1.1
> > > >
> > > > There is a good chance that this is the problem. We have seen
> > > > similar
> > > failures.
> > > > So  do make all check
> > > > and see if that works.
> > > >
> > > > > I didn't do make all
> > > > > I did make check install
> > > > >
> > > > > could that be the problem?
> > > > > Also is it possible that the problem is originating in zlib curl
> > > > > or
> > > hdf5?
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Charles.
> > > > >
> > > > > *====================================================*
> > > > > Dr. Charles Jones
> > > > > Professor
> > > > > Department of Geography and
> > > > > Earth Research Institute (ERI)
> > > > > University of California, Santa Barbara, CA 93106-3060
> > > > >
> > > > > phone: (805) 893-5824
> > > > > fax:   (805) 893-2578
> > > > > email: address@hidden
> > > > > URL:  http://clivac.geog.ucsb.edu/
> > > > > |=====================================================*
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Unidata netCDF Support
> > > > > [mailto:address@hidden]
> > > > > Sent: Wednesday, September 27, 2017 5:55 PM
> > > > > To: address@hidden
> > > > > Cc: address@hidden
> > > > > Subject: [netCDF #EUL-543137]: building netcdf 4.4.1.1
> > > > >
> > > > > Ok, for some reason, ncdump is not being built.
> > > > > When you did the 'make all' command, it should have failed when
> > > compiling ncdump.
> > > > >
> > > > >
> > > > > > Thanks for the quick reply
> > > > > >
> > > > > > They are attached
> > > > > >
> > > > > > Cheers,
> > > > > >
> > > > > > Charles.
> > > > > >
> > > > > > *====================================================*
> > > > > > Dr. Charles Jones
> > > > > > Professor
> > > > > > Department of Geography and
> > > > > > Earth Research Institute (ERI) University of California, Santa
> > > > > > Barbara, CA 93106-3060
> > > > > >
> > > > > > phone: (805) 893-5824
> > > > > > fax:   (805) 893-2578
> > > > > > email: address@hidden
> > > > > > URL:  http://clivac.geog.ucsb.edu/
> > > > > > |=====================================================*
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Unidata netCDF Support
> > > > > > [mailto:address@hidden]
> > > > > > Sent: Wednesday, September 27, 2017 5:36 PM
> > > > > > To: address@hidden
> > > > > > Cc: address@hidden
> > > > > > Subject: [netCDF #EUL-543137]: building netcdf 4.4.1.1
> > > > > >
> > > > > > After make check fails.
> > > > > > See if you can find files named something like this:
> > > > > > ncgen/run_tests.sh.log
> > > > > > and
> > > > > > ncgen/run_nc4_tests.sh.log
> > > > > > and post them here.
> > > > > >
> > > > > > > I am trying to build netcdf 4.4.1.1 from source but am
> > > > > > > having problems
> > > > > > >
> > > > > > > My system is CentOS 7 and am trying to compile netcdf with
> > > > > > > intel compilers
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I installed:
> > > > > > >
> > > > > > > hdf5-1.10.1
> > > > > > >
> > > > > > > zlib-1.2.8
> > > > > > >
> > > > > > > curl-7.26
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > then to build netcdf I use:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ./configure CC=icc CXX=icpc \
> > > > > > >
> > > > > > > F77=ifort FC=ifort F90=ifort \
> > > > > > >
> > > > > > > CPPFLAGS=-I/home/discovery-libs/nlib/include
> > > > > > > LDFLAGS=-L/home/discovery-libs/nlib/lib \
> > > > > > >
> > > > > > > --prefix=/home/discovery/libs/netcdf --disable-shared
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > make check install
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > but the make fails with an error related to ncgen
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > the configure and make logs are attached.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I would really appreciate any help with that.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Thanks!
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Cheers,
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Charles.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > *====================================================*
> > > > > > > Dr. Charles Jones
> > > > > > > Professor
> > > > > > >
> > > > > > > Department of Geography and
> > > > > > >
> > > > > > > Earth Research Institute (ERI) University of California,
> > > > > > > Santa Barbara, CA 93106-3060
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > phone: (805) 893-5824
> > > > > > > fax:   (805) 893-2578
> > > > > > > email:  <mailto:address@hidden> address@hidden
> > > > > > > URL:   <http://clivac.geog.ucsb.edu/> http://clivac.geog.ucsb.edu/
> > > > > > >
> > > > > > > |=====================================================*
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > =Dennis Heimbigner
> > > > > > Unidata
> > > > > >
> > > > > >
> > > > > > Ticket Details
> > > > > > ===================
> > > > > > Ticket ID: EUL-543137
> > > > > > Department: Support netCDF
> > > > > > Priority: Normal
> > > > > > Status: Open
> > > > > > ===================
> > > > > > 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.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > =Dennis Heimbigner
> > > > > Unidata
> > > > >
> > > > >
> > > > > Ticket Details
> > > > > ===================
> > > > > Ticket ID: EUL-543137
> > > > > Department: Support netCDF
> > > > > Priority: Normal
> > > > > Status: Open
> > > > > ===================
> > > > > 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.
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > =Dennis Heimbigner
> > > > Unidata
> > > >
> > > >
> > > > Ticket Details
> > > > ===================
> > > > Ticket ID: EUL-543137
> > > > Department: Support netCDF
> > > > Priority: Normal
> > > > Status: Open
> > > > ===================
> > > > 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.
> > > >
> > > >
> > > >
> > > >
> > >
> > > =Dennis Heimbigner
> > >   Unidata
> > >
> > >
> > > Ticket Details
> > > ===================
> > > Ticket ID: EUL-543137
> > > Department: Support netCDF
> > > Priority: Normal
> > > Status: Open
> > > ===================
> > > 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.
> > >
> > >
> > >
> >
> >
> 
> =Dennis Heimbigner
> Unidata
> 
> 
> Ticket Details
> ===================
> Ticket ID: EUL-543137
> Department: Support netCDF
> Priority: Normal
> Status: Open
> ===================
> 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.
> 
> 
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: EUL-543137
Department: Support netCDF
Priority: Normal
Status: Open
===================
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.