[ncl-install] Help!

Kevin Hallock hallock at ucar.edu
Fri Mar 27 12:47:31 MDT 2020


Hi Octavio,

I think I’ve found a quick fix that might work for your situation. First, you’ll need to install gfortran into your conda environment:
conda activate ncl_stable
conda install -c conda-forge gfortran_linux-64

Then edit the file “/home/augustico/miniconda3/envs/ncl_stable/bin/ncargf77” and change line 26 to:
set fortran  = "x86_64-conda_cos6-linux-gnu-gfortran"

And then try running your “ncargex arex02” command again.

Note that this is a quick fix and will be overwritten if you update to a new build of NCL on conda.

I hope this helps,
Kevin

> On Mar 27, 2020, at 11:19 AM, Octavio Morales <oct_amg1289 at hotmail.com> wrote:
> 
> Hi Kevin,
> 
> Yes, I need Ncar graphics to work. The graphics that I'm trying to compile are written in Fortran and I am trying to compile them using the ncargf77 command but when I do so the message that I attached appears.
> 
> 
> 
> From: Kevin Hallock <hallock at ucar.edu>
> Sent: Friday, March 27, 2020 11:09:37 AM
> To: Octavio Morales <oct_amg1289 at hotmail.com>
> Cc: ncl-install at ucar.edu <ncl-install at ucar.edu>
> Subject: Re: [ncl-install] Help!
>  
> Hi Octavio,
> 
> I’m sorry to hear you’ve having trouble getting NCL and NCAR Graphics to work.
> 
> Are you specifically trying to use NCAR Graphics, or do you just need NCL? From the terminal output you pasted below, it looks like NCL is already working; however, getting NCAR Graphics to work properly with a conda-provided Fortran compiler might require a bit more work.
> 
> Thanks,
> Kevin
> 
>> On Mar 26, 2020, at 9:28 PM, Octavio Morales via ncl-install <ncl-install at ucar.edu <mailto:ncl-install at ucar.edu>> wrote:
>> 
>> Hi,I have downloaded an installed NCL-NCAR using miniconda, but when I try to compile this message appears:
>> 
>> (ncl_stable) augustico at octavioamg-gl552jx:~$ ncargex arex02
>> 
>> NCAR Graphics Fortran  Example <arex02>
>> 
>>   Copying arex02.f
>> 
>> Compiling and linking...
>> /home/conda/feedstock_root/build_artifacts/ncl_1585160596974/_build_env/bin/x86_64-conda_cos6-linux-gnu-gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -L/home/augustico/miniconda3/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/augustico/miniconda3/envs/ncl_stable/lib -Wl,-rpath-link,/home/augustico/miniconda3/envs/ncl_stable/lib -L/home/augustico/miniconda3/envs/ncl_stable/lib -o arex02 arex02.f -L/home/augustico/miniconda3/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_1585160596974/_build_env/bin/x86_64-conda_cos6-linux-gnu-gfortran: Command not found.
>> 
>> The compile and link failed.
>> #############################################################################################################################################
>> Same happens with ncargf77:
>> 
>> (ncl_stable) augustico at octavioamg-gl552jx:~$ ncargf77
>> /home/conda/feedstock_root/build_artifacts/ncl_1585160596974/_build_env/bin/x86_64-conda_cos6-linux-gnu-gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -L/home/augustico/miniconda3/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/augustico/miniconda3/envs/ncl_stable/lib -Wl,-rpath-link,/home/augustico/miniconda3/envs/ncl_stable/lib -L/home/augustico/miniconda3/envs/ncl_stable/lib -L/home/augustico/miniconda3/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_1585160596974/_build_env/bin/x86_64-conda_cos6-linux-gnu-gfortran: Command not found.
>> #############################################################################################################################################
>> 
>> conda list -n ncl_stable
>> (ncl_stable) augustico at octavioamg-gl552jx:~$ conda list -n ncl_stable
>> # packages in environment at /home/augustico/miniconda3/envs/ncl_stable:
>> #
>> # Name                    Version                   Build  Channel
>> _libgcc_mutex             0.1                 conda_forge    conda-forge
>> _openmp_mutex             4.5                      1_llvm    conda-forge
>> boost-cpp                 1.72.0               h8e57a91_0    conda-forge
>> bzip2                     1.0.8                h516909a_2    conda-forge
>> ca-certificates           2019.11.28           hecc5488_0    conda-forge
>> cairo                     1.16.0            hcf35c78_1003    conda-forge
>> certifi                   2019.11.28       py38h32f6830_1    conda-forge
>> cfitsio                   3.470                hb60a0a2_2    conda-forge
>> curl                      7.68.0               hf8cf82a_0    conda-forge
>> esmf                      8.0.0           nompi_he6d0a24_5    conda-forge
>> expat                     2.2.9                he1b5a44_2    conda-forge
>> fontconfig                2.13.1            h86ecdb6_1001    conda-forge
>> freetype                  2.10.1               he06d7ca_0    conda-forge
>> freexl                    1.0.5             h14c3975_1002    conda-forge
>> geos                      3.8.1                he1b5a44_0    conda-forge
>> geotiff                   1.5.1                hcbe54f9_9    conda-forge
>> gettext                   0.19.8.1          hc5be6a0_1002    conda-forge
>> giflib                    5.2.1                h516909a_2    conda-forge
>> glib                      2.58.3          py38h73cb85d_1003    conda-forge
>> gsl                       2.6                  h294904e_0    conda-forge
>> hdf4                      4.2.13            hf30be14_1003    conda-forge
>> hdf5                      1.10.5          nompi_h3c11f04_1104    conda-forge
>> hdfeos2                   2.20              h64bfcee_1000    conda-forge
>> hdfeos5                   5.1.16               h8b6279f_5    conda-forge
>> icu                       64.2                 he1b5a44_1    conda-forge
>> jasper                    1.900.1           h07fcdf6_1006    conda-forge
>> jpeg                      9c                h14c3975_1001    conda-forge
>> json-c                    0.13.1            h14c3975_1001    conda-forge
>> kealib                    1.4.12               hec59c27_0    conda-forge
>> krb5                      1.16.4               h2fd8d38_0    conda-forge
>> ld_impl_linux-64          2.34                 h53a641e_0    conda-forge
>> libblas                   3.8.0               16_openblas    conda-forge
>> libcblas                  3.8.0               16_openblas    conda-forge
>> libcurl                   7.68.0               hda55be3_0    conda-forge
>> libdap4                   3.20.4               hd3bb157_0    conda-forge
>> libedit                   3.1.20170329      hf8c457e_1001    conda-forge
>> libffi                    3.2.1             he1b5a44_1007    conda-forge
>> libgcc-ng                 9.2.0                h24d8f2e_2    conda-forge
>> libgdal                   3.0.4                hce44138_2    conda-forge
>> libgfortran-ng            7.3.0                hdf63c60_5    conda-forge
>> libiconv                  1.15              h516909a_1006    conda-forge
>> libkml                    1.3.0             hb574062_1011    conda-forge
>> libnetcdf                 4.7.3           nompi_h9f9fd6a_101    conda-forge
>> libopenblas               0.3.9                h5ec1e0e_0    conda-forge
>> libpng                    1.6.37               hed695b0_1    conda-forge
>> libpq                     12.2                 hae5116b_0    conda-forge
>> libspatialite             4.3.0a            heb269f5_1037    conda-forge
>> libssh2                   1.8.2                h22169c7_2    conda-forge
>> libstdcxx-ng              9.2.0                hdf63c60_2    conda-forge
>> libtiff                   4.1.0                hc7e4089_6    conda-forge
>> libuuid                   2.32.1            h14c3975_1000    conda-forge
>> libwebp                   1.0.2                h56121f0_5    conda-forge
>> libwebp-base              1.1.0                         2    conda-forge
>> libxcb                    1.13              h14c3975_1002    conda-forge
>> libxml2                   2.9.10               hee79883_0    conda-forge
>> llvm-openmp               9.0.1                hc9558a2_2    conda-forge
>> lz4-c                     1.8.3             he1b5a44_1001    conda-forge
>> ncl                       6.6.2               hda7772a_18    conda-forge
>> ncurses                   6.1               hf484d3e_1002    conda-forge
>> netcdf-fortran            4.5.2           nompi_h09cde99_103    conda-forge
>> openjpeg                  2.3.1                h981e76c_3    conda-forge
>> openssl                   1.1.1e               h516909a_0    conda-forge
>> pcre                      8.44                 he1b5a44_0    conda-forge
>> pip                       20.0.2                     py_2    conda-forge
>> pixman                    0.38.0            h516909a_1003    conda-forge
>> poppler                   0.67.0               h14e79db_8    conda-forge
>> poppler-data              0.4.9                         1    conda-forge
>> postgresql                12.2                 hf1211e9_0    conda-forge
>> proj                      6.3.1                hc80f0dc_1    conda-forge
>> pthread-stubs             0.4               h14c3975_1001    conda-forge
>> python                    3.8.2           h8356626_5_cpython    conda-forge
>> python_abi                3.8                      1_cp38    conda-forge
>> readline                  8.0                  hf8c457e_0    conda-forge
>> setuptools                46.1.3           py38h32f6830_0    conda-forge
>> sqlite                    3.30.1               hcee41ef_0    conda-forge
>> tbb                       2018.0.5             h2d50403_0    conda-forge
>> tiledb                    1.7.0                hcde45ca_2    conda-forge
>> tk                        8.6.10               hed695b0_0    conda-forge
>> tzcode                    2019a             h516909a_1002    conda-forge
>> udunits2                  2.2.27.6          h4e0c4b3_1001    conda-forge
>> wheel                     0.34.2                     py_1    conda-forge
>> xerces-c                  3.2.2             h8412b87_1004    conda-forge
>> xorg-imake                1.0.7                         0    conda-forge
>> xorg-kbproto              1.0.7             h14c3975_1002    conda-forge
>> xorg-libice               1.0.10               h516909a_0    conda-forge
>> xorg-libsm                1.2.3             h84519dc_1000    conda-forge
>> xorg-libx11               1.6.9                h516909a_0    conda-forge
>> xorg-libxau               1.0.9                h14c3975_0    conda-forge
>> xorg-libxaw               1.0.13            h14c3975_1002    conda-forge
>> xorg-libxdmcp             1.1.3                h516909a_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            h14c3975_1002    conda-forge
>> xorg-xextproto            7.3.0             h14c3975_1002    conda-forge
>> xorg-xproto               7.0.31            h14c3975_1007    conda-forge
>> xz                        5.2.4             h516909a_1002    conda-forge
>> zlib                      1.2.11            h516909a_1006    conda-forge
>> zstd                      1.4.4                h3b9ef0a_2    conda-forge
>> #############################################################################################################################################
>>  conda --version
>> (ncl_stable) augustico at octavioamg-gl552jx:~$ conda --version
>> conda 4.8.3
>> ############################################################################################################################################
>> which ncl
>> (ncl_stable) augustico at octavioamg-gl552jx:~$ which ncl
>> /home/augustico/miniconda3/envs/ncl_stable/bin/ncl
>> ############################################################################################################################################
>> ncl -V
>> (ncl_stable) augustico at octavioamg-gl552jx:~$ ncl -V
>> 6.6.2
>> ############################################################################################################################################
>>      env  | grep NCARG
>> (ncl_stable) augustico at octavioamg-gl552jx:~$ env  | grep NCARG
>> NCARG_ROOT=/home/augustico/miniconda3/envs/ncl_stable
>> ############################################################################################################################################
>> (ncl_stable) augustico at octavioamg-gl552jx:~$ echo $PATH
>> /home/augustico/miniconda3/envs/ncl_stable/home/augustico/miniconda3/envs/ncl_stable/bin:/home/augustico/miniconda3/envs/ncl_stable/home/augustico/miniconda3/envs/ncl_stable:/home/augustico/miniconda3/envs/ncl_stable/bin:/home/augustico/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/augustico/miniconda3/envs/ncl_stable/home/augustico/miniconda3/envs/ncl_stable
>> ############################################################################################################################################
>> (ncl_stable) augustico at octavioamg-gl552jx:~$ env
>> SHELL=/bin/bash
>> SESSION_MANAGER=local/octavioamg-gl552jx:@/tmp/.ICE-unix/1847,unix/octavioamg-gl552jx:/tmp/.ICE-unix/1847
>> COLORTERM=truecolor
>> XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
>> XDG_MENU_PREFIX=gnome-
>> GNOME_DESKTOP_SESSION_ID=this-is-deprecated
>> GTK_IM_MODULE=ibus
>> CONDA_EXE=/home/augustico/miniconda3/bin/conda
>> _CE_M=
>> LANGUAGE=es_MX:es
>> QT4_IM_MODULE=ibus
>> GNOME_SHELL_SESSION_MODE=ubuntu
>> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
>> XMODIFIERS=@im=ibus
>> DESKTOP_SESSION=ubuntu
>> SSH_AGENT_PID=1763
>> GTK_MODULES=gail:atk-bridge
>> PWD=/home/augustico
>> LOGNAME=augustico
>> XDG_SESSION_DESKTOP=ubuntu
>> XDG_SESSION_TYPE=x11
>> CONDA_PREFIX=/home/augustico/miniconda3/envs/ncl_stable
>> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
>> XAUTHORITY=/run/user/1000/gdm/Xauthority
>> WINDOWPATH=2
>> HOME=/home/augustico
>> USERNAME=augustico
>> IM_CONFIG_PHASE=1
>> LANG=es_MX.UTF-8
>> LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
>> XDG_CURRENT_DESKTOP=ubuntu:GNOME
>> VTE_VERSION=5802
>> CONDA_PROMPT_MODIFIER=(ncl_stable) 
>> GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/d6b58c54_4651_46d2_ae41_93fe597d6ef5
>> CPL_ZIP_ENCODING=UTF-8
>> INVOCATION_ID=0ff878323edf43feba7b72d34ab642f1
>> MANAGERPID=1651
>> CLUTTER_IM_MODULE=ibus
>> LESSCLOSE=/usr/bin/lesspipe %s %s
>> XDG_SESSION_CLASS=user
>> TERM=xterm-256color
>> _CE_CONDA=
>> LESSOPEN=| /usr/bin/lesspipe %s
>> USER=augustico
>> UDUNITS2_XML_PATH=/home/augustico/miniconda3/envs/ncl_stable/share/udunits/udunits2.xml
>> GNOME_TERMINAL_SERVICE=:1.237
>> CONDA_SHLVL=2
>> DISPLAY=:0
>> SHLVL=1
>> QT_IM_MODULE=ibus
>> PROJ_LIB=/home/augustico/miniconda3/envs/ncl_stable/share/proj
>> CONDA_PYTHON_EXE=/home/augustico/miniconda3/bin/python
>> XDG_RUNTIME_DIR=/run/user/1000
>> NCARG_ROOT=/home/augustico/miniconda3/envs/ncl_stable
>> CONDA_DEFAULT_ENV=ncl_stable
>> JOURNAL_STREAM=9:40387
>> XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
>> GDAL_DATA=/home/augustico/miniconda3/envs/ncl_stable/share/gdal
>> PATH=/home/augustico/miniconda3/envs/ncl_stable/home/augustico/miniconda3/envs/ncl_stable/bin:/home/augustico/miniconda3/envs/ncl_stable/home/augustico/miniconda3/envs/ncl_stable:/home/augustico/miniconda3/envs/ncl_stable/bin:/home/augustico/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/augustico/miniconda3/envs/ncl_stable/home/augustico/miniconda3/envs/ncl_stable
>> GDMSESSION=ubuntu
>> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
>> CONDA_PREFIX_1=/home/augustico/miniconda3
>> _=/usr/bin/env
>> #############################################################################################################################################
>> 
>> 
>> Octavio A. Morales González
>> Thesis student
>> Universidad nacional autónoma de México
>> Facultad de Ingeniería
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install <http://mailman.ucar.edu/mailman/listinfo/ncl-install>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20200327/8ae56f5e/attachment-0001.html>


More information about the ncl-install mailing list