[ncl-install] possible directory error in ncl-6.4.0 test script?
Kevin Hallock
hallock at ucar.edu
Mon Oct 30 12:11:00 MDT 2017
Hi Sam,
Your configuration appears to be correct. Please note that setting NCARG_RANGS is only necessary if the lib/ncarg/database/rangs directory is in a non-standard location relative to NCARG_ROOT; in your case, it seems that setting NCARG_RANGS should not be necessary, although having it set should not cause any problems.
The ng4ex script is not essential to running NCL and is frequently used to test a variety of NCL scripts to determine if a new NCL binary built from source has all of its features enabled. Could you please run “ncl $NCARG_ROOT/lib/ncarg/nclex/xyplot/xy01n.ncl” to try running this example directly? That should tell us if the issue is in the ng4ex script or in NCL itself.
Thanks,
Kevin
> On Oct 29, 2017, at 1:46 PM, Sam McClatchie <smcclatchie at fishocean.info> wrote:
>
> Hello Mary
>
> I moved the zipped NCL binary to a new directory called /usr/share/ncl-6.4.0
> and unzipped the archive using:
> tar -zxvf ncl_ncarg-6.4.0-Debian8.6_64bit_gnu492.tar.gz.
>
> Three subdirectories were created under /usr/share/ncl-6.4.0 called ./bin, ./share, and ./lib.
>
> I modified the ~/.bashrc by adding:
>
> # settings for NCL smcc 28 Oct/2017
> export NCARG_ROOT=/usr/share/ncl-6.4.0
> export PATH=$NCARG_ROOT/bin:$PATH
> export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu/libssl.so.1.0.0
> export NCARG_RANGS=/usr/share/ncl-6.4.0/lib/ncarg/database/rangs
>
> This is a new computer that has no previous NCL install.
>
> Here are the results of the commands that you asked me to run:
>
> smcc at jaguar:~$ which ncl
> /usr/share/ncl-6.4.0/bin/ncl
> smcc at jaguar:~$ env | grep NCARG
> NCARG_ROOT=/usr/share/ncl-6.4.0
> NCARG_RANGS=/usr/share/ncl-6.4.0/lib/ncarg/database/rangs
> smcc at jaguar:~$ ncargpath lib
> /usr/share/ncl-6.4.0/lib
> smcc at jaguar:~$ ncargpath ncarg
> /usr/share/ncl-6.4.0/lib/ncarg
> These all look ok, don't they?
>
> Best fishes
>
> Sam
>
>
> On 10/29/2017 08:05 AM, Mary Haley wrote:
>> Hi Sam,
>>
>> There's definitely something off here.
>>
>> From your description, it sounds like you downloaded the gzipped tarfile from the ESG and then probably extracted it somewhere.
>>
>> Can you tell me how and where you extracted the files from the gzipped tarfile? Also, what does the following report (from the UNIX command line):
>>
>> which ncl
>> env | grep NCARG
>> ncargpath lib
>> ncargpath ncarg
>>
>> In general, when you install NCL, you should only need to set the NCARG_ROOT environment variable. The above commands will tell me if any other NCARG_XXXX environment variables are being set. If you have any old environment variables left over from a previous installation, then you may need to change them, or not set them at all.
>>
>> --Mary
>>
>>
>>
>>
>> On Sat, Oct 28, 2017 at 2:53 PM, Sam McClatchie <smcclatchie at fishocean.info <mailto:smcclatchie at fishocean.info>> wrote:
>> Hi
>>
>> I've just installed NCL-6.4.0 on ubuntu 17.10 using the opendap enabled archive ncl_ncarg-6.4.0-Debian8.6_64bit_gnu492.tar.gz.
>>
>> Everything seems to be working fine, e.g.
>>
>> ng4ex NUG_xy_plot NUG_panel_plot
>> runs and produces the plots, and the opendap test script returns the expected output. However, I detect what may be a small error in one of the tests on this page <http://www.ncl.ucar.edu/Download/install.shtml> <http://www.ncl.ucar.edu/Download/install.shtml>:
>>
>> You can quickly test if NCL is installed properly by typing:
>>
>> ng4ex xy01n -clean
>> smcc at jaguar:~$ ng4ex xy01n -clean
>>
>> NCAR Graphics NCL Example <xy01n>
>>
>> Segmentation fault
>> Copying xy01n.ncl
>> cp: cannot stat '/usr/share/ncl-6.4.0/lib/ncarg/nclex//xy01n.ncl': No such file or directory
>>
>> Running NCL...
>> xy01n.ncl: No such file or directory.
>>
>> ncl failed.
>>
>> I notice there is a // in the file location. When I look for the example file:
>>
>> smcc at jaguar:~$ locate xy01n.ncl
>> /usr/share/ncl-6.4.0/lib/ncarg/nclex/xyplot/xy01n.ncl
>>
>> Is there a missing subdirectory in the call to the example file?
>>
>> Best fishes
>> Sam
>>
>>
>> --
>> Sam McClatchie (Fisheries oceanographer, SWFSC, NOAA)
>> & Elena Turin (Internal controls accountant, UCSD)
>> work: SWFSC, 8901 La Jolla Shores Drive, La Jolla, CA 92037-1509, USA
>> home: 12723 Salmon River Rd, San Diego, CA 92129, USA
>> cell: 858 752 8495 <tel:%28858%29%20752-8495>
>> Research home page <http://www.fishocean.info/>
>> <meditation_small.jpg>
>>
>> "The time has come", the tui said,
>> "to talk of many things:
>> Of songs - and ferns - and flowering flax,
>> of Pukekos and dreams ..."
>>
>> (not Lewis Carroll)
>>
>> _______________________________________________
>> 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>
>>
>>
>
> --
> Sam McClatchie (Fisheries oceanographer, SWFSC, NOAA)
> & Elena Turin (Internal controls accountant, UCSD)
> work: SWFSC, 8901 La Jolla Shores Drive, La Jolla, CA 92037-1509, USA
> home: 12723 Salmon River Rd, San Diego, CA 92129, USA
> cell: 858 752 8495
> Research home page <http://www.fishocean.info/>
> <meditation_small.jpg>
>
> "The time has come", the tui said,
> "to talk of many things:
> Of songs - and ferns - and flowering flax,
> of Pukekos and dreams ..."
>
> (not Lewis Carroll)
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-install/attachments/20171030/ddc42d8e/attachment.html>
More information about the ncl-install
mailing list