help-octave
[Top][All Lists]
Advanced

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

Re: pkg installation help


From: Jeff Sadowski
Subject: Re: pkg installation help
Date: Thu, 11 Feb 2016 12:38:03 -0700

thank you

On Thu, Feb 11, 2016 at 12:25 PM, Marius Schamschula <address@hidden> wrote:
Jeff,

On Feb 11, 2016, at 12:19 PM, Jeff Sadowski <address@hidden> wrote:

> I'm using centos 6.7
>
> I installed octave from source using the following method.
>
> I found this file here for the spec file https://gist.githubusercontent.com/VitToCode/5760862/raw/8ab785e031f399aa2b2966af2be058b632fc161e/octave.spec
>
> I edited it a little and am attaching the result of my editing
>
> I then ran rpmbuild -ba octave-4.0.0.spec
>
> then I installed all the rpms that came with it.
>
> After that I wanted to run ode45 and found I needed to install odepkg to do so.
>
> I found this page describing how to install and check packages installed
> http://octave.1599824.n4.nabble.com/Problems-installing-odepkg-on-Windows-7-td4657809.html
>
> so I ran
> pkg install -forge <packagename>
> for
> general
> linear-algebra
> missing-functions
> multicore
> odebvp
> odepkg     and
> parallel
>
> then
> > pkg list
> Package Name       | Version | Installation directory
> -------------------+---------+-----------------------
>           general  |   2.0.0 | /usr/share/octave/packages/general-2.0.0
>    linear-algebra  |   2.2.2 | /usr/share/octave/packages/linear-algebra-2.2.2
> missing-functions *|   1.0.2 | /usr/share/octave/packages/missing-functions-1.0.2
>         multicore *|  0.2.15 | /usr/share/octave/packages/multicore-0.2.15
>            odebvp *|   1.0.6 | /usr/share/octave/packages/odebvp-1.0.6
>            odepkg  |   0.8.5 | /usr/share/octave/packages/odepkg-0.8.5
>
> shows the installed packages
> now when I try following an example of using ode45 from here
> http://cresspahl.blogspot.com/2012/03/how-to-solve-odes-using-octave.html
>
> I can build the function dr_gravi
> I can build the initialVector, StartT and StopT
> but when I get here
>
> [T,Result] = ode45( @dr_gravi,[StartT, StopT], initialVector)
>
> I get
>
> octave:9> StopT = 0.7 %s
> StopT =  0.70000
> octave:10> [T,Result] = ode45( @dr_gravi,[StartT, StopT], initialVector)
> warning: Octave provides lsode for solving differential equations.  For more
> information try `help lsode'.  Matlab-compatible ODE functions are
> provided by the odepkg package.  See
> `http://octave.sourceforge.net/odepkg/'.
>
> Please read `http://www.octave.org/missing.html' to learn how you can
> contribute missing functionality.
> warning: called from
>     __unimplemented__ at line 524 column 5
> error: 'ode45' undefined near line 1 column 13
> octave:10>
>
> As if it doesn't understand ode45 Do I need to do something to get it to load these functions?
>
> <octave-4.0.0.spec>_______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave

The ode package is installed, but not loaded.

pkg load odepkg

Marius
--
Marius Schamschula






reply via email to

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