Monday, March 3, 2014

Installing/Unistalling GNU-Octave in Ubuntu

+++++++++++++++++++++++++++++++++++++++++++++
Ubuntu Version

$ lsb_release -a & uname -a
Release: 12.04
Codename: precise
Linux N55SL 3.4.0-030400-generic i386 GNU/Linux

+++++++++++++++++++++++++++++++++++++++++++++
Installation GNU/Octave stable version

Open Terminal and do:

$ sudo apt-add-repository ppa:octave/stable
$ sudo apt-get update
$ sudo apt-get install octave
$ sudo apt-get install liboctave-dev

http://blogs.bu.edu/mhirsch/2012/08/octave-3-6-on-ubuntu-12-04/



++++++++++++++++++++++++++++++++++++++
INSTALLING ODE PACKAGE

browse to the directory where you download your package
odepkg-0.8.4.tar.gz

To install packages, start Octave in sudo mode i.e. type in Terminal:

$ sudo su
$ octave
and then you can install packages by typing in Octave:

octave:2:: pkg install -auto odepkg-0.8.4.tar.gz
cash/mebdfi.f:2932.46:

CALL I_INTERP(N,JSTART,H,T,Y,TOUT,Y0)
1
Warning: Rank mismatch in argument 'y0' at (1) (rank-1 and scalar)
daskr/ddaskr.f:1931.20:

* RWORK(LRX),JROOT,IRT,RWORK(LROUND),INFO(3),
1
Warning: Rank mismatch in argument 'jroot' at (1) (rank-1 and scalar)
daskr/ddaskr.f:1954.20:

* RWORK(LRX),JROOT,IRT,RWORK(LROUND),INFO(3),
1
Warning: Rank mismatch in argument 'jroot' at (1) (rank-1 and scalar)
daskr/ddaskr.f:2182.20:

* RWORK(LRX),JROOT,IRT,RWORK(LROUND),INFO(3),
1
Warning: Rank mismatch in argument 'jroot' at (1) (rank-1 and scalar)
For information about changes from previous versions of the odepkg package, run 'news ("odepkg")'.

---
Warning Explanation
I think you should have seen the news("odepkg"). It states that it wont load the package automatically. You have to use the pkg load command everytime you need to use or set the option -auto while installing. Use help pkg for more info.

http://ubuntuforums.org/archive/index.php/t-2119912.html






++++++++++++++++++++++++++++++++++
Uninstalling GNU/Octave

If you installed using "make install", you remove by "make uninstall".
The make clean and distclean just clean out the source directories, but
don't remove installed files. Assuming you built both versions of octave
from source using the defaults, you probably installed everything in
/usr/local, so you can probably remove everything with the following:

$ rm -rf /usr/local/bin/octave-****
$ rm -rf /usr/local/share/octave/****
$ rm -rf /usr/local/lib/octave-****
$ rm -rf /usr/local/libexec/octave/****

http://octave.1599824.n4.nabble.com/uninstalling-octave-td1625823.html



+++++++++++++++++++++++++


Note
For further information, it is suggested reading the information on the links.


No comments:

Post a Comment