[gradsusr] about GrADS-2.2.0
Jennifer M Adams
jadams21 at gmu.edu
Sun Sep 24 07:59:28 EDT 2017
Here is a tarball with my builds of the supplibs for CentOS7:
ftp://cola.gmu.edu/grads/Supplibs/2.2/builds/supplibs-centos7.3-x86_64.tar.gz
In there you will find .supplibs/bin and ./supplibs/lib and ./supplibs/include subdirectories. The libcairo.so and libgd.so files (and all the other libraries linked with GrADS) are in the ‘lib’ subdirectory. You can put these files anywhere, under your $HOME directory or in /usr/local/bin and /usr/local/include/ and /usr/local/lib if you prefer. If you put them under your $HOME directory, then you need to update the LD_LIBRARY_PATH environment variable to include $HOME/supplibs/lib.
—Jennifer
p.s. Your English seems very good to me!
> On Sep 24, 2017, at 6:45 AM, weatherman <weather.man at aliyun.com> wrote:
>
> I use the touch command to recreate the udpt file, the error message is different.
>
> river at RIVER-PC:/usr/local/lib$ grads
> Grid Analysis and Display System (GrADS) Version 2.2.0
> Copyright (C) 1988-2017 by George Mason University
> GrADS comes with ABSOLUTELY NO WARRANTY
> See file COPYRIGHT for more information
> Config: v2.2.0 little-endian readline grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile
> Issue 'q config' and 'q gxconfig' commands for more detailed configuration information
> Landscape mode? ('n' for portrait):
> GX Package Initialization: Size = 11 8.5
> GX Package Error: dlopen failed to get a handle on gxprint plug-in named "Cairo"
> libcairo.so.2: cannot open shared object file: No such file or directory
> GX Package Terminated
>
> river at RIVER-PC:/usr/local/lib$ grads -d X11
> Grid Analysis and Display System (GrADS) Version 2.2.0
> Copyright (C) 1988-2017 by George Mason University
> GrADS comes with ABSOLUTELY NO WARRANTY
> See file COPYRIGHT for more information
> Config: v2.2.0 little-endian readline grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile
> Issue 'q config' and 'q gxconfig' commands for more detailed configuration information
> Landscape mode? ('n' for portrait):
> GX Package Initialization: Size = 11 8.5
> GX Package Error: dlopen failed to get a handle on gxprint plug-in named "Cairo"
> libcairo.so.2: cannot open shared object file: No such file or directory
> GX Package Terminated
>
> river at RIVER-PC:/usr/local/lib$ grads -h GD
> Grid Analysis and Display System (GrADS) Version 2.2.0
> Copyright (C) 1988-2017 by George Mason University
> GrADS comes with ABSOLUTELY NO WARRANTY
> See file COPYRIGHT for more information
> Config: v2.2.0 little-endian readline grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile
> Issue 'q config' and 'q gxconfig' commands for more detailed configuration information
> Landscape mode? ('n' for portrait):
> GX Package Initialization: Size = 11 8.5
> GX Package Error: dlopen failed to get a handle on gxprint plug-in named "GD"
>
> libgd.so.2: cannot open shared object file: No such file or directory
> GX Package Terminated
>
> I can't find libcairo.so.2 and libgd.so.2 anywhere.
>
> The environment variables are as follows:
> #For GrADS
> export PATH=$PATH:/usr/local/bin/
> export GADDIR=/usr/local/lib/grads
> export GASCRP=/usr/local/lib/grads/scripts
> export GAUDEF=/usr/local/lib/grads/table
> export GAUDPT=/usr/local/lib/grads/
> export GA2UDXT=/usr/local/bin/gex/udxt
> export LD_LIBRARY_PATH=/usr/local/bin/gex:$LD_LIBRARY_PATH
>
> I forgot to say that I'm trying to install grads-2.2.0 in the windows subsystem for linux.
> I downloaded grads-2.2.0-bin-centos7.3-x86_64.tar.gz from the official website,and unziped it in /usr/local/bin/,
> then cp /usr/local/bin/grads-2.2.0/bin/* /usr/local/bin ,and installed supplementary file in /usr/local/lib/grads/
> Before that I installed opengrads2.1.0 (grads-2.1.0.oga.1-bundle-x86_64-unknown-linux-gnu.tar.gz) by Classic Method,and it worked well
>
> My English is awful. Can I communicate with you in Chinese?
> ------------------------------------------------------------------
> 发件人:Jennifer M Adams <jadams21 at gmu.edu>
> 发送时间:2017年9月23日(星期六) 20:23
> 收件人:weatherman <weather.man at aliyun.com>; GrADS Users Forum <gradsusr at gradsusr.org>
> 主 题:Re: [gradsusr] about GrADS-2.2.0
>
> Hi, River —
> Please see comments inline
>
>
> > On Sep 23, 2017, at 7:31 AM, weatherman <weather.man at aliyun.com> wrote:
> >
> > I installed grads2.2.0 in /usr/local/bin/grads-2.2.0,So I have a bin and lib directory there.
> > I installed supplementary file in /usr/local/lib/grads/.The environment variables are set up.
>
> What are GADDIR and GAUDPT set to?
> If you have GADDIR set to /usr/local/lib/grads (which seems likely), then GrADS will find $GADDIR/udpt (a built-in default) and you can leave $GAUDPT empty.
>
>
> > I created the file /usr/local/lib/grads/udpt to inform GrADS where to find the plug-ins.
>
> > # Type Name Full path to shared object file
> > # ---- ---- -------------------------------
> > gxdisplay Cairo /usr/local/bin/grads-2.2.0/lib/libgxdCairo.so
> > gxdisplay X11 /usr/local/bin/grads-2.2.0/lib/libgxdX11.so
> > gxdisplay gxdummy /usr/local/bin/grads-2.2.0/lib/libgxdummy.so
> > *
> > gxprint Cairo /usr/local/bin/grads-2.2.0/lib/libgxpCairo.so
> > gxprint GD /usr/local/bin/grads-2.2.0/lib/libgxpGD.so
>
>
> > When I run grads,
> > Grid Analysis and Display System (GrADS) Version 2.2.0
> > Copyright (C) 1988-2017 by George Mason University
> > GrADS comes with ABSOLUTELY NO WARRANTY
> > See file COPYRIGHT for more information
> >
> > Config: v2.2.0 little-endian readline grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile
> > Issue 'q config' and 'q gxconfig' commands for more detailed configuration information
> > Landscape mode? ('n' for portrait):
> > GX Package Initialization: Size = 11 8.5
>
> > GX Package Error: dlopen failed to get a handle on gxprint plug-in named “Cairo”
> This line is an error message from GrADS
>
> > : cannot open shared object file: No such file or directory
> This line is an error message from the dlopen library. It looks like the field where the full path to libgxpCairo.so should be is empty — the file GrADS is looking for should be preceding that “:” at the beginning of your error message. Here is what I get when I put a bad filename deliberately (“foo”):
>
> GX Package Error: dlopen failed to get a a handle on gxprint plug-in named "Cairo"
> foo: cannot open shared object file: No such file or directory
>
> Do you have GAUDPT set to point to an empty file? If the default $GADDIR/udpt has the info GrADS needs, then setting $GAUDPT isn’t strictly necessary. I use GAUDPT to point to my own personal plug-in functions and developer version of the graphics plug-ins, and $GADDIR/udpt to point to the official versions of the graphics plug-ins for every user on the server. The names in the $GAUDPT file override the names in the $GADDIR/udpt file. If there are errors in $GAUDPT GrADS will always use those first and then give up and quit before trying any other options.
>
> What happens if you try "grads -h GD" or “grads -d X11” — do you get the same empty error message ?
>
> —Jennifer
>
>
> > GX Package Terminated
> > What do I need to get off the ground?
> > Thanks.
> > -River
> >
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
>
> --
> Jennifer Miletta Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> George Mason University
>
>
>
>
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University
More information about the gradsusr
mailing list