Grads 1.9b4: gradsdods nc_open() call returns "1001"

Oliver König k.oliver at T-ONLINE.DE
Thu Jun 30 18:44:43 EDT 2005


Hello Eric,
thanks for your suggestion. I will try it out. In the meantime I have
installed grads-bin-1.9b4-linuxRHE3.tar.gz (Red Hat) on i586 Debian Sarge.

I started gradsdods and opened a dods url. I got this error:

GX Package Initialization: Size = 11 8.5
nc_open failure:
Unknown error 1001
http://<url>.nc.dods?time[0:1:4],lat[0:1:85],lon[0:1:133],sig_wav_ht[0:1:4]
[0:1:85][0:1:133],sig_wav_dir[0:1:4][0:1:85][0:1:133] does not exist or is
not a netCDF file.

I checked the <url> and the file is there! Any ideas?

Regards,
Oliver

On Thursday 30 June 2005 18:09, Eric DeWeaver wrote:
> Hi Oliver,
>
> Sorry, I think I my SUPPLIBS was inaccurate.  I suggested
>
>   SUPPLIBS=/usr/local/udunits-1.11.7/include/udunits.h
>
> but probably it should be
>
>   SUPPLIBS=/usr/local/udunits-1.11.7
>
> i.e. configure automatically looks for include and lib
> underneath SUPPLIBS, in which case the new supplibs might
> be just /usr/local.  I'm not really sure you need supplibs
> if libudunits.a is in a standard place like /usr/local/lib.
>
> Another suggestion: use option ----enable-dyn-supplibs with
> configure.  Right now you have readline disabled, which probably
> means that you won't have command line history.  Probably you
> have readline on your system as a shared library, and you
> can try making that available to the build with
> --enable-dyn-supplibs.
>
> I can also see from the output that you don't have libz.  I got
> libz from DODS-packages-3.4.4.tar.gz, which I got from
> www.opendap.org.
>
> I should point out that the grads executables I build are
> imperfect: gxeps always crashes with a segfault, 'q time' gives
> a strange result when called from inside a script, I haven't been
> able to build gradsdods (problems finding/building libwww.a),
> probably other problems I haven't found yet.
>
> An alternative would be to get the fedora binaries for grads1.8sl11.
> I use the fedora version under suse 9.1 and it works ok.  You
> can get the binaries by ftp to grads.iges.org and getting the file
> /grads/1.8/GrADS1.8SL11.Fedora.tar.gz.  The ftp site may also
> have some useful library stuff if you look around in it.
>
> Good luck,
>
> Eric
>
> On Thu, 30 Jun 2005, Oliver König wrote:
> > Hello Eric,
> > thanks for your suggestion. This is what I did:
> >
> > buran:/usr/ # tar xvfz udunits-1.11.7.tar.Z
> > buran:/usr/ # cd udunits-1.11.7/
> > buran:/usr/udunits-1.11.7 # mv bin/ /usr/local/bin
> > buran:/usr/udunits-1.11.7 # mv etc/ /usr/local/etc/
> > buran:/usr/udunits-1.11.7 # mv include/ /usr/local/include
> > buran:/usr/udunits-1.11.7 # mv lib/ /usr/local/lib
> > buran:/usr/udunits-1.11.7 # mv man/ /usr/local/man
> > buran:/usr/udunits-1.11.7 # cd /opt
> > buran:/opt # tar xvfz grads-src-1.9b4.tar.gz
> > buran:/opt # ln -s grads-1.9b4 grads
> > buran:/opt # cd grads
> > buran:/opt/grads # ./configure --with-readline --with-printim --with-nc
> > --with-dods --with-hdf
> > [..]
> > Checking which GrADS binaries can be built
> > ------------------------------------
> > checking udunits.h usability... yes
> > checking udunits.h presence... yes
> > checking for udunits.h... yes
> > checking netcdf.h usability... yes
> > checking netcdf.h presence... yes
> > checking for netcdf.h... yes
> > checking for libudunits.a in supplibs... no
> > - gradsnc (plain netCDF) build disabled
> >
> > checking for udunits.h... (cached) yes
> > checking for netcdf.h... (cached) yes
> > checking for libz.a in supplibs... no
> > - gradshdf (HDF-SDS/netCDF) build disabled
> >
> > checking for udunits.h... (cached) yes
> > checking for netcdf.h... (cached) yes
> > checking for libz.a in supplibs... no
> > - gradsdods (OPeNDAP/netCDF) build disabled
> >
> >
> > +========================================================================
> >=+ GrADS 1.9b4 : Built Thu Jun 30 14:27:51 CEST 2005 for i686-pc-linux-gnu
> > +========================================================================
> >=+
> >
> >   +----------------------------------+
> >
> >   | Configuration Summary            |
> >   |
> >   |  - readline disabled             |
> >   |  - printim disabled              |
> >   |  - GUI disabled                  |
> >   |  + LATS enabled                  |
> >   |  - wi disabled (default)         |
> >   |
> >   | Build Summary                    |
> >   |
> >   |  + gradsc    (classic) enabled   |
> >   |  - gradsnc   (netCDF)  disabled  |
> >   |  - gradshdf  (HDF-SDS) disabled  |
> >   |  - gradsdods (OPeNDAP) disabled  |
> >   |
> >   |  - Dynamic linking disabled      |
> >
> >   +----------------------------------+
> >
> > So I am one step further because grads now finds the libudunits stuff
> > except for libudunits.a in supplibs.
> > buran:/opt/grads # locate libudunits.a
> > /usr/local/lib/libudunits.a
> >
> > So I give it another try similar to what you suggested:
> > buran:/opt/grads # SUPPLIBS=/usr/local/lib/libudunits.a ./configure
> > --with-readline --with-printim --with-nc --with-dods --with-hdf
> > [..]
> > checking udunits.h usability... no
> > checking udunits.h presence... no
> > checking for udunits.h... no
> > - gradsnc (plain netCDF) build disabled
> >
> > Now, grads doesn't find any udunits stuff at all.
> >
> > Please help! Thanks!
> >
> > Regards,
> > Oliver
> >
> > On Wednesday 29 June 2005 22:58, Eric DeWeaver wrote:
> > > Hi Oliver,
> > >
> > > I'm no expert no building grads, but here's a suggestion:
> > >
> > >   SUPPLIBS=/usr/local/udunits-1.11.7/include/udunits.h  ./configure
> > >
> > > I think options like 'nc' and 'printim' are enabled by default, you
> > > probably don't need to enable them explicitly.
> > >
> > > Building grads was a pretty big challenge for me, and it still
> > > doesn't work quite right.  I hope things go smoothly for you after
> > > you resolve the udunits thing.
> > >
> > > Good luck,
> > >
> > > Eric
> > >
> > > On Wed, 29 Jun 2005, Oliver König wrote:
> > > > Hello,
> > > > I am trying to install Grads 1.9b4 from source. I have got a Pentium
> > > > M 1.5 GHz and 512 MB RAM running Suse Linux 9.2. This is what I did:
> > > >
> > > >
> > > > buran:/usr/local # tar xvfz udunits-1.11.7.tar.Z
> > > > buran:/usr/local # cd /opt/
> > > > buran:/opt #  wget
> > > > ftp://grads.iges.org/grads/1.9/grads-src-1.9b4.tar.gz buran:/opt #
> > > > tar xvfz grads-src-1.9b4.tar.gz
> > > > buran:/opt #  cd /opt/grads1.9b4
> > > > buran:/opt/grads-1.9b4 # ./configure --with-readline --with-printim
> > > > --with-nc --with-dods --with-hdf
> > > > [..]
> > > > Checking which GrADS binaries can be built
> > > > ------------------------------------
> > > > checking udunits.h usability... no
> > > > checking udunits.h presence... no
> > > > checking for udunits.h... no
> > > > - gradsnc (plain netCDF) build disabled
> > > >
> > > > checking for udunits.h... (cached) no
> > > > - gradshdf (HDF-SDS/netCDF) build disabled
> > > >
> > > > checking for udunits.h... (cached) no
> > > > - gradsdods (OPeNDAP/netCDF) build disabled
> > > >
> > > >
> > > > +====================================================================
> > > >==== =+ GrADS 1.9b4 : Built Wed Jun 29 18:40:19 CEST 2005 for
> > > > i686-pc-linux-gnu
> > > > +====================================================================
> > > >==== =+
> > > >
> > > >   +----------------------------------+
> > > >
> > > >   | Configuration Summary            |
> > > >   |
> > > >   |  - readline disabled             |
> > > >   |  - printim disabled              |
> > > >   |  - GUI disabled                  |
> > > >   |  + LATS enabled                  |
> > > >   |  - wi disabled (default)         |
> > > >   |
> > > >   | Build Summary                    |
> > > >   |
> > > >   |  + gradsc    (classic) enabled   |
> > > >   |  - gradsnc   (netCDF)  disabled  |
> > > >   |  - gradshdf  (HDF-SDS) disabled  |
> > > >   |  - gradsdods (OPeNDAP) disabled  |
> > > >   |
> > > >   |  - Dynamic linking disabled      |
> > > >
> > > >   +----------------------------------+
> > > > configure: creating src/VERSION
> > > > configure: creating src/buildinfo.h
> > > > configure: creating ./config.status
> > > > config.status: creating Makefile
> > > > config.status: creating src/Makefile
> > > > config.status: creating src/config.h
> > > > config.status: src/config.h is unchanged
> > > >
> > > > Run 'make && make install' to build GrADS.
> > > > Executables will be installed to bin/ in current dir, unless prefix
> > > > was specified.
> > > >
> > > > buran:/usr/local # locate udunits.h
> > > > /usr/local/udunits-1.11.7/include/udunits.h
> > > >
> > > > What doesn't Grads find udunits.h? What is going wrong? How can I fix
> > > > this?
> > > >
> > > >
> > > > --
> > > > Oliver König
> > > >
> > > > Windfinder.com
> > > > Knorrstr. 24 Hinterhaus
> > > > 24106 Kiel
> > > > Germany
> > > > phone +49 431-8008643
> > > > VoIP +49 1801-7775558229
> > > > fax +49 431-8008644
> > > > Mobile +49 177-4933362
> > > > oliver at windfinder.com
> > > > www.windfinder.com
> >
> > --
> > Oliver König
> >
> > Windfinder.com
> > Knorrstr. 24 Hinterhaus
> > 24106 Kiel
> > Germany
> > phone +49 431-8008643
> > VoIP +49 1801-7775558229
> > fax +49 431-8008644
> > Mobile +49 177-4933362
> > oliver at windfinder.com
> > www.windfinder.com

--
Oliver König

Windfinder.com
Knorrstr. 24 Hinterhaus
24106 Kiel
Germany
phone +49 431-8008643
VoIP +49 1801-7775558229
fax +49 431-8008644
Mobile +49 177-4933362
oliver at windfinder.com
www.windfinder.com



More information about the gradsusr mailing list