help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "pkg install PKG" syntax error on Octave 2.9


From: Alexander Barth
Subject: Re: "pkg install PKG" syntax error on Octave 2.9
Date: Wed, 5 Sep 2007 14:29:59 -0400

Hi,

I'm the author of the octcdf package. Can you tell me what error you
are seeing when you install octcdf by issuing:

octave:1> pkg install octcdf-1.0.5.tar.gz
octave:2> pkg load all
octave:3> nctest
writing test output to nctest.log
>>>>> /home/abarth/Octave/2.9.13/octcdf-1.0.5/nctest.m
PASSES 20 out of 20 tests

If this does not work for you, you can install octcdf without the
package manager:

tar zxvf octcdf-1.0.5.tar.gz
cd octcdf-1.0.5/src
./configure
make
mkdir $HOME/octcdf-1.0.5
cp *.oct ../inst/*.m ../PKG_ADD $HOME/octcdf-1.0.5

You can choose any directory instead of "$HOME/octcdf-1.0.5".
You need to tell octave about octcdf by using addpath:

octave:1> addpath ~/octcdf-1.0.5
octave:2> nctest
writing test output to nctest.log
>>>>> /home/abarth/octcdf-1.0.5/nctest.m
PASSES 20 out of 20 tests

You can put the addpath line in $HOME/.octaverc if you want to load
octcdf when octave starts.

This is tested with octave 2.9.13 (compiled from source).

I hope this helps.

Alex


On 9/3/07, lijung <address@hidden> wrote:
>
>
> I'm very much interested if this problem still exists?
> I ran into the same and really do need to install the octcdf package.
> Or is there any other package for reading netcdf data in octave or another
> way to install the package?
>
> Thank you very much in advance
>
> >
> > I'm trying to install the last version of octave-forge on Octave 2.9
> > (linux, Kubuntu). As http://octave.dbateman.org/index.html says, I
> > must type in Octave:
> >
> >   pkg install package_file_name.tar.gz
> >
> > This fails ("syntax error")
>
> Yes well, there is a reason that the octave-forge website is there and
> not on sourceforge yet.. That is that the package manager has some
> issues until after 2.9.9.. It seems to be fine in the CVS, we will see
> if it really is fine wen 2.9.10 comes out and more people start really
> using the package manager..
>
>
> --
> View this message in context: 
> http://www.nabble.com/%22pkg-install-PKG%22-syntax-error-on-Octave-2.9-tf3223070.html#a12463622
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]