Re: Problem unzipping/untarring NCL setup file

From: David Book <davidbook_at_nyahnyahspammersnyahnyah>
Date: Wed Jan 30 2013 - 12:30:58 MST

Mary and Daniel . . .

To continue our discussion, I have two questions.

First question: Earlier I pointed out a peculiarity in my prompts. The
prompt when I am in my home directory reads

Book@Book-Enigmatics ~ rather than Book

When I do a cd .. the prompt reads Book@Book-Enigmatics /home

When I do another cd .. the prompt reads Book@Book-Enigmatics /

This is the same as the prompt in my home directory, except that a slash
has replaced the tilde.

If I do an ls -a command here, I see all the NCARG directories (tmp, home,
etc, var, bin, and so on). The files that were zipped in that installation
file that I downloaded have been installed in Book@Book-Enigmatics /
rather than my home directory Book@Book-Enigmatics ~ ! I think this
explains why I was unable to gunzip the .gz file or untar the .tar file
using the full pathname prescribed in the instructions, namely

gunzip /cygwin/home/Book/ncl_ncarg-6.1.0.CYGWIN_NT-6.1-WOW64_i686.tar.gz

Although I tried to follow the instructions scrupulously, somehow I have
managed to create an unorthodox directory structure.

This probably also explains why I have been unable to carry out the next
step in the instructions, "Set up your environment to run NCL." In my home
directory (Book@Book-Enigmatics ~) tried to use nedit to insert export
NCARG_ROOT=/usr/local and export PATH=/usr/local/bin:$PATH in my .bashrc
file, but the system couldn't even find nedit (it can find it when I am in
the second, "lower" directory Book@Book-Enigmatics / ).

I'm afraid I'm only going to have more trouble unless I fix this. I suspect
I will have to reinstall CYGWIN and NCL. Is this correct?

Second question: My reason for installing NCL in the first place (which
necessitated first installing CYGWIN) was because I wanted to run an old
program, written in Fortran 90, that uses Autograph to produce plots. I
didn't want to rewrite my program and I thought that it would be easy to
download the NCAR graphics package. (Boy, was I wrong!)

Bujt now that I have downloaded that package, I can't find any of the
Autograph routines (AGSETF, EZXY, etc.) in the libraries. Are they
included? If not, how can I get the Autograph package, either in source
form or binaries?

David

David L. Book
President, Enigmatics, Inc.

----------------------------------------
 From: "Mary Haley" <haley@ucar.edu>
Sent: Tuesday, January 29, 2013 1:35 PM
To: davidbook@enigmatics.com
Subject: Re: Problem unzipping/untarring NCL setup file

David,

You need to be careful about when you use "~/" and just "/".

If you use ~/ in front of a path, then it will automatically prepend your
home directory to it, which is /home/Book

So, you *don't* want to do this:

> tar xvf
~/cygwin/home/Book@Enigmatics-Book/ncl_ncarg-6.1.0.CYGWIN_NT-6.1-WOW64_i686.
tar

This should work:

cd /usr/local
tar -xvf /home/Book/ncl_ncarg-6.1.0.CYGWIN_NT-6.1-WOW64_i686.tar

or this:

cd /usr/local
tar -xvf ~/ncl_ncarg-6.1.0.CYGWIN_NT-6.1-WOW64_i686.tar

Again, "~/" is just a substitution for your home directory, which appears
to be "/home/Book/".

--Mary

On Jan 29, 2013, at 1:23 PM, David Book wrote:

> Daniel . . .
>
> Thanks again. Here's what I did and what I got:
>
>
> Book@Book-Enigmatics ~
> $ cd /usr/local
>
> Book@Book-Enigmatics /usr/local
> $ tar xvf
~/cygwin/home/Book@Enigmatics-Book/ncl_ncarg-6.1.0.CYGWIN_NT-6.1-WOW64_i686.
tar
> tar:
/home/Book/cygwin/home/Book@Enigmatics-Book/ncl_ncarg-6.1.0.CYGWIN_NT-6.1-WO
W64_i686.tar: Cannot open: No such file or directory
> tar: Error is not recoverable: exiting now
>
> Book@Book-Enigmatics /usr/local
> $ tar xvf ~/cygwin/home/Book/ncl_ncarg-6.1.0.CYGWIN_NT-6.1-WOW64_i686.tar
        tar:
/home/Book/cygwin/home/Book/ncl_ncarg-6.1.0.CYGWIN_NT-6.1-WOW64_i686.tar:
Cannot open: No such file or directory
> tar: Error is not recoverable: exiting now
>
>
> David
>
>
> David L. Book
> President, Enigmatics, Inc.
>
>
> From: "David Book" <davidbook@enigmatics.com>
> Sent: Tuesday, January 29, 2013 12:02 PM
> To: "Daniel Packman" <pack@ucar.edu>
> Subject: Re: Problem unzipping/untarring NCL setup file
>
> Daniel . . .
>
> Here's what I did and what I got:
>
> $cd
>
> Book@Book-Enigmatics ~
> $ pwd
> /home/Book
>
> Book@Book-Enigmatics ~
>
>
> So the directory is named "Book," but the prompt says
"Book@Book-Enigmatics ~" What does this mean?
>
>
> David
>
> David L. Book
> President, Enigmatics, Inc.
>
>
> From: "Daniel Packman" <pack@ucar.edu>
> Sent: Tuesday, January 29, 2013 10:30 AM
> To: davidbook@enigmatics.com
> Subject: Re: Problem unzipping/untarring NCL setup file
>
>
> It sounds like you need to sort out just what your home directory looks
like
> within cygwin. If you just do a "cd" with no arguments, you should be
taken
> to your home directory. If you then do a "pwd", the path to your home
directory
> should be echoed.
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Wed Jan 30 12:32:07 2013

This archive was generated by hypermail 2.1.8 : Fri Feb 01 2013 - 15:30:22 MST