To Whom it may Concern,
I am trying to run octave using netcdf files and I noticed I need a package octcdf. Therefore, I downloaded this package and tried to do a pkg install and got the following errors:
octave:1> pkg install octcdf-1.1.10.tar.gz
pkg: unable to find the mkoctfile command, Octave installation is incomplete
error: called from '__gripe_missing_component__' in file /usr/share/octave/3.8.2/m/help/__gripe_missing_component__.m near line 53, column 3
error: called from:
error: /usr/share/octave/3.8.2/m/pkg/private/install.m at line 201, column 5
error: /usr/share/octave/3.8.2/m/pkg/pkg.m at line 394, column 9
Now when I tried manually to install octcdf by untarring it and configuring it and compiling it I got the following error:
DF77_FUNC=F77_FCN -DHAVE_OCTAVE_ -v -c ov-netcdf.cc -I/usr/local/include -DHAVE_OCTAVE_INT
/bin/sh: -DHAVE_OCTAVE_: command not found
make: [ov-netcdf.o] Error 127 (ignored)
DF77_FUNC=F77_FCN -DHAVE_OCTAVE_ -v -c ov-ncfile.cc -I/usr/local/include -DHAVE_OCTAVE_INT
/bin/sh: -DHAVE_OCTAVE_: command not found
make: [ov-ncfile.o] Error 127 (ignored)
DF77_FUNC=F77_FCN -DHAVE_OCTAVE_ -v -c ov-ncvar.cc -I/usr/local/include -DHAVE_OCTAVE_INT
/bin/sh: -DHAVE_OCTAVE_: command not found
make: [ov-ncvar.o] Error 127 (ignored)
DF77_FUNC=F77_FCN -DHAVE_OCTAVE_ -v -c ov-ncatt.cc -I/usr/local/include -DHAVE_OCTAVE_INT
/bin/sh: -DHAVE_OCTAVE_: command not found
make: [ov-ncatt.o] Error 127 (ignored)
DF77_FUNC=F77_FCN -DHAVE_OCTAVE_ -v -c ov-ncdim.cc -I/usr/local/include -DHAVE_OCTAVE_INT
/bin/sh: -DHAVE_OCTAVE_: command not found
make: [ov-ncdim.o] Error 127 (ignored)
DF77_FUNC=F77_FCN -DHAVE_OCTAVE_ -v -o netcdf.oct -I/usr/local/include -DHAVE_OCTAVE_INT ov-netcdf.o ov-ncfile.o ov-ncvar.o ov-ncatt.o ov-ncdim.o -L/usr/local/lib -lnetcdf
/bin/sh: -DHAVE_OCTAVE_: command not found
make: [netcdf.oct] Error 127 (ignored)
How do I resolve this issues so I can successfully use octcdf. Is there another place I can download this? I need to be able to use netcdf files in octave.