NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
PS: This is a matter of taste, however, so as not to mix netcdf with other software I suggest using: -prefix=/usr/local/netcdf-4.3.3.1 instead of prefix=/usr/local This is similar to your installation of hdf5 in /usr/local/hdf5. Gus Correa On 07/30/2015 03:24 PM, Gus Correa wrote:
Hi Svetlana 1) Your config.log tells that it is using pgcc (PGI C compiler). Is this really what you want? I would try gcc instead (CC=gcc) It also throws an error for an unknown pgcc flag (another reason not to try gcc instead). configure:4385: /opt/pgi/linux86-64/9.0/bin/pgcc -qversion >&5 pgcc-Error-Unknown switch: -qversion 2) You need a blank/space separating the two library directories, i.e., NOT: LDFLAGS=-L/usr/local/lib-L/usr/local/hdf5/lib but LDFLAGS='-L/usr/local/lib -L/usr/local/hdf5/lib' The error you mentioned, which is reported in config.log, stems from the mistake above. Because of it HDF5 was never picked up by configure, and configure fails right on that spot. (Not sure why you would need -L/usr/local/lib besides -L/usr/local/hdf5/lib Do you really need the former? Probably not for the hdf5 libraries, which as you said are installed in /usr/local/hdf5/lib I would try: LDFLAGS='-L/usr/local/hdf5/lib' I hope this helps, Gus Correa On 07/30/2015 02:49 PM, Music, Svetlana wrote:Hi Gus, Thank you for your response. I tried $ ./configure -prefix=/usr/local LDFLAGS=-L/usr/local/lib-L/usr/local/hdf5/lib LIBS=lmfhdf-ldf CFLAGS=-fPIC and it gave me an error: C compiler cannot create executables (config.log is attached) What am I doing wrong? Thanks again for your help! Svetlana Music | Senior Meteorologist | Svetlana.Music@xxxxxxxxxxxxxxxxxx ARCADIS Canada Inc. | 121 Granton Drive | Richmond Hill, ON, L4B 3N4 T. 905 764 9380 | F. 905 764 9386 www.arcadis.com ARCADIS, Imagine the result Please consider the environment before printing this email. -----Original Message----- From: Gus Correa [mailto:gus@xxxxxxxxxxxxxxxxx] Sent: July-29-15 12:00 PM To: Music, Svetlana Subject: Re: [netcdfgroup] Error in configure netCDF-c-4.3.3.1 Hi Svetlana I had something like this to configure older 4.3.0: CPPFLAGS="-I/usr/local/hdf5/include" LDFLAGS="-L/usr/local/hdf5/lib" LIBS="-lmfhdf -ldf" I hope this helps, Gus Correa On 07/29/2015 09:57 AM, Music, Svetlana wrote:Hi, I am trying to configure netcdf-c-4.3.3.1 configure -prefix=/usr/local LDFLAGS=-L/usr/local/lib CFLAGS=-fPIC and there is an error: Can't find or link to the hdf5 library. The config.log is attached. The hdf5 is installed on /usr/local/hdf5 Please help! Svetlana ** *Svetlana Music*| Senior Meteorologist | _Svetlana.Music@xxxxxxxxxxxxxxxxxx <mailto:Svetlana.Music@xxxxxxxxxxxxxxxxxx>_ ARCADIS Canada Inc.| 121 Granton Drive | Richmond Hill, ON, L4B 3N4 T. 905 764 9380 | F. 905 764 9386 www.arcadis.com <http://www.arcadis.com> ARCADIS, Imagine the result PPlease consider the environment before printing this email. This e-mail and any files transmitted with it are the property of ARCADIS Canada Inc., and its affiliates. All rights, including without limitation copyright, are reserved. The proprietary information contained in this e-mail message, and any files transmitted with it, is intended for the use of the recipient(s) named above. If the reader of the e-mail is not the intended recipient, you are hereby notified that you have received this e-mail in error and that any review, distribution or copying of this e-mail or any files transmitted with it is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately. _______________________________________________ netcdfgroup mailing list netcdfgroup@xxxxxxxxxxxxxxxx For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/This e-mail and any files transmitted with it are the property of ARCADIS Canada Inc., and its affiliates. All rights, including without limitation copyright, are reserved. The proprietary information contained in this e-mail message, and any files transmitted with it, is intended for the use of the recipient(s) named above. If the reader of the e-mail is not the intended recipient, you are hereby notified that you have received this e-mail in error and that any review, distribution or copying of this e-mail or any files transmitted with it is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately.
netcdfgroup
archives: