Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Mon Jun 17, 2019 6:59 pm




Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Author Message
PostPosted: Mon Oct 22, 2018 7:43 am 
Offline

Joined: Mon Sep 24, 2018 7:40 pm
Posts: 5
Location: INIOAS
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 23, 2018 1:19 pm 
Offline
Site Admin
User avatar

Joined: Wed Feb 26, 2003 3:12 pm
Posts: 121
Location: IMCS, Rutgers University
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 24, 2018 8:06 am 
Offline

Joined: Mon Sep 24, 2018 7:40 pm
Posts: 5
Location: INIOAS
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group