How to install Octave?


 
Thread Tools Search this Thread
Top Forums Programming How to install Octave?
# 1  
Old 03-06-2013
How to install Octave?

This is probably something really simple, but I don't get it. I downloaded a copy of Octave and extracted it to octave-2.1.73-sol10-sparc-local. Now what do I do with it? I chmod'ed it to 777 and tried running it which just gave me an endless stream of errors. Here's the beginning of the file if that helps.

Code:
-bash-3.00$ more octave-2.1.73-sol10-sparc-local
# PaCkAgE DaTaStReAm
SMCoctv 1 190880
# end of header
070701000076e1000081a40000000a0000000a0000000145bb61c
000000ae000000880000000b00000000000000000000001000000000SMCoctv/pkginfoPKG=SMCoctv
NAME=octave
ARCH=sparc
VERSION=2.1.73
CATEGORY=application
VENDOR=John W. Eaton
EMAIL=steve@smc.vnet.net
PSTAMP=Steve Christensen
BASEDIR=/usr/local
CLASSES=none
070701000076d6000081a40000000a0000000a0000000145bb61c10003bc6e000000880000000b0000000000000000
0000000f00000000SMCoctv/pkgmap: 1 190880
1 d none bin 0755 bin bin
1 s none bin/mkoctfile=mkoctfile-2.1.73
1 f none bin/mkoctfile-2.1.73 0755 bin bin 10961 36812 1169908134
1 s none bin/octave=octave-2.1.73

I'm stumped.
# 2  
Old 03-06-2013
Code:
pkgadd -d octave-2.1.73-sol10-sparc-local

This User Gave Thanks to in2nix4life For This Post:
# 3  
Old 03-06-2013
Doh! Thanks.Smilie
# 4  
Old 03-06-2013
No problemo.
# 5  
Old 03-16-2013
OK, now I'm stuck again. I installed the package but apparently I need to run octave-config in order to set up some environment variables. But they're not getting set:
Code:
-bash-3.00$ cd /usr/local/bin
-bash-3.00$ ls
mkoctfile             octave-2.1.73         octave-config
mkoctfile-2.1.73      octave-bug            octave-config-2.1.73
octave                octave-bug-2.1.73
-bash-3.00$ sh octave-config
usage: octave-config [options]
-bash-3.00$ more octave-config
#! /bin/sh -
#
# octave-config - reports some configuration values for Octave
#
# Rafael Laboissiere <rafael@laboissiere.net>
# This script is in the public domain

API_VERSION=""api-v13""
CANONICAL_HOST_TYPE=""sparc-sun-solaris2.10""
DEFAULT_PAGER=""less""
ARCHLIBDIR=""/usr/local/libexec/octave/2.1.73/exec/sparc-sun-solaris2.10""
BINDIR=""/usr/local/bin""
DATADIR=""/usr/local/share""
EXEC_PREFIX=""/usr/local""
FCNFILEDIR=""/usr/local/share/octave/2.1.73/m""
FCNFILEPATH="".:/usr/local/libexec/octave/2.1.73/site/oct/sparc-sun-solaris2.10/
/:/usr/local/libexec/octave/site/oct/api-v13/sparc-sun-solaris2.10//:/usr/local/
libexec/octave/site/oct/sparc-sun-solaris2.10//:/usr/local/share/octave/2.1.73/s
ite/m//:/usr/local/share/octave/site/api-v13/m//:/usr/local/share/octave/site/m/
/:/usr/local/libexec/octave/2.1.73/oct/sparc-sun-solaris2.10//:/usr/local/share/
octave/2.1.73/m//""
IMAGEDIR=""/usr/local/share/octave/2.1.73/imagelib""
--More--(19%) ^C

-bash-3.00$ echo $FCNFILEDIR

-bash-3.00$

???
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

using Octave and bash command together

Hej all, I have an script which I run it with Octave command in Linux, I want to know how could I put bash commands like grep and sed and use them together with octave? My Octave script: Script.sh: m = load ("file", "-ascii") for i=1:10 g(i)= sin(m) end and then I use this... (2 Replies)
Discussion started by: Johanni
2 Replies

2. UNIX and Linux Applications

Where Octave stores it's variables

Hej guys, I'm doing some simple matrix operations with octave and don't know where and how it stores it's variables. Is there any file somewhere that could be accessed? I was using MATLAB before and now Octave is new for me. Or maybe I should use some commands to save and load it. but... (0 Replies)
Discussion started by: Johanni
0 Replies

3. Shell Programming and Scripting

shc usage with octave scripts - HOW ????

Hello there. I would like to know how to use shc (the generic shell script compiler ) with octave scripts. With sh scripts it works fine (because it automatically recognizes the interpreter - here bash ). But when use with octave scripts like this easy one #! /usr/bin/octave disp("testing...")... (0 Replies)
Discussion started by: spiriad
0 Replies

4. Tips and Tutorials

Octave --- My octuple boot laptop

As I promised in several threads, here are some notes on how I installed several Operating Systems on my laptap. I will give links to the tools that I obtained from various third parties. And I will include the source code for a few scripts that I wrote. Introduction A few months ago the disk... (3 Replies)
Discussion started by: Perderabo
3 Replies
Login or Register to Ask a Question