having truble with NETCDF

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
brest
Posts: 5
Joined: Mon Sep 24, 2018 7:40 pm
Location: INIOAS

having truble with NETCDF

#1 Unread post by brest »

Hi everyone,
I'm a beginner on ROMS. Well I have installed hdf5-1.8.9 and zlib-1.2.7 and now I would to install netcdf as well.
Would you guys kindly help me to fix my error on installing netcdf-4.2.1.1 on linux fedora 16:

The error I have got:
[maziar@localhost netcdf-4.2.1.1]$ ./configure CPPFLAGS='-l/home/maziar/Downloads/q/hdf5-1.8.9/include-l/home/maziar/Downloads/q/zlib-1.2.7/include'LDFLAGS='-L/home/maziar/Downloads/q/zlib-1.2.7/lib-L/home/maziar/Downloads/q/hdf5-1.8.9/lib' --prefix=/home/maziar/Downloads/q/netcdf-4.2.1.1/
configure: netCDF 4.2.1.1
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: checking user options
checking whether a win32 DLL is desired... no
checking whether a NCIO_MINBLOCKSIZE was specified... 256
checking if fsync support is enabled... yes
checking whether extra valgrind tests should be run... no
checking whether we should try to build netCDF-4... yes
checking whether reading of HDF4 SD files is to be enabled... no
checking whether to fetch some sample HDF4 files from Unidata ftp site to test HDF4 reading (requires wget)... no
checking whether parallel I/O for classic and 64-bit offset files using parallel-netcdf is to be enabled... no
checking whether extra example tests should be run... no
checking whether parallel IO tests should be run... no
checking whether a default chunk size in bytes was specified... 4194304
checking whether a maximum per-variable cache size for HDF5 was specified... 67108864
checking whether a number of chunks for the default per-variable cache was specified... 10
checking whether a default file cache size for HDF5 was specified... 4194304
checking whether a default file cache maximum number of elements for HDF5 was specified... 1009
checking whether a default cache preemption for HDF5 was specified... 0.75
checking whether netCDF-4 logging is enabled... no
checking whether cdmremote client is to be built... no
checking whether DAP client is to be built... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/maziar/Downloads/q/netcdf-4.2.1.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
[maziar@localhost netcdf-4.2.1.1]$

It will be highly appreciated if you give me hand on fixing this error.
Kind Regards
Maziar

User avatar
robertson
Site Admin
Posts: 219
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: having truble with NETCDF

#2 Unread post by robertson »

If your configure line is a copy and paste of what you're actually using then most likely you need to add some spaces and change both 'l's to 'I's in the CPPFLAGS.

./configure CPPFLAGS='-I/home/maziar/Downloads/q/hdf5-1.8.9/include -I/home/maziar/Downloads/q/zlib-1.2.7/include' LDFLAGS='-L/home/maziar/Downloads/q/zlib-1.2.7/lib -L/home/maziar/Downloads/q/hdf5-1.8.9/lib' --prefix=/home/maziar/Downloads

brest
Posts: 5
Joined: Mon Sep 24, 2018 7:40 pm
Location: INIOAS

Re: having truble with NETCDF

#3 Unread post by brest »

robertson wrote:If your configure line is a copy and paste of what you're actually using then most likely you need to add some spaces and change both 'l's to 'I's in the CPPFLAGS.

./configure CPPFLAGS='-I/home/maziar/Downloads/q/hdf5-1.8.9/include -I/home/maziar/Downloads/q/zlib-1.2.7/include' LDFLAGS='-L/home/maziar/Downloads/q/zlib-1.2.7/lib -L/home/maziar/Downloads/q/hdf5-1.8.9/lib' --prefix=/home/maziar/Downloads
Dear robertson,
Many thanks for the reply. It works now.
Much appreciated,
Kind regards,
Maziar

Post Reply