This is how I finally managed.
1: Update package manager with the latest package information.
2: Select octave3.2_3.2.4-12
When asked examine dependencies.
When asked hit the download-only selected packages.
3: Then do the same for gnuplot_4.4.3
At this point I created a folder to be the base of my new octave-3.2.sfs
Code: Select all
# mkdir /mnt/sda1/octave-3.2
Open a terminal and issue the commands
Code: Select all
#cd ~
# for f in *.deb; do echo $f; dpkg-deb -x $f /mnt/sda1/octave-3.2/ ; done
Code: Select all
# mv /mnt/sda1/octave-3.2/usr/lib/i386-linux-gnu/** /mnt/sda1/octave-3.2/usr/lib/
# cd /mnt/sda1/octave-3.2/usr/lib/
# rm -r -f i386-linux-gnu
# ln -s ./ i386-linux-gnu
# cd /mnt/sda1/
Code: Select all
# mkdir -p /mnt/sda1/octave/root/my-applications
# echo '#!/bin/sh' >> /mnt/sda1/octave-3.2/root/my-applications/bin/ocatve
# echo 'export LD_LIBRARY_PATH=/usr/lib/libblas:/usr/lib/lapack:/usr/lib/i386-linux-gnu:\$LD_LIBRARY_PATH' >> /mnt/sda1/octave-3.2/root/my-applications/bin/octave
echo 'octave3.2' >>/mnt/sda1/octave-3.2/root/my-applications/bin/octave
Code: Select all
# cd /mnt/sda1
# dir2sfs octave-3.2
Now that all is done we load the sfs file. I usually just click on it in rox.
Then in a terminal window we issue the command
Code: Select all
# octave
The we do a simple test.
[octave]#octave3.2:1>x=linspace(0,2*pi,100);
#octave3.2:1>y=sin(x);
#octave3.2:1>plot(x,y);[/octave]
Witch should pop up a plot with a sine wave in it.
Disclaimer: I have only tested this against anything but a ram only session. I have not tested octave throughly to se if all libraries are accessible.
EDIT: 07 Nov 2014: Discovered some minor bugs in the listed code.