Bug in ncl-ncarg installatin using apt-get inside Ubuntu 14.04

From: Muhammad Yunus Ahmad Mazuki <ukm.yunus_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 13 2014 - 03:45:43 MDT

Hi,

ncl was added to Ubuntu repository starting 14.04 (I'm just an user, not
the person that added it).
Typical to the installation of ncl binary you need to set the $NCARG_ROOT.
In Ubuntu 14.04 (through 'sudo apt-get install ncl-ncarg'), I believe the
$NCARG_ROOT is /usr. Below are what I have deduced:, the left side are
files inside Ubuntu 14.04 and the rigt side is the normal inside ncl binary
installation.
/usr/share/ncarg $NCARG_ROOT/lib/ncarg
/usr/bin $NCARG_ROOT/bin
/usr/include/ncarg $NCARG_ROOT/include/ncarg
So you see, when I try to run the example 'ng4ex gsun01n -clean', I got the
errors below.

~$ ng4ex gsun01n -clean

NCAR Graphics NCL Example <gsun01n>


This example was set up to display the output to an
X11 window.

  Copying gsun01n.ncl

Running NCL...
 Copyright (C) 1995-2013 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.1.2
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl)
fatal:error at line 1

fatal:Undefined identifier: (gsn_open_wks) is undefined, can't continue
fatal:["Execute.c":8126]:Execute: Error occurred at or near line 10


Finished running 'ncl < gsun01n'...

What I have also assume is that ncl tries to refer to /usr/lib/ncarg,
which does not exist. What I did is make a soft link /usr/lib/ncarg ->
/usr/share/ncarg . When I run the example 'ng4ex gsun01n -clean', ncl run
as it intends to be, although it still gives lots of warning of ERROR
OPENING PWRITX DATA FILE /usr/share/ncarg/database/PlotcharData which I
deduced the PlotcharData was not including in the apt-get installation.

Allright, thats all I wanted to say. I hope something can be done about
this. I have also file a bug report in Ubuntu LaunchPad
https://bugs.launchpad.net/ubuntu/+source/ncl/+bug/1329691 . I'm not sure
from where Ubuntu pulled the debian installer, is it directly from NCAR?

Received on Fri Jun 13 09:45:59 2014

This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT