Problems installing netcdf package on octave

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems installing netcdf package on octave

Jason Snyder
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.

Thanks,

Jason
--


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Problems installing netcdf package on octave

Matteo Ipri
Hi Jason Snyder,
to help you we need more information: what is the system you're trying to install the package on? (operative system, version, octave version, and so on)

Looking at the log you posted, I think some variable in the make file has not been filled. In particular I think it is the variable that contains the compiler executable path.
For example, in this line
"DF77_FUNC=F77_FCN -DHAVE_OCTAVE_ -v -c ov-netcdf.cc -I/usr/local/include -DHAVE_OCTAVE_INT "

there should be a compiler before the option "-D", it should read something like this
"DF77_FUNC=F77_FCN gcc -DHAVE_OCTAVE_ -v -c ov-netcdf.cc -I/usr/local/include -DHAVE_OCTAVE_INT "

Do you have development tools installed on your system?

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave