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

[netCDF #QGR-519109]: Installing netcdf for Fortran in Linux



Hi Arlindo,

> Please cancel or close my previous request for support because I could
> build, check and install
> 
> the netcdf libraries for Fortran 4.2. For your information I am attaching
> the new files with the standard output from the scripts (1) configure,
> (2) make check and (3) make install, respectively with names
> 
> out1_new, out2_new and
> out3_new.
> 
> I am now explaining what I did for solving the problem.
> 
> When buiding, checking and installing before the C libraries, I had
> defined as prefix "/home/arriagaa/local/netCDF"
> 
> (please note the
> capitals 'CDF'). During the run of the script _configure_ to build the
> libraries for Fortran, I also declared
> 
> as prefix
> "/home/arriagaa/local/netCDF"; HOWEVER, THAT SCRIPT WAS WRITTING TO
> ANOTHER DIRECTORY (which it also created)
> 
> with name
> "/home/arriagaa/local/netcdf" (please note the LOWER CASE 'cdf'). Then I
> decided to copy all files on the folders
> 
> of the directory
> /home/arriagaa/local/netCDF to folders with the same names on the
> directory /home/arriagaa/local/netcdf ,
> 
> and I edited the file
> lib/pkgconfig/netcdf.pc and changed "CDF" to "cdf" (probably it would
> have been better to rebuild the C libraries
> 
> using the new prefix,
> instead of copying those libraries - I got several warnings when I have
> run "make check " for Fortran ).
> 
> After such changes, I also exported
> again LD_LIBRARY_PATH, redefined CPPFLAGS and LDFLAGS with the new
> prefix,
> 
> and run _configure_ also with the new prefix.
> 
> In summary, I
> avoided to work with a prefix having capitals on the name.
> 
> This seems
> to have been the source of error for failing to build before the netcdf
> libraries for Fortran 4.2
> 
> Please let me know (based upon what I am
> describing and based upon the attached files out1_new, out2_new and
> out3_new)
> 
> if you agree that the libraries for Fortran 4.2 are really
> done.

Yes, everything looks fine to me.

--Russ

> I thank you for the kindness of your attention and help
> 
> Kind
> regards
> 
> Arlindo Arriaga
> 
> PhD Meteorology (meteorological satellites)
> UW-Madison 1991
> 
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> 
> -------- Original Message --------
> 
> SUBJECT:
> Problems found
> when trying to build the libraries for netcdf Fortran 4.2
> 
> DATE:
> 
> Tue, 08 Oct 2013 08:57:11 +0000
> 
> FROM:
> 
> address@hidden
> 
> TO:
> 
> Dear Madam or Sir
> 
> I could find the
> problem mentioned on my previous e-mail, related with building netcdf
> for C libraries.
> 
> Your services are identiying such a help request as
> follows:
> 
> Ticket ID: QGR-519109
> Subject: Installing netcdf for
> Fortran in Linux
> Department: Support netCDF
> Priority: Normal
> Status:
> Open
> 
> Please close or cancel that ticket because the problem then
> reported is solved already.
> 
> I was able to run the script configure with
> NO error, as well as make check and make install for C libraries.
> The
> directories bin, include, lib and share were successfully created and
> filled in on the directory I had declared with --prefix.
> At the end of
> this message, I am showing you the last part of the output from the run
> MAKE INSTALL
> to illustrate that the C libraries (shared and static)
> were indeed correctly done and installed.
> 
> Thus I have built, checked
> and installed the netcdf C libraries (NETCDF-4.3.0.TAR.GZ).
> Next I
> wanted to build, check and install the netcdf Fortran libraries
> (NETCDF-FORTRAN-4.2.TAR.GZ).
> 
> This new message addresses a different
> problem. It seems there is (at least) a bug on the netcdf Fortran 4.2
> 
> version, which is to be built AFTER the netcdf C libraries are built,
> checked and successfully installed.
> 
> My problem is now focused on
> building and installing the libraries for Fortran.
> 
> I downloaded the
> file NETCDF-FORTRAN-4.2.TAR.GZ and untared it on a directory different
> from the directory where I
> 
> have the uncompressed files of
> NETCDF-4.3.0.TAR (so, the uncompressed files for C and Fortran libraries
> are NOT on
> 
> the same directory); however
> --prefix=/home/arriagaa/local/netcdf/ declares the same directory for C
> and Fortran libraries.
> 
> I followed the instructions on
> http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html,
> 
> 
> on the section _Building with shared libraries_. After entering the
> comands
> 
> export LD_LIBRARY_PATH=/home/arriagaa/local/netcdf/lib
> export
> CPPFLAGS=-I/home/arriagaa/local/netcdf/include
> export
> LDFLAGS=-L/home/arriagaa/local/netcdf/lib
> 
> I have run the following
> scripts (saving their respective output on files out1, out2 and out3):
> 
> 
> ./configure --prefix=/home/arriagaa/local/netcdf --disable-netcdf-4
> 1> out1 2>out1
> 
> make check 1>out2 2>out2
> 
> make install 1>out3 2>out3
> 
> 
> The files out1, out2 and out3 are attached to this e-mail.
> 
> It seems
> the file out1 does not show errors.
> 
> There are however error messages
> at the beginning of the file out2, which I do not understand.
> 
> No
> Fortran libraries have been created on the directories where the C
> libraries were saved before:
> 
> /home/arriagaa/local/netcdf/lib and
> /home/arriagaa/local/netcdf/include)
> 
> I am thus kindly asking for your
> kindness to help me building and installing the netcdf libraries for
> Fortran.
> 
> In case you are willing to recommend a different netcdf
> Fortran version, please tell me where is it, eventually
> 
> which netcdf
> C version should I work with (where is it too) and tell me also, please,
> which docs should I read to
> 
> successfully build that Fortran version,
> as well as the docs for eventually building the C librariries before.
> 
> 
> My kind regards
> 
> Arlindo Arriaga
> 
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> 
> make[1]: Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/man4'
> Making install
> in examples
> make[1]: Entrando no diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples'
> Making
> install in C
> make[2]: Entrando no diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples/C'
> make[3]:
> Entrando no diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples/C'
> make[3]:
> Nada a ser feito para `install-exec-am'.
> make[3]: Nada a ser feito para
> `install-data-am'.
> make[3]: Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples/C'
> make[2]:
> Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples/C'
> Making
> install in CDL
> make[2]: Entrando no diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples/CDL'
> make[3]:
> Entrando no diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples/CDL'
> make[3]:
> Nada a ser feito para `install-exec-am'.
> make[3]: Nada a ser feito para
> `install-data-am'.
> make[3]: Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples/CDL'
> make[2]:
> Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples/CDL'
> make[2]:
> Entrando no diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples'
> make[3]:
> Entrando no diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples'
> make[3]:
> Nada a ser feito para `install-exec-am'.
> make[3]: Nada a ser feito para
> `install-data-am'.
> make[3]: Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples'
> make[2]:
> Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples'
> make[1]:
> Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0/examples'
> make[1]:
> Entrando no diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0'
> make[2]: Entrando no
> diretório `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0'
> /bin/mkdir
> -p '/home/arriagaa/local/netCDF/bin'
> /usr/bin/install -c nc-config
> '/home/arriagaa/local/netCDF/bin'
> /bin/mkdir -p
> '/home/arriagaa/local/netCDF/lib/pkgconfig'
> /usr/bin/install -c -m 644
> netcdf.pc '/home/arriagaa/local/netCDF/lib/pkgconfig'
> make
> install-data-hook
> make[3]: Entrando no diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0'
> 
> +-------------------------------------------------------------+
> |
> Congratulations! You have successfully installed netCDF! |
> | |
> | You
> can use script "nc-config" to find out the relevant |
> | compiler options
> to build your application. Enter |
> | |
> | nc-config --help |
> | |
> | for
> additional information. |
> | |
> | CAUTION: |
> | |
> | If you have not already
> run "make check", then we strongly |
> | recommend you do so. It does not
> take very long. |
> | |
> | Before using netCDF to store important data,
> test your |
> | build with "make check". |
> | |
> | NetCDF is tested nightly
> on many platforms at Unidata |
> | but your platform is probably different
> in some ways. |
> | |
> | If any tests fail, please see the netCDF web site:
> |
> | http://www.unidata.ucar.edu/software/netcdf/ |
> | |
> | NetCDF is
> developed and maintained at the Unidata Program |
> | Center. Unidata
> provides a broad array of data and software |
> | tools for use in
> geoscience education and research. |
> | http://www.unidata.ucar.edu
> |
> +-------------------------------------------------------------+
> 
> make[3]:
> Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0'
> make[2]: Saindo do
> diretório `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0'
> make[1]:
> Saindo do diretório
> `/home/arriagaa/local/netCDF_C_4.3.0/netcdf-4.3.0'
> arriagaa@gridpt15:~/local/netCDF_C_4.3.0/netcdf-4.3.0$
> pwd
> 
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: QGR-519109
Department: Support netCDF
Priority: Normal
Status: Closed