[ncl-install] ncl-install Digest, Vol 165, Issue 12

Andrei Kurbatov akurbatov at maine.edu
Wed Jul 28 10:07:37 MDT 2021


Open ncargf77 in a text editor: 

Take a look on this line "set fortran"
On my Mac OS (ncl installed via conda) it is listed as


set fortran  = ""/Users/runner/miniforge3/conda-bld/ncl_1602173401877/_build_env/bin/x86_64-apple-darwin13.4.0-gfortran”"
 
I think it has to point to the correct  gfortran compiler.
Andrei

> On Jul 28, 2021, at 11:51 AM, ncl-install-request at mailman.ucar.edu wrote:
> 
> Send ncl-install mailing list submissions to
> 	ncl-install at mailman.ucar.edu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://mailman.ucar.edu/mailman/listinfo/ncl-install
> or, via email, send a message with subject or body 'help' to
> 	ncl-install-request at mailman.ucar.edu
> 
> You can reach the person managing the list at
> 	ncl-install-owner at mailman.ucar.edu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ncl-install digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: NCARG Issue with ncargf77 (Orhan Eroglu)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 28 Jul 2021 09:50:53 -0600
> From: Orhan Eroglu <oero at ucar.edu>
> To: OMAR SANCHEZ CAMACHO <cmomar_alf at comunidad.unam.mx>
> Cc: "ncl-install at mailman.ucar.edu" <ncl-install at mailman.ucar.edu>
> Subject: Re: [ncl-install] NCARG Issue with ncargf77
> Message-ID:
> 	<CANJL0EZWhG=nWGokg7K1LE+_t8cxiCQk7VG-3epG5B4BfogwTg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi Omar,
> 
> Thanks a lot for the details; they are helpful!
> 
> FYI: I have a conda-installed NCL environment in my Darwin (MacOS)
> platform, and I am having the same issue with ncargex as you have. I will
> keep looking into this as you said your other computers with
> conda-installed NCL environment are able to run ncargex.
> 
> *Other ncl-install members:*
> 
> Please feel free to step in if you any ideas on this issue.
> 
> Best,
> 
> On Wed, Jul 28, 2021 at 9:23 AM OMAR SANCHEZ CAMACHO <
> cmomar_alf at comunidad.unam.mx> wrote:
> 
>> Hello Orhan,
>> 
>> In the other computer where I be able to run `ncargex` and `ncargf77` I
>> have the NCL environment CONDA (Anaconda).
>> 
>> Currently I work with Linux (Debian 10) and here is where I had the
>> problems previously said, but before I used to work with Ubuntu
>> distribution, on this computer I could compile `ncargf77` but some days ago
>> this computer crashed, that's the reason for I change of computer. In both
>> computers I work with CONDA (Anaconda).
>> 
>> I would like to solve this problem because I need to compile NCARG
>> Graphics Fortran programs, I work in CDF and I use NCARG Fortran programs
>> to visualize my results.
>> 
>> Hope this information will be useful.
>> 
>> Best wishes.
>> 
>> Omar S?nchez C.
>> ------------------------------
>> *From:* Orhan Eroglu <oero at ucar.edu>
>> *Sent:* Wednesday, July 28, 2021 9:48:35 AM
>> *To:* OMAR SANCHEZ CAMACHO <cmomar_alf at comunidad.unam.mx>
>> *Cc:* ncl-install at mailman.ucar.edu <ncl-install at mailman.ucar.edu>
>> *Subject:* Re: [ncl-install] NCARG Issue with ncargf77
>> 
>> Hi Omar,
>> 
>> I continued working on it but couldn't get it to work. I believe that
>> compiling/linking NCAR Graphics C or Fortran programs (i.e. ncargex)
>> probably needs a NCL environment that is built from source instead of
>> installed via conda, which is unfortunately beyond my expertise. Could you
>> clarify what NCL environments (i.e. conda or built from source) the other
>> computers have, in which you are able to run `ncargex` commands.
>> 
>> My personal view is that running `ncargex` is for users who need to
>> compile NCAR Graphics C or Fortran programs. SO, if you don't have
>> particular reason to compile NCAR Graphics C or Fortran programs, you might
>> be fine just running NCL.
>> 
>> Regards,
>> 
>> On Thu, Jul 22, 2021 at 2:08 PM OMAR SANCHEZ CAMACHO <
>> cmomar_alf at comunidad.unam.mx> wrote:
>> 
>> Thanks a lot for your response.
>> 
>> I still need help because I don't run *.f programs with NCARG, when I type
>> the command:
>> 
>> 
>> 
>> 
>> *$ ncargf77 drag_vs_step.f *
>> 
>> 
>> *Output is: *
>> 
>> 
>> *"/home/conda/feedstock_root/build_artifacts/ncl_1602173391809/_build_env/bin/x86_64-conda-linux-gnu-gfortran
>> -fPIC -fno-second-underscore -fno-range-check -fopenmp -O
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -Wl,-O2 -Wl,--sort-common
>> -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags
>> -Wl,--gc-sections -Wl,-rpath,/home/omar13/anaconda3/envs/ncl_stable/lib
>> -Wl,-rpath-link,/home/omar13/anaconda3/envs/ncl_stable/lib
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib drag_vs_step.f
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -L/usr/X11R6/lib64 -lncarg
>> -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig
>> -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2 *
>> */home/conda/feedstock_root/build_artifacts/ncl_1602173391809/_build_env/bin/x86_64-conda-linux-gnu-gfortran:
>> Command not found." *
>> 
>> And when I try to run an example of NCARG:
>> 
>> 
>> 
>> 
>> *$ ncargex fcover *
>> 
>> 
>> 
>> *Output is: *
>> 
>> 
>> 
>> *"NCAR Graphics Fortran Fundamentals Example <fcover> *
>> 
>> 
>> 
>> *  Copying fcover.f *
>> 
>> 
>> 
>> *  Copying fcover.dat *
>> 
>> 
>> *Compiling and linking... *
>> 
>> 
>> */home/conda/feedstock_root/build_artifacts/ncl_1602173391809/_build_env/bin/x86_64-conda-linux-gnu-gfortran
>> -fPIC -fno-second-underscore -fno-range-check -fopenmp -O
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -Wl,-O2 -Wl,--sort-common
>> -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags
>> -Wl,--gc-sections -Wl,-rpath,/home/omar13/anaconda3/envs/ncl_stable/lib
>> -Wl,-rpath-link,/home/omar13/anaconda3/envs/ncl_stable/lib
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -o fcover fcover.f
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -L/usr/X11R6/lib64 -lncarg
>> -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig
>> -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2 *
>> 
>> 
>> 
>> */home/conda/feedstock_root/build_artifacts/ncl_1602173391809/_build_env/bin/x86_64-conda-linux-gnu-gfortran:
>> Command not found. *
>> 
>> *The compile and link failed." *
>> I sure that the example fcover and the program
>> drag_vs_step.f are right
>> 
>> 
>> I am sure that my program (*drag_vs_step.f*) and the example (fcover) are
>> fine because I can compile them without any problem on another computer
>> with NCARG. So I don't know what is the problem here.
>> 
>> Kind regards.
>> 
>> Omar S?nchez C.
>> 
>> ------------------------------
>> *De:* Orhan Eroglu <oero at ucar.edu>
>> *Enviado:* jueves, 22 de julio de 2021 8:41 a. m.
>> *Para:* OMAR SANCHEZ CAMACHO
>> *Cc:* ncl-install at mailman.ucar.edu
>> *Asunto:* Re: [ncl-install] NCARG Issue with ncargf77
>> 
>> Hi Omar,
>> 
>> I am sorry to hear inconvenience you had!
>> 
>> Before moving forward, I'd like to clarify some thing about your
>> environment variables first. Even though you say that "I don't have
>> either NCARG_ROOT, or NCARG_BIN, NCARG_LIB, and NCARG_INCLUDE set", you
>> seem to have NCARG_ROOT variable set properly as we can see from
>> 
>> Output:
>> 
>> NCARG_ROOT=/home/omar13/anaconda3/envs/ncl_stable
>> 
>> as well as you were able to run successfully
>> 
>> $ ncl $NCARG_ROOT/lib/ncarg/nclex/gsun/gsun02n.ncl
>> 
>> $ ncl $NCARG_ROOT/lib/ncarg/nclex/nug/NUG_multi_timeseries.ncl
>> 
>> If we agree on this and you still have your issues running ncargex, I am
>> happy to further help.
>> 
>> Best,
>> 
>> On Tue, Jun 22, 2021 at 10:15 AM OMAR SANCHEZ CAMACHO via ncl-install <
>> ncl-install at mailman.ucar.edu> wrote:
>> 
>> Hello,
>> 
>> I am trying to compile and execute and example with NCARG following the
>> instructions on "Chapter 2: Five quick steps for creating and viewing
>> your plot", but I have a problem when I execute:
>> 
>>    $ env
>> 
>> I don't have either NCARG_ROOT, or NCARG_BIN, NCARG_LIB, and NCARG_INCLUDE
>> set, I don't know why, because I followed the installation instructions
>> (I've installed with Conda), even I tested NCL with:
>> 
>> $ ncl -V
>> 
>> $ ncl $NCARG_ROOT/lib/ncarg/nclex/gsun/gsun02n.ncl
>> 
>> $ ncl $NCARG_ROOT/lib/ncarg/nclex/nug/NUG_multi_timeseries.ncl
>> 
>> and all of them works, but when I execute:
>> 
>> $ ncargex fcover
>> 
>> Output is:
>> 
>> "NCAR Graphics Fortran Fundamentals Example <fcover>
>> 
>>  Copying fcover.f
>> 
>>  Copying fcover.dat
>> 
>> Compiling and linking...
>> 
>> /home/conda/feedstock_root/build_artifacts/ncl_1602173391809/_build_env/bin/x86_64-conda-linux-gnu-gfortran
>> -fPIC -fno-second-underscore -fno-range-check -fopenmp -O
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -Wl,-O2 -Wl,--sort-common
>> -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags
>> -Wl,--gc-sections -Wl,-rpath,/home/omar13/anaconda3/envs/ncl_stable/lib
>> -Wl,-rpath-link,/home/omar13/anaconda3/envs/ncl_stable/lib
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -o fcover fcover.f
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -L/usr/X11R6/lib64 -lncarg
>> -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig
>> -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2
>> 
>> /home/conda/feedstock_root/build_artifacts/ncl_1602173391809/_build_env/bin/x86_64-conda-linux-gnu-gfortran:
>> Command not found.
>> 
>> The compile and link failed."
>> 
>> 
>> 
>> The same issue  is also present when I compile my own *.f program (I am
>> sure it is okay, because I can run it with other      computer with NCL):
>> 
>> $ ncargf77 drag_vs_step.f
>> 
>> Output is:
>> 
>> "/home/conda/feedstock_root/build_artifacts/ncl_1602173391809/_build_env/bin/x86_64-conda-linux-gnu-gfortran
>> -fPIC -fno-second-underscore -fno-range-check -fopenmp -O
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -Wl,-O2 -Wl,--sort-common
>> -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags
>> -Wl,--gc-sections -Wl,-rpath,/home/omar13/anaconda3/envs/ncl_stable/lib
>> -Wl,-rpath-link,/home/omar13/anaconda3/envs/ncl_stable/lib
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib drag_vs_step.f
>> -L/home/omar13/anaconda3/envs/ncl_stable/lib -L/usr/X11R6/lib64 -lncarg
>> -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig
>> -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2
>> 
>> /home/conda/feedstock_root/build_artifacts/ncl_1602173391809/_build_env/bin/x86_64-conda-linux-gnu-gfortran:
>> Command not found."
>> 
>> ________________________________________________________
>> 
>> Outputs from typing the following commands from a UNIX terminal window:
>> 
>> $ conda list -n ncl_stable
>> 
>> Output:
>> 
>> # packages in environment at /home/omar13/anaconda3/envs/ncl_stable:
>> 
>> #
>> 
>> # Name                    Version                   Build  Channel
>> 
>> _libgcc_mutex             0.1                 conda_forge    conda-forge
>> 
>> _openmp_mutex             4.5                       1_gnu    conda-forge
>> 
>> boost-cpp                 1.74.0               h9359b55_0    conda-forge
>> 
>> bzip2                     1.0.8                h7f98852_4    conda-forge
>> 
>> c-ares                    1.17.1               h7f98852_1    conda-forge
>> 
>> ca-certificates           2021.5.30            ha878542_0    conda-forge
>> 
>> cairo                     1.16.0            h488836b_1006    conda-forge
>> 
>> cfitsio                   3.470                h2e3daa1_7    conda-forge
>> 
>> curl                      7.76.1               h979ede3_1    conda-forge
>> 
>> esmf                      8.0.1           nompi_hcaa3220_2    conda-forge
>> 
>> expat                     2.4.1                h9c3ff4c_0    conda-forge
>> 
>> fontconfig                2.13.1            hba837de_1005    conda-forge
>> 
>> freetype                  2.10.4               h0708190_1    conda-forge
>> 
>> freexl                    1.0.6                h7f98852_0    conda-forge
>> 
>> geos                      3.8.1                he1b5a44_0    conda-forge
>> 
>> geotiff                   1.6.0                h5d11630_3    conda-forge
>> 
>> gettext                   0.19.8.1          h0b5b191_1005    conda-forge
>> 
>> giflib                    5.2.1                h36c2ea0_2    conda-forge
>> 
>> gsl                       2.6                  he838d99_2    conda-forge
>> 
>> hdf4                      4.2.15               h10796ff_3    conda-forge
>> 
>> hdf5                      1.10.6          nompi_h7c3c948_1111
>> conda-forge
>> 
>> hdfeos2                   2.20              h64bfcee_1000    conda-forge
>> 
>> hdfeos5                   5.1.16               hb4ce793_7    conda-forge
>> 
>> icu                       67.1                 he1b5a44_0    conda-forge
>> 
>> jasper                    1.900.1           h07fcdf6_1006    conda-forge
>> 
>> jpeg                      9d                   h36c2ea0_0    conda-forge
>> 
>> json-c                    0.13.1            hbfbb72e_1002    conda-forge
>> 
>> kealib                    1.4.14               hcc255d8_2    conda-forge
>> 
>> krb5                      1.17.2               h926e7f8_0    conda-forge
>> 
>> libblas                   3.9.0                8_openblas    conda-forge
>> 
>> libcblas                  3.9.0                8_openblas    conda-forge
>> 
>> libcurl                   7.76.1               hc4aaa36_1    conda-forge
>> 
>> libdap4                   3.20.6               hd7c4107_2    conda-forge
>> 
>> libedit                   3.1.20191231         he28a2e2_2    conda-forge
>> 
>> libev                     4.33                 h516909a_1    conda-forge
>> 
>> libffi                    3.3                  h58526e2_2    conda-forge
>> 
>> libgcc-ng                 9.3.0               h2828fa1_19    conda-forge
>> 
>> libgdal                   3.1.4                h50e41a3_1    conda-forge
>> 
>> libgfortran-ng            7.5.0               h14aa051_19    conda-forge
>> 
>> libgfortran4              7.5.0               h14aa051_19    conda-forge
>> 
>> libglib                   2.68.3               h3e27bee_0    conda-forge
>> 
>> libgomp                   9.3.0               h2828fa1_19    conda-forge
>> 
>> libiconv                  1.16                 h516909a_0    conda-forge
>> 
>> libkml                    1.3.0             h238a007_1013    conda-forge
>> 
>> libnetcdf                 4.7.4           nompi_h56d31a8_107    conda-forge
>> 
>> libnghttp2                1.43.0               h812cca2_0    conda-forge
>> 
>> libopenblas               0.3.12          pthreads_hb3c22a3_1
>> conda-forge
>> 
>> libpng                    1.6.37               h21135ba_2    conda-forge
>> 
>> libpq                     12.3                 h255efa7_3    conda-forge
>> 
>> librttopo                 1.1.0                hb271727_4    conda-forge
>> 
>> libspatialite             5.0.1                h6ec7341_0    conda-forge
>> 
>> libssh2                   1.9.0                ha56f1ee_6    conda-forge
>> 
>> libstdcxx-ng              9.3.0               h6de172a_19    conda-forge
>> 
>> libtiff                   4.2.0                hbd63e13_2    conda-forge
>> 
>> libuuid                   2.32.1            h7f98852_1000    conda-forge
>> 
>> libwebp-base              1.2.0                h7f98852_2    conda-forge
>> 
>> libxcb                    1.13              h7f98852_1003    conda-forge
>> 
>> libxml2                   2.9.10               h68273f3_2    conda-forge
>> 
>> lz4-c                     1.9.3                h9c3ff4c_0    conda-forge
>> 
>> ncl                       6.6.2               h087f628_23    conda-forge
>> 
>> ncurses                   6.2                  h58526e2_4    conda-forge
>> 
>> netcdf-fortran            4.5.3           nompi_hfef6a68_101    conda-forge
>> 
>> openjpeg                  2.4.0                hb52868f_1    conda-forge
>> 
>> openssl                   1.1.1k               h7f98852_0    conda-forge
>> 
>> pcre                      8.45                 h9c3ff4c_0    conda-forge
>> 
>> pixman                    0.38.0            h516909a_1003    conda-forge
>> 
>> poppler                   0.89.0               h2de54a5_5    conda-forge
>> 
>> poppler-data              0.4.10                        0    conda-forge
>> 
>> postgresql                12.3                 hc2f5b80_3    conda-forge
>> 
>> proj                      7.1.1                h966b41f_3    conda-forge
>> 
>> pthread-stubs             0.4               h36c2ea0_1001    conda-forge
>> 
>> readline                  8.1                  h46c0cb4_0    conda-forge
>> 
>> sqlite                    3.36.0               h9cd32fc_0    conda-forge
>> 
>> tiledb                    2.1.6                h91fcb0e_1    conda-forge
>> 
>> tk                        8.6.10               h21135ba_1    conda-forge
>> 
>> tzcode                    2021a                h7f98852_1    conda-forge
>> 
>> udunits2                  2.2.27.27            h975c496_1    conda-forge
>> 
>> xerces-c                  3.2.3                hfe33f54_1    conda-forge
>> 
>> xorg-imake                1.0.7                         0    conda-forge
>> 
>> xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
>> 
>> xorg-libice               1.0.10               h7f98852_0    conda-forge
>> 
>> xorg-libsm                1.2.3             hd9c2040_1000    conda-forge
>> 
>> xorg-libx11               1.6.12               h36c2ea0_0    conda-forge
>> 
>> xorg-libxau               1.0.9                h7f98852_0    conda-forge
>> 
>> xorg-libxaw               1.0.14               h7f98852_0    conda-forge
>> 
>> xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
>> 
>> xorg-libxext              1.3.4                h516909a_0    conda-forge
>> 
>> xorg-libxmu               1.1.3                h516909a_0    conda-forge
>> 
>> xorg-libxpm               3.5.13               h516909a_0    conda-forge
>> 
>> xorg-libxrender           0.9.10            h516909a_1002    conda-forge
>> 
>> xorg-libxt                1.1.5             h516909a_1003    conda-forge
>> 
>> xorg-makedepend           1.0.6                he1b5a44_1    conda-forge
>> 
>> xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
>> 
>> xorg-xextproto            7.3.0             h7f98852_1002    conda-forge
>> 
>> xorg-xproto               7.0.31            h7f98852_1007    conda-forge
>> 
>> xz                        5.2.5                h516909a_1    conda-forge
>> 
>> zlib                      1.2.11            h516909a_1010    conda-forge
>> 
>> zstd                      1.4.9                ha95c52a_0    conda-forge
>> 
>> 
>> $ conda --version
>> 
>> Output:
>> 
>> conda 4.10.1
>> 
>> $ which ncl
>> 
>> Output:
>> 
>> /home/omar13/anaconda3/envs/ncl_stable/bin/ncl
>> 
>> $ ncl -V
>> 
>> Output:
>> 
>> 6.6.2
>> 
>> $ env  | grep NCARG
>> 
>> Output:
>> 
>> NCARG_ROOT=/home/omar13/anaconda3/envs/ncl_stable
>> 
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-install
>> 
>> 
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://mailman.ucar.edu/pipermail/ncl-install/attachments/20210728/24655718/attachment.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-install
> 
> ------------------------------
> 
> End of ncl-install Digest, Vol 165, Issue 12
> ********************************************



More information about the ncl-install mailing list