[ncl-talk] Ubuntu14.10 "setenv" package installation issue
HAVENER, KEVIN F GS-12 USAF AFWA 14 WS/WXED
kevin.havener at us.af.mil
Fri Nov 7 08:23:07 MST 2014
No I wouldn't do that. I was just trying to figure out how ncl was installed at your location. I was hoping that it was just a symlink problem. Usually all of ncl is installed under the $NCARG_ROOT. Apparently your executables were installed in /usr/bin and who knows where your lib files are? Probably in /usr/lib but could be somewhere else, too. There is also an include directory you'll have to locate as well.
Since it isn't going to be a simple fix, you need to ask this question on ncl-install and talk to your system admin. I think your ncl install is broken pretty hard. The whole ncl package needs to be installed somewhere in one directory, your NCARG_ROOT points to that directory and ncl will find the bin|lib|include directories from there. Specifically, your installation can't find the lib directory, so it is throwing this error. I'm guessing it may be an older version too, because ncl has installed to ncl_ncarg rather than ncarg for awhile, I think.
But if your install can't be changed, then you should be able to get your ENV set with the help of ncl-install and your sysadmin.
Kevin Havener
-----Original Message-----
From: Amadou Coulibaly [mailto:mpapin24 at gmail.com]
Sent: Friday, November 07, 2014 10:00 AM
To: HAVENER, KEVIN F GS-12 USAF AFWA 14 WS/WXED
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] Ubuntu14.10 "setenv" package installation issue
Hi KEVIN,
When I used the command "cd /usr/bin and ls -l ncl" I got this:
-rwxr-xr-x 1 root root 5063552 Sep 8 11:25 ncl
Should I bring both ncl and NCARG_ROOT to /usr/local/ncl_ncarg?
Best
On 7 November 2014 14:23, HAVENER, KEVIN F GS-12 USAF AFWA 14 WS/WXED <kevin.havener at us.af.mil> wrote:
Perhaps your ncl is symlinked from somewhere else to /usr/bin.
Cd to /usr/bin and "ls -l ncl". You may see something (fore example) like ncl -> /usr/local/ncl_ncarg-6.2.0/bin/ncl
In which case try setting your NCARG_ROOT to /usr/local/ncl_ncarg or whatever directory ncl is symlinked to.
Kevin Havener
-----Original Message-----
From: ncl-talk-bounces at ucar.edu [mailto:ncl-talk-bounces at ucar.edu] On Behalf Of Amadou Coulibaly
Sent: Friday, November 07, 2014 9:06 AM
To: ncl-talk at ucar.edu
Subject: [ncl-talk] Ubuntu14.10 "setenv" package installation issue
Dear NCL users,
I still have the same problem when I tried to run ncl script, I got this error message:
fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl)
fatal:error at line 1 in file test1.ncl fatal:syntax error: line -1 before or near
According to one of David's suggestions, I used the following command: "which ncl" and I got this: /usr/bin/ncl
But when I tried to use the command "export NCARG_ROOT=/usr" or "NCARG_ROOT=/usr ; export NCARG_ROOT"
And after that I tried to run my ncl script, I still have the same error messages above in red colour.
How to solve this problem?--
Best regards
COULIBALY AMADOU
PhD Student on West African Climate System (WACS)
FUTA - Federal University of Technology of Akure, Nigeria
Visiting Student - University of Cologne, Germany
Institute of Geophysics and Meteorology
Pohligstr. 3 / Office 3.102
D-50969 Köln
Project: WASCAL (West African Science Service Centre on Climate Change and Adapted Land Use)
Phone:(+234) 810 795 2836 /(+223) 65 67 27 57 /(+226) 64 57 37 27 /+49 15218352574
E-mail: mpapin24 at gmail.com / coulibalya68 at yahoo.com
"The time is always right to do right": Nelson Mandela
"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing" : Abraham Lincoln
"Do what you can, with what you have, where you are" Theodore Roosevelt
--
COULIBALY AMADOU
PhD Student on West African Climate System (WACS) FUTA - Federal University of Technology of Akure, Nigeria
Visiting Student - University of Cologne, Germany Institute of Geophysics and Meteorology
Pohligstr. 3 / Office 3.102
D-50969 Köln
Project: WASCAL (West African Science Service Centre on Climate Change and Adapted Land Use)
Phone:(+234) 810 795 2836 /(+223) 65 67 27 57 /(+226) 64 57 37 27 /+49 15218352574
E-mail: mpapin24 at gmail.com / coulibalya68 at yahoo.com
"The time is always right to do right": Nelson Mandela
"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing" : Abraham Lincoln
"Do what you can, with what you have, where you are" Theodore Roosevelt
More information about the ncl-talk
mailing list