GrADS for Cygwin

Arlindo da Silva dasilva at ALUM.MIT.EDU
Tue Aug 21 11:20:45 EDT 2007


On 8/14/07, Ben-Jei Tsuang <btsuang at yahoo.com> wrote:
> Dear Arlindo:
>
> Thank you for the information. I have download a binary version from
> http://grads.iges.org/grads/downloads.html. This version can be run from M/S
> window. But I am wondering that do you have a version which can be run under
> Cygwin bash shell? Or I have to build it from the  supplibs provided?
>

You should be able to run the same binaries from the bash shell,
provided that you make sure there is a unique cygwin DLL in your path.
 I bundled the cygwin
DLL with the win32 versions of GrADS so that installing cygwin did not
become a requirement. Here is what suggest you do:

1) start cygwin with the bash shell and cd to directory where the
grads binaries are installed and start one of the executables:

$ cd c:/Programs Files/PCGrads/xwin32         (check dir name)
$ ./gradsnc

If it complains that there 2 cygwin DLLs in your path, then rename the
one bundled with grads and use the one in your cygwin installation.
Make sure it starts.

2) Now, the gradshdf.exe is actually a wrapper that sets all kinds of
environment variables before actually starting the executable under a
native rxvt - there is bit of black magic in these wrappers meant to
approximate the "windows experience", in addition to providing a
better terminal than cmd.exe. The good thing is, you don't need it.
You will find files like gradshdf.dll, gradsnc.dll -- these are not
DLLs, but simply the real command line executables. So, if you

$ mv gradsnc.exe gradsnc-wrapper.exe
$ mv gradsnc.dll gradsnc.exe

you will now have a gradsnc just like on Linux/Unix: you will have to
set the GADDIR, GASCRPT as usual.

If all fails, rebuild or wait for my build for v1.9.0 sometime in the Fall.

  Good Luck,

       Arlindo


> Ben
>
> ----- Original Message -----
> From: "Arlindo da Silva" <dasilva at ALUM.MIT.EDU>
> To: <GRADSUSR at LIST.CINECA.IT>
> Sent: Wednesday, August 15, 2007 2:08 AM
> Subject: Re: GrADS for Cygwin
>
>
> > On 8/14/07, Ben-Jei Tsuang <btsuang at yahoo.com> wrote:
> >> Dear All:
> >>
> >> I found that Cygwin seems to be a good Linux environemnt for Window XP.
> >> Does
> >> anyone have a version of GrADS, which can be run in Cygwin?
> >>
> >
> > I've been using grads with cygwin for about 10 years although I have
> > not put out any builds since v1.8. The trick is not to build grads
> > proper, but its dependencies, although this got better over time.
> > Using grads with an X under windows is relatively straightforward,
> > specially now that cygwin bundles a free X server.  I have another
> > version which does not require an X server, but still uses an internal
> > X11 emulation; my hope is to be able to use cairo in the future to
> > bypass X altogether. I have posted all my cygwin supplibs and
> > instructions here:
> >
> >               ftp://grads.iges.org/grads/Supplibs/1.8/lib/
> >
> > Once the v1.9.0 is out I may produce a final win32/win32e build. You
> > *may* be able to use my windows builds under the download area with a
> > recent cygwin but you may need to refresh the cygwin.dll shipped with
> > it.
> >
> >  Have fun!
> >
> >                  Arlindo
> >
> > --
> > Arlindo da Silva
> > dasilva at alum.mit.edu
>


--
Arlindo da Silva
dasilva at alum.mit.edu



More information about the gradsusr mailing list