Re: missing libnio?

From: Steve Sullivan <steves_at_nyahnyahspammersnyahnyah>
Date: Wed, 18 Feb 2009 01:02:57 -0700

Hi,

Please disregard my previous messages - I believe I've found the
problem.

Thanks,

Steve

On Tue, Feb 17, 2009 at 05:47:39PM -0700, Steve Sullivan wrote:
> Hi Mary,
>
> Thanks for your note. I installed NCL from ncl_ncarg_src-5.0.0.tar.gz
> and thought it worked. But looking through the log
> from "make Everything" I found ...
>
> hdf.c:67:21: error: hdf/hdf.h: No such file or directory
>
> Apparently it isn't finding the HDF4 includes.
> Since I installed HDF4 from source the HDF4 install is in
> an unusual spot. So I tried modifying the NCL config/LINUX ...
>
> #define ArchRecLibSearch -L/usr/X11R6/lib -L/home/ss/ftp/hdf4/hdf/tdi/lib
> #define ArchRecIncSearch -I/usr/X11R6/include -I/home/ss/ftp/hdf4/hdf/tdi/include
>
> But that gave the same error so I tried ...
>
> #define CcOptions -ansi -fPIC -I/home/ss/ftp/hdf4/hdf/tdi/include -L/home/ss/ftp/hdf4/hdf/tdi/lib
>
> And that gave the same error as well!
> How do you modify config/LINUX to specify the locations
> of the HDF4 include and lib dirs?
>
> Many thanks,
>
> Steve
>
>
> On Tue, Feb 17, 2009 at 04:17:52PM -0700, Mary Haley wrote:
> > Hi Steve,
> >
> > What version of the NCL source code do you have? In V5.0.0 and 4.3.1,
> > the file should be there. In V5.1.0, which hasn't been released yet,
> > the file is not there. However, I don't think I've given the 5.1.0
> > source code out yet, so I'm wondering if maybe you have a much older
> > version of NCL?
> >
> > Either that, or NCL was not fully installed for some reason.
> >
> > If you still have the make-output file from the NCL build, you
> > can email it to me personally and I'll take a look.
> >
> > --Mary
> >
> >
> > On Tue, 17 Feb 2009, Steve Sullivan wrote:
> >
> > >Hi,
> > >
> > >I'm building PyNio from source and seem to be missing
> > >a library. I know, source is not recommended,
> > >but that's what I need here.
> > >Apparently it's looking for libnio.a, which doesn't exist.
> > >I've installed all the prereqs from source, and am guessing
> > >that libnio should have come from the NCL install.
> > >
> > >The link step shown below has -L/home/ss/ftp/netcdf/tdi/lib
> > >and that dir contains:
> > >$ /bin/ls -sF
> > >total 19348
> > >464 libblas_ncl.a 5344 libncarg.a 652 libngmath.a
> > > 44 libcgm.a 64 libncarg_c.a 852 libsphere3.1_dp.a
> > >368 libfftpack5_dp.a 1188 libncarg_gks.a 4 ncarg/
> > >2428 libhlu.a 1724 libnfp.a
> > >5464 liblapack_ncl.a 752 libnfpfort.a
> > >
> > >No libnio there!
> > >I'm running debian lenny, with python 3.6.1, on an amd machine.
> > >When I issue "python setup.py install" I get the following:
> > >
> > >===== install log =====
> > >
> > >====> Installing Nio to the "PyNIO" site packages directory.
> > >running install
> > >running build
> > >running build_py
> > >copying ./pynio_version.py -> build/lib.linux-i686-2.6/PyNIO
> > >running build_ext
> > >building 'nio' extension
> > >gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
> > >-Wstrict-prototypes -fPIC -DNeedFuncProto=1
> > >-I/home/ss/ftp/python/tdi/lib/python2.6/site-packages/numpy/core/include
> > >-I/home/ss/ftp/ncl/tdi/include -Iinclude -I/home/ss/ftp/netcdf/tdi/include
> > >-I/home/ss/ftp/python/tdi/include/python2.6 -c niomodule.c -o
> > >build/temp.linux-i686-2.6/niomodule.o
> > >In file included from /home/ss/ftp/ncl/tdi/include/ncarg/hlu/hlu.h:48,
> > > from include/nio.h:1,
> > > from niomodule.c:17:
> > >/home/ss/ftp/ncl/tdi/include/ncarg/c.h:201: warning: function declaration
> > >isn‚€™t a prototype
> > >/home/ss/ftp/ncl/tdi/include/ncarg/c.h:202: warning: function declaration
> > >isn‚€™t a prototype
> > >/home/ss/ftp/ncl/tdi/include/ncarg/c.h:309: warning: function declaration
> > >isn‚€™t a prototype
> > >niomodule.c: In function ‚€˜NioVariable_WriteArray‚€™:
> > >niomodule.c:2063: warning: ‚€˜dir‚€™ may be used uninitialized in this
> > >function
> > >gcc -pthread -shared build/temp.linux-i686-2.6/niomodule.o
> > >-L/home/ss/ftp/ncl/tdi/lib -L/home/ss/ftp/netcdf/tdi/lib -L/usr/lib -lnio
> > >-lmfhdf -ldf -ljpeg -lpng -lz -lnetcdf -lhdf5_hl -lhdf5 -lsz -lgfortran -o
> > >build/lib.linux-i686-2.6/PyNIO/nio.so
> > >/usr/bin/ld: cannot find -lnio
> > >collect2: ld returned 1 exit status
> > >error: command 'gcc' failed with exit status 1
> > >===== end log =====
> > >
> > >Where should libnio come from?
> > >
> > >Thanks,
> > >
> > >Steve
> > >
> > >
> > >--
> > >Steve Sullivan steves_at_ucar.edu 303-497-2823
> > >
> > >FL/2, Research Applications Laboratory
> > >National Center for Atmospheric Research
> > >PO Box 3000
> > >Boulder CO 80307
> > >USA
> > >
> > >_______________________________________________
> > >pyngl-talk mailing list
> > >List instructions, subscriber options, unsubscribe:
> > >http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
> > >
>
>
> --
> Steve Sullivan steves_at_ucar.edu 303-497-2823
>
> FL/2, Research Applications Laboratory
> National Center for Atmospheric Research
> PO Box 3000
> Boulder CO 80307
> USA
>
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

-- 
Steve Sullivan   steves_at_ucar.edu     303-497-2823
FL/2, Research Applications Laboratory
National Center for Atmospheric Research
PO Box 3000
Boulder CO  80307
USA
Received on Wed Feb 18 2009 - 01:02:57 MST

This archive was generated by hypermail 2.2.0 : Tue Mar 03 2009 - 09:55:28 MST