[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #ROO-864724]: installing netCDF for matlab-cdi
- Subject: [netCDF #ROO-864724]: installing netCDF for matlab-cdi
- Date: Mon, 22 May 2017 11:42:13 -0600
Hello,
I'm glad you were able to get your netCDF issue resolved! Unfortunately, we are
not involved with matlab or CDI/MX. Your best bet may be to contact the
maintainer of those packages and see if they can suggest anything.
I'm sorry I can't provide more helpful information, but these errors do not
mean anything to me, and I am unfamiliar with those packages. I'm sure the
maintainers will be able to help you.
Have a great day,
-Ward
> actually I think I ve fixed that error but now I have a serious one...
> running the compile.m I get
>
> Error using mex
> /tmp/mex_2834375024681874_8443/cdi_mx.o: In function `getLevel':
> cdi_mx.c:(.text+0x84d): undefined reference to `Warning'
> /tmp/mex_2834375024681874_8443/cdi_mx.o: In function `readmeta':
> cdi_mx.c:(.text+0x1452): undefined reference to `mxErrMsgIdAndTxt'
> cdi_mx.c:(.text+0x14df): undefined reference to `mxErrMsgIdAndTxt'
> cdi_mx.c:(.text+0x14fd): undefined reference to `gridIsRotated'
> cdi_mx.c:(.text+0x1508): undefined reference to `gridInqXpole'
> cdi_mx.c:(.text+0x152a): undefined reference to `gridInqYpole'
> collect2: error: ld returned 1 exit status
>
> any feedback highly appreciated
>
> Thank you
>
> Thalia
>
>
> On 17-May-17 2:52 PM, Thalia Nikolaidou wrote:
> > Dear Sir/Madam
> >
> > I am trying to compile matlab-cdi mex files but I m running to the
> > following error which I cannot solve
> >
> > Error using mex
> > /../../matlab-cdi/cdi_mx.c:10:18: fatal error: grib.h: No such file or
> > directory
> > compilation terminated.
> >
> > I know I dont have the grib.h file in the include folder but I don't
> > know how to create it..
> >
> > I followed the instructions and install the netcdf, cdi as suggested
> > in the README and ISTALL files of matlab-cdi
> >
> > however I dont have a libnetdcf.a or .so file in my usr/local/include
> > folder
> >
> > Here is what I have:
> >
> > goofy@thalia-ubuntu:/usr/local/lib$ ls -l
> > total 3000
> > -rw-r--r-- 1 root root 1641642 May 17 14:25 libcdi.a
> > -rwxr-xr-x 1 root root 923 May 17 14:25 libcdi.la
> > lrwxrwxrwx 1 root root 15 May 17 14:25 libcdi.so -> libcdi.so.0.0.0
> > lrwxrwxrwx 1 root root 15 May 17 14:25 libcdi.so.0 ->
> > libcdi.so.0.0.0
> > -rwxr-xr-x 1 root root 1147184 May 17 14:25 libcdi.so.0.0.0
> > -rw-r--r-- 1 root root 146542 May 16 21:14 libz.a
> > lrwxrwxrwx 1 root root 13 May 16 21:14 libz.so -> libz.so.1.2.8
> > lrwxrwxrwx 1 root root 13 May 16 21:14 libz.so.1 -> libz.so.1.2.8
> > -rwxr-xr-x 1 root root 113408 May 16 21:14 libz.so.1.2.8
> > drwxr-xr-x 2 root root 4096 May 17 14:25 pkgconfig
> > drwxrwsr-x 4 root staff 4096 Apr 25 10:57 python2.7
> > drwxrwsr-x 3 root staff 4096 Apr 25 10:12 python3.5
> >
> > goofy@thalia-ubuntu:/usr/local/include$ ls -l
> > total 256
> > -rw-r--r-- 1 root root 53164 May 17 14:25 cdi.h
> > -rw-r--r-- 1 root root 101320 May 17 14:25 cdi.inc
> > -rw-r--r-- 1 root root 15472 May 16 21:14 zconf.h
> > -rw-r--r-- 1 root root 87883 May 16 21:14 zlib.h
> >
> >
> > and here is my script for installing the netcdf (from a script I found
> > online, modified)
> >
> > # Install Netcdf
> > v=4.4.1.1
> > wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-${v}.tar.gz
> > tar -xf netcdf-${v}.tar.gz && cd netcdf-${v}
> > prefix="/usr/local/"
> > if [ $NETCDF4_DIR != $prefix ]; then
> > echo "Add NETCDF4_DIR=$prefix to .bashrc"
> > echo "" >> $BASHRC
> > echo "# NETCDF4 libraries for python" >> $BASHRC
> > echo export NETCDF4_DIR=$prefix >> $BASHRC
> > fi
> > CPPFLAGS=-I$HDF5_DIR/include LDFLAGS=-L$HDF5_DIR/lib ./configure
> > CFLAGS=-fPIC CPPFLAGS=-fPIC --enable-shared --enable-netcdf-4
> > --enable-dap --prefix=$NETCDF4_DIR
> > # make check
> > make
> > sudo make install
> > cd ..
> >
> >
> > I appreciate any help,
> > Thanks a lot
> > Thalia
> >
>
> --
> ----------------------------
> Department of Geodesy and Geomatics Engineering
> University of New Brunswick
> P.O. Box 4400
> Fredericton, NB
> CANADA E3B 5A3
>
>
Ticket Details
===================
Ticket ID: ROO-864724
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata
inquiry tracking system and then made publicly available through the web. If
you do not want to have your interactions made available in this way, you must
let us know in each email you send to us.