missing libnio?

From: Steve Sullivan <steves_at_nyahnyahspammersnyahnyah>
Date: Tue, 17 Feb 2009 16:10:10 -0700


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?



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
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Feb 17 2009 - 16:10:10 MST

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